/*
Theme Name: A la Calidad
Template: generatepress
Version: 1.0.0
*/

/* ==================================================
   VARIABLES GENERALES
================================================== */

:root {
    --ac-green: #2f6b45;
    --ac-green-dark: #245638;
    --ac-green-soft: rgba(47, 107, 69, .08);

    --ac-yellow: #f4ad05;
    --ac-yellow-dark: #e5a000;

    --ac-black: #111111;
    --ac-white: #ffffff;
    --ac-border: rgba(47, 107, 69, .35);

    --ac-shadow-yellow: 0 12px 28px rgba(244, 173, 5, .28);
    --ac-shadow-green: 0 12px 28px rgba(47, 107, 69, .20);
    --ac-shadow-dropdown: 0 18px 45px rgba(0, 0, 0, .12);

    --ac-radius-pill: 999px;
    --ac-transition: all .25s ease;
}


/* ==================================================
   BOTONES GENERALES DE LA WEB
   Usar en cualquier parte:
   .btn-general .btn-primary
   .btn-general .btn-secondary
   .btn-general .btn-outline
================================================== */

.btn-general {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 30px;
    border-radius: var(--ac-radius-pill);
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ac-transition);
}

.btn-general:hover {
    text-decoration: none !important;
}

.btn-primary {
    background: var(--ac-yellow);
    color: var(--ac-black) !important;
    box-shadow: var(--ac-shadow-yellow);
}

.btn-primary:hover {
    background: var(--ac-yellow-dark);
    color: var(--ac-black) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(244, 173, 5, .36);
}

.btn-secondary {
    background: var(--ac-green);
    color: var(--ac-white) !important;
    box-shadow: var(--ac-shadow-green);
}

.btn-secondary:hover {
    background: var(--ac-green-dark);
    color: var(--ac-white) !important;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--ac-green) !important;
    border: 2px solid var(--ac-green);
}

.btn-outline:hover {
    background: var(--ac-green);
    color: var(--ac-white) !important;
    transform: translateY(-1px);
}

.btn-white {
    background: var(--ac-white);
    color: var(--ac-green) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.btn-white:hover {
    background: var(--ac-green);
    color: var(--ac-white) !important;
    transform: translateY(-1px);
}


/* Tamaños de botones reutilizables */

.btn-small {
    min-height: 38px;
    padding: 0 22px;
    font-size: 14px;
}

.btn-large {
    min-height: 50px;
    padding: 0 36px;
    font-size: 16px;
}


/* ==================================================
   HEADER GENERAL
================================================== */

.site-header {
    width: 100%;
    background: var(--ac-white);
    border-top: 1px solid var(--ac-border);
    position: relative;
    z-index: 9999;
    font-family: Arial, Helvetica, sans-serif;
}

.site-header .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.header-container {
    width: 100%;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ==================================================
   LOGO
================================================== */

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.site-logo-full,
.site-logo img,
.custom-logo {
    display: block;
    width: 145px;
    max-width: 145px;
    height: auto;
    object-fit: contain;
}


/* ==================================================
   NAVEGACIÓN DESKTOP
================================================== */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link,
.nav-link-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ac-black) !important;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: var(--ac-transition);
}

.nav-link {
    padding: 34px 0;
}

.nav-link:hover,
.nav-link-main:hover {
    color: var(--ac-green) !important;
}


/* ==================================================
   LINK CON DROPDOWN
================================================== */

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px;
    border-radius: var(--ac-radius-pill);
    transition: var(--ac-transition);
}

.has-dropdown:hover > .nav-link-dropdown,
.nav-link-dropdown:hover {
    background: var(--ac-green) !important;
    color: var(--ac-white) !important;
}

.has-dropdown:hover .nav-link-main,
.nav-link-dropdown:hover .nav-link-main {
    color: var(--ac-white) !important;
}

.dropdown-toggle-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent !important;
    color: inherit !important;
    cursor: pointer;
    line-height: 1;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform .25s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    color: var(--ac-white) !important;
}


/* ==================================================
   DROPDOWN DESKTOP
================================================== */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    min-width: 315px;
    margin: 0;
    padding: 18px 20px;
    list-style: none;
    background: var(--ac-white);
    border-radius: 16px;
    box-shadow: var(--ac-shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ac-transition);
    z-index: 99999;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--ac-black) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    transition: var(--ac-transition);
}

.dropdown-menu a:hover {
    background: var(--ac-green-soft) !important;
    color: var(--ac-green) !important;
}


/* ==================================================
   ICONOS DROPDOWN
================================================== */

.dropdown-menu a i,
.dropdown-menu a .fas,
.dropdown-menu a .fa,
.dropdown-menu a .fa-solid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: var(--ac-yellow) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center !important;
}

.dropdown-menu a:hover i,
.dropdown-menu a:hover .fas,
.dropdown-menu a:hover .fa,
.dropdown-menu a:hover .fa-solid {
    color: var(--ac-green) !important;
}


/* ==================================================
   BOTÓN CONTACTO EN HEADER
   Usa los estilos generales de botones
================================================== */

.btn-nav {
    min-height: 43px;
    padding: 0 30px !important;
    font-size: 15px;
}

.site-header .btn-nav:hover {
    color: var(--ac-black) !important;
}


/* ==================================================
   BOTÓN HAMBURGUESA
================================================== */

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ac-yellow);
    color: var(--ac-black);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--ac-shadow-yellow);
}


