:root {
    --primary-color: #0a4982;
    --secondary-color: #d78a2b;
    --white-color: #ffffff;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --category-item-bg: #f0f0f0;
    /* Gris claro para categorias */
    --category-item-border: #d8d8d8;
    /* Borde gris más oscuro para categorias */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.pdl-30 {
    padding-left: 30px;
}

.pdt-20 {
    padding-top: 20px;
}

.pdt-30 {
    padding-top: 30px;
}

.mgt-20 {
    margin-top: 20px;
}

.mgb-20 {
    margin-bottom: 20px;
}

/* Custom Container */
.container-custom {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container-custom {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-custom {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-custom {
        max-width: 960px;
    }

    section.cabeceraSeccion {
        margin-top: 152px !important;
    }

    section.topGapCelular {
        margin-top: 159px !important;
    }

    .main-content {
        margin-top: 159px !important;
    }
}

@media (min-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    /* Nuevo breakpoint */
    .container-custom {
        max-width: 1340px;
    }
}


a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--primary-color);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Custom Button Style */
.btn-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease-in-out;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: left 0.3s ease-in-out;
    z-index: -1;
}

.btn-custom:hover {
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-custom:hover::before {
    left: 0;
}

.btn-custom.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Header */
.header-top-bar {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top-bar a {
    color: var(--white-color);
    margin-right: 10px;
}

.header-top-bar a:hover {
    color: var(--secondary-color);
}

.header-top-bar i {
    margin-right: 5px;
}

.header-middle-bar {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.header-middle-bar .logo img {
    max-height: 90px;
}

.search-form {
    display: flex;
    border: 1px solid var(--medium-gray);
    border-radius: 25px;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    border: none;
    padding: 10px 15px;
    flex-grow: 1;
    outline: none;
}

.search-form button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 0 15px;
}

.search-form button:hover {
    background-color: #c57015;
}

.header-user-actions {
    display: flex;
    align-items: center;
}

.header-user-action-item {
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin-left: 10px;
    /* Increased margin */
    font-size: 0.75rem;
    /* Slightly smaller font for two lines */
    font-weight: 500;
    text-decoration: none;
}

.header-user-action-item:hover {
    color: var(--secondary-color);
}

.header-user-action-item .header-icon-img {
    height: 44px;
    /* Slightly larger icon */
    margin-right: 5px;
}

.header-user-action-text span {
    display: block;
    line-height: 1.2;
}


.header-nav-bar {
    background-color: var(--primary-color);
    padding: 0;
}

.header-nav-bar .navbar-nav .nav-item {
    margin: 0 5px;
}

.header-nav-bar .navbar-nav .nav-link {
    color: var(--white-color);
    padding: 15px 20px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.header-nav-bar .navbar-nav .nav-link:hover,
.header-nav-bar .navbar-nav .nav-item.active .nav-link {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Sticky Header */
#header-main.fixed-header .header-top-bar,
#header-main.fixed-header .header-middle-bar {
    display: none;
}

#header-main.fixed-header .header-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}


/* Sidebar */
.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.2rem;
    /* Adjusted size */
    margin-bottom: 0;
    /* No margin if items are directly below */
    padding: 12px 15px;
    /* Adjusted padding */
    border-bottom: none;
    /* Removed default border */
}

.sidebar-widget .widget-title i {
    margin-right: 8px;
    color: var(--white-color);
    /* Icon color to white */
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--category-item-border);
    /* Outer border for the list */
    border-top: none;
    /* No top border if title has bg */
}

.category-menu li {
    background-color: var(--category-item-bg);
    border-bottom: 1px solid var(--category-item-border);
    position: relative;
}

.category-menu li:last-child {
    border-bottom: none;
}

.category-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    left: 0;
    padding-right: 30px;
    /* Space for caret */
    text-transform: uppercase;
}

.category-menu li a::after {
    /* Caret */
    content: '\f054';
    /* FontAwesome right chevron */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    /* Caret color */
    transition: color 0.3s ease, right 0.3s ease;
}

.category-menu li a:hover {
    background-color: var(--white-color);
    /* Change background on hover */
    color: var(--secondary-color);
    padding-left: 20px;
    /* Move text to the right */
    /* left: 5px; Remove direct left shift, use padding */
}

.category-menu li a:hover::before {
    /* Orange left border on hover */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--secondary-color);
}

