/* =========================================================
   FEDEPAPA - PORTAL DE BENEFICIOS
   Estilos base + responsive
   ========================================================= */

:root {
    --blue: #0758b8;
    --blue-dark: #06316e;
    --blue-light: #eef5ff;
    --green: #0a8f43;
    --text: #102d52;
    --muted: #53647a;
    --border: #e7edf5;
    --white: #ffffff;
    --page: #ffffff;
    --shadow: 0 5px 20px rgba(20, 48, 86, .08);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}


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

.site-header {
    min-height: 74px;
    background: #fff;
    border-bottom: 1px solid #edf1f6;
}

.nav-wrapper {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: #0758b8;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 5px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 1;
}

.brand-name {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}

.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex: 1;
    height: 74px;
}

.main-nav a {
    display: flex;
    align-items: center;
    position: relative;
    color: #12233b;
    font-size: 11px;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--blue);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: var(--blue);
}

.btn {
    min-height: 40px;
    padding: 0 19px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

.btn-header {
    white-space: nowrap;
}

.btn-whatsapp {
    color: #fff;
    background: #0a9147;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
}

.btn-outline {
    color: var(--blue);
    background: #fff;
    border-color: var(--blue);
}

.btn-green {
    color: #fff;
    background: var(--green);
}

.btn-white {
    color: #102d52;
    background: #fff;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    background: linear-gradient(90deg, #f9fbfe 0%, #f9fbfe 39%, #e9f0f4 70%, #dfe9ef 100%);
}

.hero-image {
    position: absolute;
    inset: 0 0 0 37%;
    background:
        linear-gradient(90deg, #f9fbfe 0%, rgba(249,251,254,.75) 8%, rgba(249,251,254,0) 28%),
        url("../image/hero-productor.png") center right / cover no-repeat;
}

.hero-content {
    position: relative;
    min-height: 365px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 48%;
    padding: 38px 0 42px;
}

.hero-copy h1 {
    margin: 0 0 14px;
    color: #142f55;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.hero-copy h1 strong {
    color: var(--blue);
}

.hero-copy p {
    max-width: 470px;
    margin: 0 0 23px;
    color: #1f3857;
    font-size: 14px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   BLUE BENEFIT STRIP
   ========================================================= */

.benefit-strip {
    background: linear-gradient(90deg, #0755bd, #1456c4);
    color: #fff;
}

.benefit-strip-grid {
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-item {
    min-height: 52px;
    margin-block: 10px;
    padding: 5px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-size: 12px;
    line-height: 1.25;
    border-right: 1px solid rgba(255,255,255,.22);
}

.strip-item:last-child {
    border-right: 0;
}

.strip-icon {
    font-size: 31px;
    line-height: 1;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.benefits-section {
    padding: 25px 0 18px;
}

.section-heading {
    text-align: center;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    color: #102d52;
    font-size: 25px;
    line-height: 1.2;
}

.section-heading span {
    display: block;
    width: 54px;
    height: 3px;
    margin: 9px auto 0;
    background: var(--blue);
}


/* =========================================================
   BENEFIT CARDS
   ========================================================= */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.benefit-card {
    min-width: 0;
    min-height: 430px;
    padding: 17px 10px 13px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 9px;
    box-shadow: var(--shadow);
}

.card-icon {
    width: 67px;
    height: 67px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf4ff;
    color: var(--blue);
    font-size: 33px;
}

.benefit-card h3 {
    min-height: 38px;
    margin: 0;
    text-align: center;
    font-size: 17px;
    line-height: 1.15;
    color: var(--blue);
}

.benefit-card h4 {
    min-height: 20px;
    margin: 2px 0 8px;
    text-align: center;
    color: #102d52;
    font-size: 13px;
    line-height: 1.2;
}

.benefit-card p {
    min-height: 73px;
    margin: 0 0 6px;
    color: #263b55;
    font-size: 10px;
    line-height: 1.65;
}

.benefit-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #263b55;
    font-size: 9.5px;
    line-height: 1.55;
}

.benefit-card li {
    position: relative;
    margin-bottom: 3px;
    padding-left: 13px;
}

.benefit-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.card-btn {
    margin-top: auto;
    min-height: 30px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #fff;
    background: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.more-link {
    margin-top: 7px;
    text-align: center;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
}

/* Accent colors */
.veterinary .card-icon,
.veterinary h3 { color: #118543; }
.veterinary .card-icon { background: #e9f8ee; }
.veterinary .card-btn { background: #118543; }
.veterinary li::before { color: #118543; }
.veterinary .more-link { color: #118543; }

.wellbeing .card-icon,
.wellbeing h3 { color: #7050c8; }
.wellbeing .card-icon { background: #f0ecfb; }
.wellbeing .card-btn { background: #7050c8; }
.wellbeing li::before { color: #7050c8; }
.wellbeing .more-link { color: #7050c8; }

.mapping .card-icon,
.mapping h3 { color: #168c99; }
.mapping .card-icon { background: #e8f7f8; }
.mapping .card-btn { background: #168c99; }
.mapping li::before { color: #168c99; }
.mapping .more-link { color: #168c99; }

.vehicles .card-icon,
.vehicles h3 { color: #f16a1a; }
.vehicles .card-icon { background: #fff0e8; }
.vehicles .card-btn { background: #f16a1a; }
.vehicles li::before { color: #f16a1a; }
.vehicles .more-link { color: #f16a1a; }

.legal .card-icon,
.legal h3 { color: #e2a50d; }
.legal .card-icon { background: #fff6df; }
.legal .card-btn { background: #e2a50d; }
.legal li::before { color: #e2a50d; }
.legal .more-link { color: #c89000; }


/* =========================================================
   EXTENSION CARDS
   ========================================================= */

.extensions {
    padding: 8px 0 16px;
}

.extensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.extension-card {
    min-height: 200px;
    position: relative;
    display: grid;
    grid-template-columns: 58% 42%;
    overflow: hidden;
    border-radius: 10px;
    background: #edf6ff;
}

.extension-copy {
    padding: 20px 0 18px 28px;
    position: relative;
    z-index: 1;
}

.extension-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3f6e9;
    color: var(--green);
    font-size: 25px;
}

.extension-copy h2 {
    margin: 0 0 5px;
    color: var(--blue);
    font-size: 21px;
    line-height: 1.1;
}

.extension-copy p {
    max-width: 300px;
    margin: 0 0 9px;
    color: #26415f;
    font-size: 10px;
    line-height: 1.45;
}

.price {
    display: inline-block;
    margin-bottom: 9px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #dff3e5;
    color: #16743b;
    font-size: 11px;
}

.extension-copy .btn {
    display: flex;
    width: fit-content;
    min-height: 31px;
    padding-inline: 13px;
    font-size: 10px;
}

.extension-image {
    min-height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.family-image {
    background-image:
        linear-gradient(90deg, #edf6ff 0%, rgba(237,246,255,0) 20%),
        url("../image/familia.png");
}

.worker {
    background: #eef6ff;
}

.worker .extension-icon {
    background: #e5efff;
    color: var(--blue);
}

.worker-image {
    background-image:
        linear-gradient(90deg, #eef6ff 0%, rgba(238,246,255,0) 20%),
        url("../image/jornalero.png");
}


/* =========================================================
   TRUST BAR
   ========================================================= */

.trust-bar {
    padding: 6px 0 9px;
}

.trust-grid {
    min-height: 65px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #edf0f4;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.trust-grid > div {
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #24405f;
    font-size: 9.5px;
    line-height: 1.35;
    border-right: 1px solid #e3e7ed;
}

.trust-grid > div:last-child {
    border-right: 0;
}

.trust-grid strong {
    font-weight: 700;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    margin-top: 5px;
    background: linear-gradient(90deg, #0755bd, #075ac6);
    color: #fff;
}

.cta-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 26px;
}

.cta h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
}

.cta p {
    margin: 2px 0 0;
    font-size: 10px;
}

.cta .btn {
    margin-left: auto;
}


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

.site-footer {
    background: #fff;
    color: #193454;
}

.footer-grid {
    padding: 20px 0 17px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand .brand {
    margin-bottom: 10px;
}

.footer-brand p {
    max-width: 300px;
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.footer-grid h3 {
    margin: 0 0 5px;
    color: #102d52;
    font-size: 10px;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;
    margin-bottom: 3px;
    font-size: 9px;
}

.socials {
    display: flex;
    gap: 9px;
}

.socials a {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 11px !important;
    font-weight: 700;
}

.copyright {
    padding: 5px 20px;
    text-align: center;
    color: #fff;
    background: #102d52;
    font-size: 8px;
}


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

@media (max-width: 1100px) {
    .container {
        width: min(100% - 40px, 960px);
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .benefit-card {
        min-height: 420px;
    }
}

@media (max-width: 800px) {
    .nav-wrapper {
        min-height: auto;
        padding: 13px 0;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        height: auto;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .main-nav a {
        min-height: 34px;
    }

    .main-nav a.active::after {
        bottom: 0;
    }

    .hero {
        min-height: 480px;
    }

    .hero-image {
        inset: 0;
        background:
            linear-gradient(180deg, rgba(249,251,254,.95) 0%, rgba(249,251,254,.8) 45%, rgba(249,251,254,.05) 75%),
            url("../image/hero-productor.png") center / cover no-repeat;
    }

    .hero-content {
        min-height: 480px;
        align-items: flex-start;
    }

    .hero-copy {
        width: 70%;
        padding-top: 42px;
    }

    .benefit-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strip-item:nth-child(2) {
        border-right: 0;
    }

    .extensions-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .site-header,
    .nav-wrapper {
        min-height: 60px;
    }

    .brand-name {
        font-size: 22px;
    }

    .btn-header {
        margin-left: auto;
        padding-inline: 12px;
        font-size: 10px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        min-height: 520px;
    }

    .hero-copy {
        width: 100%;
        padding-top: 35px;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .hero-copy p {
        max-width: 350px;
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 310px;
    }

    .benefit-strip-grid {
        grid-template-columns: 1fr;
    }

    .strip-item,
    .strip-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
        justify-content: flex-start;
        padding-inline: 12px;
    }

    .strip-item:last-child {
        border-bottom: 0;
    }

    .benefits-section {
        padding-top: 26px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .benefit-card {
        min-height: 430px;
        padding-inline: 10px;
    }

    .benefit-card h3 {
        font-size: 15px;
    }

    .benefit-card p {
        font-size: 10px;
    }

    .benefit-card ul {
        font-size: 9px;
    }

    .extension-card {
        grid-template-columns: 1fr;
    }

    .extension-copy {
        padding: 20px;
    }

    .extension-image {
        min-height: 190px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid > div {
        padding: 13px 8px;
        border-bottom: 1px solid #e3e7ed;
    }

    .trust-grid > div:nth-child(2) {
        border-right: 0;
    }

    .trust-grid > div:nth-child(3),
    .trust-grid > div:nth-child(4) {
        border-bottom: 0;
    }

    .cta-content {
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .cta .btn {
        width: 100%;
        margin-left: 63px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .btn-header {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: auto;
    }

    .benefit-card p {
        min-height: auto;
    }

    .benefit-card h4 {
        min-height: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div {
        border-right: 0;
        border-bottom: 1px solid #e3e7ed !important;
    }

    .trust-grid > div:last-child {
        border-bottom: 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CORRECCIÓN DEFINITIVA: HEADER + MENÚ MÓVIL + REDES
   ========================================================= */

@media (min-width: 801px) {
    .site-header .nav-wrapper {
        width: min(1180px, calc(100% - 48px));
        min-height: 74px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 22px;
    }

    .site-header .brand {
        display: flex;
        flex: 0 0 150px;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        height: 48px;
        overflow: hidden;
    }

    .site-header .brand-logo {
        width: 145px !important;
        max-width: 145px !important;
        height: 42px !important;
        max-height: 42px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain;
        object-position: left center;
    }

    .site-header .mobile-menu {
        display: contents;
        position: static;
    }

    .site-header .mobile-menu > summary {
        display: none !important;
    }

    .site-header .mobile-menu .main-nav {
        display: flex;
        position: static;
        flex: 1 1 auto;
        width: auto;
        height: 74px;
        max-height: none;
        padding: 0;
        margin: 0;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 16px;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-header .mobile-menu .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #12233b;
        font-size: 10px;
        white-space: nowrap;
    }

    .site-header .mobile-menu .main-nav a.active {
        color: var(--blue);
        background: transparent;
    }

    .site-header .mobile-menu .main-nav a.active::after {
        display: block;
        bottom: 12px;
    }

    .site-header .btn-header {
        flex: 0 0 auto;
        margin-left: 0;
        min-height: 40px;
    }
}

@media (max-width: 800px) {
    .site-header .nav-wrapper {
        position: relative;
        width: calc(100% - 28px);
        min-height: 64px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .site-header .brand {
        flex: 0 0 135px;
        width: 135px;
        min-width: 135px;
        max-width: 135px;
        height: 40px;
        overflow: hidden;
    }

    .site-header .brand-logo {
        width: 130px !important;
        max-width: 130px !important;
        height: 38px !important;
        max-height: 38px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain;
        object-position: left center;
    }

    .site-header .btn-header {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        min-height: 40px;
        padding-inline: 11px;
        font-size: 10px;
    }

    .site-header .mobile-menu {
        order: 3;
        position: relative;
        display: block;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .site-header .mobile-menu > summary,
    .site-header .mobile-menu > summary::marker {
        list-style: none;
    }

    .site-header .mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .site-header .mobile-menu > summary {
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        border: 1px solid #d7e1ec;
        border-radius: 7px;
        background: #fff;
    }

    .site-header .mobile-menu > summary span {
        width: 22px;
        height: 2px;
        flex: 0 0 2px;
        margin: 0;
        padding: 0;
        display: block;
        border-radius: 2px;
        background: var(--blue-dark);
    }

    .site-header .mobile-menu[open] > summary span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header .mobile-menu[open] > summary span:nth-child(2) {
        opacity: 0;
    }

    .site-header .mobile-menu[open] > summary span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header .mobile-menu .main-nav {
        position: absolute;
        top: 50px;
        right: 0;
        z-index: 1000;
        width: min(290px, calc(100vw - 24px));
        height: auto;
        max-height: none;
        padding: 6px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow: visible;
        background: #fff;
        border: 1px solid #e3e9f0;
        border-radius: 9px;
        box-shadow: 0 12px 28px rgba(16,45,82,.18);
    }

    .site-header .mobile-menu .main-nav a,
    .site-header .mobile-menu .main-nav a.active {
        width: 100%;
        min-height: 45px;
        padding: 0 17px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border: 0;
        border-bottom: 1px solid #edf1f6;
        background: #fff;
        color: #12233b;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
    }

    .site-header .mobile-menu .main-nav a.active {
        color: var(--blue);
        background: #f1f6fd;
        font-weight: 700;
    }

    .site-header .mobile-menu .main-nav a:last-child {
        border-bottom: 0;
    }

    .site-header .mobile-menu .main-nav a::after {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .site-header .nav-wrapper {
        width: calc(100% - 24px);
    }

    .site-header .brand {
        width: 128px;
        min-width: 128px;
        max-width: 128px;
    }

    .site-header .brand-logo {
        width: 123px !important;
        max-width: 123px !important;
        height: 36px !important;
        max-height: 36px !important;
    }

    .site-header .btn-header {
        min-height: 38px;
        padding-inline: 9px;
        font-size: 9px;
    }

    .site-header .mobile-menu,
    .site-header .mobile-menu > summary {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 390px) {
    .site-header .btn-header {
        display: none;
    }
}

/* =========================================================
   REDES SOCIALES: CENTRADO REAL
   ========================================================= */

.site-footer .footer-grid > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-align: center;
}

.site-footer .footer-grid > div:last-child h3 {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
}

.site-footer .footer-grid .socials {
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px;
}

.site-footer .footer-grid .socials a {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    line-height: 1 !important;
    font-size: 0 !important;
    font-weight: 400;
}

.site-footer .footer-grid .socials a i {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    position: static !important;
    transform: none !important;
}

@media (max-width: 600px) {
    .site-footer .footer-grid > div:last-child {
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-grid .socials {
        width: 100%;
        justify-content: center !important;
    }
}


/* =========================================================
   AJUSTES FINALES DEL SITIO
   ========================================================= */

/* ---------- Header fijo/sticky ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 8px rgba(16, 45, 82, .06);
}

/* El botón hamburguesa NO existe en desktop */
.site-header .menu-toggle {
    display: none;
}


/* ---------- Imágenes: nombres reales de los assets ---------- */

.hero-image {
    background-image:
        linear-gradient(
            90deg,
            #f9fbfe 0%,
            rgba(249,251,254,.75) 8%,
            rgba(249,251,254,0) 28%
        ),
        url("../image/hero-productor.png");
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
}

.family-image {
    background-image:
        linear-gradient(
            90deg,
            #edf6ff 0%,
            rgba(237,246,255,0) 20%
        ),
        url("../image/familia.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.worker-image {
    background-image:
        linear-gradient(
            90deg,
            #eef6ff 0%,
            rgba(238,246,255,0) 20%
        ),
        url("../image/jornalero.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* ---------- Redes sociales: reset completo ---------- */

.site-footer .footer-grid > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 0;
}

.site-footer .footer-grid > div:last-child h3 {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
}

.site-footer .socials {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .socials a {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: var(--blue);
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-align: center;
}

.site-footer .socials a i {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    transform: none !important;
}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 800px) {

    .site-header .nav-wrapper {
        min-height: 64px;
        padding: 9px 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .site-header .brand {
        flex: 0 0 135px;
        width: 135px;
        min-width: 135px;
        max-width: 135px;
        height: 40px;
        overflow: hidden;
    }

    .site-header .brand-logo {
        width: 130px !important;
        max-width: 130px !important;
        height: 38px !important;
        max-height: 38px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain;
    }

    .site-header .btn-header {
        margin-left: auto;
        flex: 0 0 auto;
        min-height: 40px;
    }

    /* Botón hamburguesa visible SOLO aquí */
    .site-header .menu-toggle {
        display: flex !important;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0 0 0 2px;
        padding: 8px;
        box-sizing: border-box;
        border: 1px solid #d7e1ec;
        border-radius: 7px;
        background: #fff;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .site-header .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        flex: 0 0 2px;
        margin: 0;
        padding: 0;
        border-radius: 2px;
        background: var(--blue-dark);
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-header .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .site-header .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Menú desplegable: sin scroll horizontal */
    .site-header .main-nav {
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        width: auto;
        height: auto;
        max-height: 0;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: #fff;
        border: 1px solid #e3e9f0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 12px 28px rgba(16,45,82,.16);
        transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
    }

    .site-header .main-nav.is-open {
        max-height: 460px;
        padding: 6px 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .main-nav a,
    .site-header .main-nav a.active {
        width: 100%;
        min-height: 45px;
        padding: 0 17px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        border: 0;
        border-bottom: 1px solid #edf1f6;
        background: #fff;
        color: #12233b;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
    }

    .site-header .main-nav a.active {
        color: var(--blue);
        background: #f1f6fd;
        font-weight: 700;
    }

    .site-header .main-nav a:last-child {
        border-bottom: 0;
    }

    .site-header .main-nav a.active::after {
        display: none;
    }

    /* Hero móvil */
    .hero-image {
        inset: 0;
        background-image:
            linear-gradient(
                180deg,
                rgba(249,251,254,.96) 0%,
                rgba(249,251,254,.84) 42%,
                rgba(249,251,254,.18) 78%,
                rgba(249,251,254,0) 100%
            ),
            url("../image/hero-productor.png");
        background-position: center center;
        background-size: cover;
    }

    .family-image,
    .worker-image {
        background-position: center center;
    }
}


@media (max-width: 520px) {

    .site-header .nav-wrapper {
        width: calc(100% - 24px);
    }

    .site-header .brand {
        flex-basis: 128px;
        width: 128px;
        min-width: 128px;
        max-width: 128px;
    }

    .site-header .brand-logo {
        width: 123px !important;
        max-width: 123px !important;
        height: 36px !important;
        max-height: 36px !important;
    }

    .site-header .btn-header {
        min-height: 38px;
        padding-inline: 9px;
        font-size: 9px;
    }

    .site-header .menu-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .site-footer .socials {
        justify-content: center !important;
    }
}


@media (max-width: 390px) {

    .site-header .btn-header {
        display: none;
    }

    .site-header .menu-toggle {
        margin-left: auto;
    }
}


/* =========================================================
   EXTENSION CARDS — FUSIÓN SUAVE CON LA FOTOGRAFÍA
   ========================================================= */

.extension-card {
    position: relative;
    overflow: hidden;
    background: #edf6ff;
}

/* The photo occupies the right side and its left edge is faded.
   The fade is an overlay, not a hard boundary between grid columns. */
.extension-card .extension-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    min-height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.extension-card .extension-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #edf6ff 0%,
        rgba(237,246,255,.96) 7%,
        rgba(237,246,255,.72) 16%,
        rgba(237,246,255,.28) 29%,
        rgba(237,246,255,0) 46%
    );
    pointer-events: none;
}

.extension-card.worker .extension-image::before {
    background: linear-gradient(
        90deg,
        #eef6ff 0%,
        rgba(238,246,255,.96) 7%,
        rgba(238,246,255,.72) 16%,
        rgba(238,246,255,.28) 29%,
        rgba(238,246,255,0) 46%
    );
}

.extension-card .extension-copy {
    position: relative;
    z-index: 2;
    width: 58%;
    box-sizing: border-box;
}


/* ---------- Mobile: foto debajo del contenido ---------- */

@media (max-width: 800px) {

    .extension-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .extension-card .extension-copy {
        width: 100%;
        flex: 0 0 auto;
        padding: 20px;
    }

    .extension-card .extension-image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 235px;
        min-height: 235px;
        flex: 0 0 235px;
        background-size: cover;
        background-position: center 32%;
    }

    .extension-card .extension-image::before {
        background: linear-gradient(
            180deg,
            #edf6ff 0%,
            rgba(237,246,255,.45) 7%,
            rgba(237,246,255,0) 24%
        );
    }

    .extension-card.worker .extension-image::before {
        background: linear-gradient(
            180deg,
            #eef6ff 0%,
            rgba(238,246,255,.45) 7%,
            rgba(238,246,255,0) 24%
        );
    }
}

@media (max-width: 520px) {

    .extension-card .extension-image {
        height: 250px;
        min-height: 250px;
        flex-basis: 250px;
        background-position: center 30%;
    }
}