/* ==================================================
   RESPONSIVE TABLET
================================================== */

@media (max-width: 1024px) {
    .site-header .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .header-container {
        height: 82px;
    }

    .nav-menu {
        gap: 28px;
    }

    .site-logo-full,
    .site-logo img,
    .custom-logo {
        width: 138px;
        max-width: 138px;
    }
}


/* ==================================================
   RESPONSIVE MÓVIL
================================================== */

@media (max-width: 767px) {
    .site-header {
        position: relative;
    }

    .header-container {
        height: 78px;
    }

    .site-logo-full,
    .site-logo img,
    .custom-logo {
        width: 135px;
        max-width: 135px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--ac-white);
        border-top: 1px solid rgba(47, 107, 69, .12);
        box-shadow: 0 20px 45px rgba(0, 0, 0, .10);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: var(--ac-transition);
    }

    .main-navigation.active,
    .main-navigation.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 22px 20px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link,
    .nav-link-main {
        width: 100%;
        font-size: 15px;
    }

    .nav-link {
        padding: 15px 0;
    }

    .nav-link:hover,
    .nav-link-main:hover {
        color: var(--ac-green) !important;
    }

    .nav-link-dropdown {
        width: 100%;
        padding: 15px 0;
        justify-content: space-between;
        border-radius: 0;
        background: transparent !important;
    }

    .has-dropdown:hover > .nav-link-dropdown,
    .nav-link-dropdown:hover {
        background: transparent !important;
    }

    .has-dropdown:hover .nav-link-main,
    .nav-link-dropdown:hover .nav-link-main {
        color: var(--ac-green) !important;
    }

    .dropdown-toggle-mobile {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--ac-green-soft) !important;
        color: var(--ac-green) !important;
    }

    .has-dropdown:hover .dropdown-icon {
        transform: none;
        color: var(--ac-green) !important;
    }

    .has-dropdown.is-open .dropdown-icon,
    .has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        padding: 0 0 8px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: transparent;
    }

    .has-dropdown.is-open .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 14px;
        background: rgba(47, 107, 69, .05);
        margin-bottom: 6px;
        font-size: 14px;
    }

    .btn-nav {
        width: fit-content;
        margin-top: 10px;
        min-height: 42px;
        padding: 0 28px !important;
    }

    .btn-general {
        min-height: 42px;
        padding: 0 26px;
        font-size: 14px;
    }
}


/* ==================================================
   FOOTER A LA CALIDAD
================================================== */

.site-footer {
    position: relative;
    width: 100%;
    background:
        radial-gradient(circle at 8% 18%, rgba(244, 173, 5, .20) 0%, transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(47, 107, 69, .35) 0%, transparent 35%),
        linear-gradient(135deg, #171c08 0%, #07140e 42%, #082414 100%);
    border-top: 5px solid #f4ad05;
    color: rgba(255, 255, 255, .78);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2f6b45 0%, #f4ad05 50%, #2f6b45 100%);
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1365px;
    margin: 0 auto;
    padding: 64px 40px 34px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}


/* ==================================================
   COLUMNA MARCA
================================================== */

.footer-brand {
    max-width: 440px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 205px;
    height: 80px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(244, 173, 5, .16);
    text-decoration: none !important;
    margin-bottom: 24px;
}

.footer-logo img {
    display: block;
    width: 100%;
    max-width: 155px;
    height: auto;
    object-fit: contain;
}

.footer-description {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none !important;
}

.footer-contact-item:hover {
    color: #ffffff !important;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(244, 173, 5, .22);
    color: #f4ad05;
    font-size: 15px;
}


/* ==================================================
   COLUMNAS LINKS
================================================== */

.footer-column h3 {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: #f4ad05;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none !important;
    transition: all .25s ease;
}

.footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #f4ad05;
    font-size: 14px;
    line-height: 1;
    transition: all .25s ease;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.footer-links a:hover::before {
    color: #f4ad05;
}





/* ==================================================
   KIT DIGITAL
================================================== */

.footer-kit {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.footer-kit img {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    padding: 12px 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .20);
    object-fit: contain;
}


/* ==================================================
   FOOTER BOTTOM
================================================== */

.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-copy strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.footer-copy span {
    color: rgba(255, 255, 255, .60);
    font-size: 14px;
    line-height: 1.4;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, .45);
}

.footer-legal a {
    color: rgba(255, 255, 255, .72) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color .25s ease;
}

.footer-legal a:hover {
    color: #f4ad05 !important;
}

.footer-legal span {
    color: rgba(255, 255, 255, .38);
    font-size: 13px;
}





/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1024px) {
    .footer-container {
        padding: 56px 30px 32px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .footer-container {
        padding: 46px 22px 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-logo {
        width: 195px;
        height: 78px;
    }

    .footer-description {
        font-size: 16px;
    }

    .footer-column h3 {
        margin-bottom: 24px;
    }

    .footer-links {
        gap: 17px;
    }

    .footer-separator {
        margin: 42px 0 28px;
    }

    .footer-kit img {
        max-width: 100%;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .footer-bottom {
        gap: 24px;
    }

    .footer-legal {
        gap: 8px;
    }

    .footer-legal a,
    .footer-copy span {
        font-size: 13px;
    }

   
}

@media (max-width: 480px) {
    .footer-logo {
        width: 185px;
        height: 74px;
    }

    .footer-contact-item {
        font-size: 15px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-copy strong {
        font-size: 15px;
    }
}