.category-menu li a:hover::after {
    color: var(--secondary-color);
    right: 10px;
    /* Optional: move caret slightly on hover */
}

.category-menu li.activa a {
    background-color: var(--white-color);
    /* Change background on hover */
    color: var(--secondary-color);
    padding-left: 20px;
}

.category-menu li.activa a::before {
    /* Orange left border on hover */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--secondary-color);
}

.category-menu li.activa a::after {
    color: var(--secondary-color);
    right: 10px;
    /* Optional: move caret slightly on hover */
}


/* Hero Slider */
.hero-slider .hero-slide {
    position: relative;
}

.hero-slider .hero-slide img {
    width: 100%;
    height: auto;
    max-height: 450px;
    /* Adjust as needed */
    object-fit: cover;
}

.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--white-color) !important;
    padding: 8px 15px !important;
    margin: 0 !important;
    font-size: 1.8rem !important;
    border-radius: 3px !important;
    transition: background-color 0.3s ease !important;
}

.hero-slider .owl-nav button.owl-prev:hover,
.hero-slider .owl-nav button.owl-next:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

.hero-slider .owl-nav button.owl-prev {
    left: 15px;
}

.hero-slider .owl-nav button.owl-next {
    right: 15px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slider .owl-dots .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    background: var(--white-color) !important;
    opacity: 0.6;
    transition: opacity 0.3s ease, background-color 0.3s ease !important;
}

.hero-slider .owl-dots .owl-dot.active span,
.hero-slider .owl-dots .owl-dot:hover span {
    background: var(--secondary-color) !important;
    opacity: 1;
}

.slide-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 0%;
    /* JS will animate this */
    z-index: 10;
}

/* Product & Article Cards */
.product-card,
.article-card {
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.article-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image,
.article-image {
    overflow: hidden;
    position: relative;
    background-color: var(--white-color);
}

.product-image img,
.article-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img,
.article-card:hover .article-image img {
    transform: scale(1.1);
}

.product-info,
.article-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h5,
.article-info h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    min-height: 40px;
}

.article-info h5 {
    font-size: 0.9rem;
    min-height: 60px;
}

.product-card-link,
.article-card-link {
    display: block;
    height: 100%;
}

.product-card-link:hover,
.article-card-link:hover {
    text-decoration: none;
}


