/* ─── HERO / BANNER ──────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--topbar-height) - var(--navbar-height));
    min-height: 500px;
    max-height: 780px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Imagen de fondo */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

/* Overlay degradado izquierda→derecha para que el texto sea legible */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 48, 78, 0.72) 0%,
        rgba(0, 48, 78, 0.35) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 600px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.25s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.4s forwards;
}

/* Botones CTA */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.55s forwards;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 100px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 4px 20px rgba(235, 188, 122, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(235, 188, 122, 0.5);
    background: #f2ca8f;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.hero-scroll span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 1.8s ease infinite;
}

/* ─── ANIMACIONES ────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
        max-height: none;
        min-height: 480px;
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .hero::after {
        background: linear-gradient(
            to top,
            rgba(0, 48, 78, 0.90) 0%,
            rgba(0, 48, 78, 0.55) 45%,
            transparent 100%
        );
    }

    /* ─── IMAGEN MOBILE ──────────────────────────────────── */
    .hero-bg {
        content: url('../img/banner_mobile.jpeg'); /* FIX: ruta relativa (portable raíz/subdir) */
        object-position: center center;
    }

    .hero-scroll { display: none; }

    .hero-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .hero-subtitle { font-size: 13px; }
    .hero-actions { gap: 10px; }

    .btn-primary,
    .btn-secondary {
        font-size: 11px;
        padding: 13px 24px;
    }
}

/* ─── ¿POR QUÉ ELEGIR MODESTA? ───────────────────────────── */
.why-modesta {
    padding: 72px 20px;
    background: var(--white);
}

.why-modesta__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.why-modesta__title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 28px;
}

.why-modesta__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    justify-content: center;
}

.why-modesta__card {
    text-align: left;
    background: var(--gray);
    border: 1px solid rgba(0, 48, 78, 0.08);
    border-radius: 18px;
    padding: 22px 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-modesta__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(235, 188, 122, 0.55);
}

.why-modesta__card-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-modesta__card-text {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.72);
}

@media (max-width: 768px) {
    .why-modesta {
        padding: 54px 18px;
    }

    .why-modesta__grid {
        grid-template-columns: 1fr;
    }

    .why-modesta__card {
        padding: 20px 18px;
        border-radius: 16px;
    }
}
