/* =========================================================
   FEDEPAPA - PÁGINA DE INICIO (ALINEACIÓN Y MARGENES FIJOS)
   ========================================================= */

:root {
    --blue: #0758b8;
    --blue-dark: #002b59;
    --blue-light: #eef6ff;
    --green: #0a8f43;
    --green-light: #e8f7ee;
    --text: #102d52;
    --muted: #53647a;
    --border: #e7edf5;
    --white: #ffffff;
    --bg: #f5f9fd;
    --shadow: 0 5px 20px rgba(20, 48, 86, .06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CONTENEDOR GENERAL */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAV --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.nav-wrapper {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img,
.brand-logo {
    width: 145px !important;
    max-width: 145px !important;
    height: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    display: block !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

/* BOTONES GENERICALES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn-header {
    padding: 9px 16px;
    font-size: 12px;
    flex: none;
}

.btn-whatsapp {
    background: var(--green);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #087938;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-green {
    background: var(--green);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--blue-dark);
}

/* --- HERO CON ESPACIADO Y MARGENES CORRECTOS --- */
.hero {
    background: #ffffff;
    width: 100%;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
    align-items: center;
    gap: 20px;
}

.hero-copy-col {
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-copy {
    max-width: 520px;
}

.hero-copy h1 {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-copy h1 span {
    display: block;
    font-weight: 800;
    color: #102d52;
}

.hero-copy h1 strong {
    display: block;
    font-weight: 800;
    color: #0758b8;
}

.hero-copy p {
    font-size: 13.5px;
    margin-bottom: 28px;
    color: #53647a;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* BOTONES HERO */
.btn-hero-primary {
    background: #0758b8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 6px;
}

.btn-hero-primary:hover {
    background: #054696;
}

.btn-hero-secondary {
    background: #ffffff;
    color: #102d52;
    border: 1px solid #cdd9e6;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 6px;
}

.btn-hero-secondary i {
    color: #0a8f43;
}

.btn-hero-secondary:hover {
    background: #f5f9fd;
}

/* COLUMNA DE LA IMAGEN Y DEGRADADO */
.hero-image-col {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-col::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 35%;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* --- FRANJA DE BENEFICIOS AZUL --- */
.benefit-strip {
    background: #0758b8;
    color: #ffffff;
    padding: 16px 0;
}

.benefit-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.strip-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: none;
}

/* --- TARJETAS DE SERVICIOS --- */
.benefits-section {
    padding: 50px 0;
}

.section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.section-heading h2 {
    font-size: 24px;
    color: var(--blue-dark);
    font-weight: 700;
}

.section-heading span {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin: 8px auto 0;
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.benefit-card.health .card-icon { background: #eaf2fd; color: #0758b8; }
.benefit-card.health .card-btn { background: #0758b8; }

.benefit-card.veterinary .card-icon { background: #e6f6ec; color: #0a8f43; }
.benefit-card.veterinary .card-btn { background: #0a8f43; }

.benefit-card.wellbeing .card-icon { background: #f0ebf9; color: #6f42c1; }
.benefit-card.wellbeing .card-btn { background: #6f42c1; }

.benefit-card.protection .card-icon { background: #e8f0fe; color: #1a73e8; }
.benefit-card.protection .card-btn { background: #1a73e8; }

.benefit-card.mapping .card-icon { background: #e6f7f6; color: #00a896; }
.benefit-card.mapping .card-btn { background: #00a896; }

.benefit-card.vehicles .card-icon { background: #fdf2e9; color: #e65100; }
.benefit-card.vehicles .card-btn { background: #e65100; }

.benefit-card.legal .card-icon { background: #fef7e0; color: #d97706; }
.benefit-card.legal .card-btn { background: #d97706; }

.benefit-card h3 {
    font-size: 16px;
    color: var(--text);
    line-height: 1.2;
}

.benefit-card h4 {
    font-size: 11px;
    color: var(--muted);
    min-height: 16px;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 48px;
}

.benefit-card ul {
    list-style: none;
    margin-bottom: 16px;
    flex-grow: 1;
}

.benefit-card ul li {
    font-size: 11px;
    color: var(--text);
    padding: 3px 0 3px 14px;
    position: relative;
    line-height: 1.35;
}

.benefit-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 10px;
    font-weight: bold;
}

.card-btn {
    display: block;
    text-align: center;
    padding: 8px;
    color: var(--white);
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
}

.more-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

/* --- TARJETAS EXTENSIONES --- */
.extensions {
    padding: 10px 0 50px;
}

.extensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.extension-card {
    background: #f0f6fc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.extension-copy {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.extension-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e8f7ee;
    color: #0a8f43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.extension-card.worker .extension-icon {
    background: #eef6ff;
    color: #0758b8;
}

.extension-copy h2 {
    font-size: 22px;
    color: var(--blue-dark);
    margin-bottom: 10px;
    line-height: 1.25;
}

.extension-copy p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.extension-copy .price {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f7ee;
    color: #0a8f43;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.extension-image {
    position: relative;
    min-height: 240px;
    background-size: cover;
    background-position: center;
}

.extension-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #f0f6fc 0%, rgba(240, 246, 252, 0.5) 20%, rgba(240, 246, 252, 0) 45%);
    z-index: 1;
}

.family-image {
    background-image: url('../image/familia.png');
}

.worker-image {
    background-image: url('../image/jornalero.png');
}

/* --- TRUST BAR & CTA --- */
.trust-bar {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text);
}

.trust-icon {
    font-size: 22px;
    color: var(--blue);
}

.cta {
    background: var(--blue-dark);
    color: var(--white);
    padding: 35px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-icon {
    font-size: 32px;
    opacity: 0.9;
}

.cta-content h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.cta-content p {
    font-size: 13px;
    opacity: 0.85;
}

/* --- FOOTER UNIFICADO --- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.5;
}

.site-footer h3 {
    font-size: 13px;
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.site-footer div > a {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.socials {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
}

.socials a {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: var(--blue-light) !important;
    color: var(--blue) !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* --- RESPONSIVE --- */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
}

@media (max-width: 1100px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy-col { padding: 20px 0; justify-content: center; }
    .hero-image-col { height: 320px; }
    .hero-image-col::before { width: 100%; height: 30%; background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .extensions-grid { grid-template-columns: 1fr; }
    .benefit-strip-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .main-nav.is-open { display: flex; }
}