/* Client Logos Slider */
.client-logos-slider .client-logo-item {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-logos-slider .client-logo-item img {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logos-slider .client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logos-slider .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.client-logos-slider .owl-dots .owl-dot span {
    background: var(--medium-gray) !important;
}

.client-logos-slider .owl-dots .owl-dot.active span {
    background: var(--secondary-color) !important;
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
}

.footer-top {
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.05);
    /* Lighter than primary but related */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top h4 {
    color: var(--white-color);
    margin-bottom: 10px;
    /* Adjusted based on image */
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-subscribe-title,
.footer-follow-title {
    margin-bottom: 10px;
    /* For mobile stacking */
}

@media (min-width: 992px) {

    .footer-subscribe-title,
    .footer-follow-title {
        margin-bottom: 0;
    }
}

.newsletter-form {
    display: flex;
    max-width: 100%;
    /* Full width in its column */
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    /* Increased padding */
    border: 1px solid var(--medium-gray);
    border-radius: 5px 0 0 5px;
    outline: none;
    color: var(--text-color);
    font-size: 0.9rem;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 15px;
    /* Matched input padding */
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    background-color: #c57015;
    border-color: #c57015;
}

.social-icons a {
    display: inline-block;
    width: 38px;
    /* Slightly smaller */
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background-color: #4267B2;
    color: #fff;
    margin: 0 3px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #fff;
    color: #4267B2;
    transform: translateY(-2px);
}

.footer-main {
    padding: 20px 0 40px 0;
    /* Reduced bottom padding slightly */
}

.footer-logo-container {
    display: flex;
    align-items: center;
    /* Vertically center if logo is smaller than contact items */
}

.footer-logo {
    max-width: 240px;
    /* Adjusted from image */
    margin-bottom: 0;
}

.footer-contact-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-item .d-flex {
    align-items: flex-start;
    /* Align icon with first line of text */
}

.footer-contact-icon {
    font-size: 1.5rem;
    /* Slightly smaller icon */
    color: var(--white-color);
    margin-right: 15px;
    margin-top: 5px;
    /* Fine-tune vertical alignment */
    width: 25px;
    /* Ensure space */
    text-align: center;
}

.footer-contact-subtitle {
    color: var(--white-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-contact-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}


.footer-main h5 {
    /* Titles for footer links */
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

.reclamaciones-icon {
    width: 16px;
    margin-right: 5px;
    vertical-align: middle;
    /* Align with text */
}

.google-map iframe {
    border-radius: 5px;
    height: 100%;
    min-height: 180px;
    /* Ensure it has some height on all views */
}

.footer-links-map-row .col-lg-2,
.footer-links-map-row .col-lg-6 {
    /* Ensure map column is full height of its content */
    display: flex;
    flex-direction: column;
}

.footer-links-map-row .google-map {
    flex-grow: 1;
}


.footer-bottom {
    background-color: var(--secondary-color);
    /* Changed to secondary color */
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--white-color);
    /* Text color white for better contrast */
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    /* For "AJAXPERU" link if any */
    color: var(--white-color);
    font-weight: 600;
    text-decoration: underline;
}

.footer-bottom a:hover {
    text-decoration: none;
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    line-height: 50px;
    z-index: 1000;
    /* Ensure above other elements */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    width: 40px;
    height: 40px;
    bottom: 105px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    line-height: 40px;
    z-index: 1000;
    /* Ensure above other elements */
    display: none;
    /* Hidden by default */
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #c57015;
    color: var(--white-color);
}

/* Mobile Specific Styles */
.mobile-header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-header-icons a,
.mobile-header-icons .navbar-toggler {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 15px;
    border: none;
    background: none;
    padding: 0;
}

.mobile-header-icons .header-icon-img {
    height: 24px;
}

.mobile-header-icons .navbar-toggler:focus {
    outline: none;
}

.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: -300px;
    /* Start off-screen */
    width: 300px;
    max-width: 80%;
    height: 100%;
    background-color: var(--white-color);
    z-index: 1040;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-wrapper.show {
    /* Bootstrap adds .show when collapse is open */
    left: 0;
}

.mobile-menu-header {
    background-color: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo {
    max-height: 40px;
}

.mobile-menu-header .close {
    color: var(--white-color);
    opacity: 0.8;
    font-size: 1.8rem;
    text-shadow: none;
}

.mobile-menu-wrapper .navbar-nav .nav-link {
    color: var(--text-color);
    padding: 12px 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu-wrapper .navbar-nav .nav-link:hover,
.mobile-menu-wrapper .navbar-nav .nav-item.active .nav-link {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.mobile-menu-wrapper .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: var(--light-gray);
    margin-top: 0;
    border-radius: 0;
}

.mobile-menu-wrapper .dropdown-item {
    padding-left: 30px;
}

.search-form-mobile {
    display: flex;
    padding: 10px;
}

.search-form-mobile input {
    flex-grow: 1;
    border: 1px solid var(--medium-gray);
    border-radius: 5px 0 0 5px;
    padding: 8px 10px;
}

.search-form-mobile button {
    border-radius: 0 5px 5px 0;
}


@media (max-width: 991.98px) {

    /* Medium devices (tablets, less than 992px) */
    .header-nav-bar {
        display: none;
    }

    .main-content .row>.col-lg-3 {
        margin-bottom: 30px;
    }

    .footer-main .col-lg-2,
    .footer-main .col-lg-3,
    .footer-main .col-lg-6 {
        text-align: center;
    }

    .footer-main ul {
        margin: 0 auto 15px;
        display: inline-block;
        text-align: left;
    }

    .footer-contact-item .d-flex {
        justify-content: center;
    }

    .footer-contact-item .d-flex>div {
        text-align: left;
    }

    .footer-logo-container {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {

    /* Small devices (landscape phones, less than 768px) */
    .header-middle-bar {
        position: sticky;
        top: 0;
        z-index: 1020;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .search-form {
        display: none;
    }

    .footer-top .row>div {
        text-align: center !important;
    }

    .newsletter-form {
        margin: 0 auto 20px;
    }

    .footer-links-map-row .col-md-3 {
        /* For footer menus on mobile */
        flex-basis: 50%;
        /* Two columns for menus */
        max-width: 50%;
    }

    .footer-links-map-row .google-map {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 20px;
        /* Space above map if it wraps */
    }
}

@media (min-width: 992px) {
    .mobile-menu-wrapper {
        display: none !important;
    }
}