/* Estilos propios de sobre-nosotros.php (se cargan después de style.css) */

.eyebrow-dark { background: rgba(31, 122, 68, .12); color: var(--pest-green-dark); }

/* ---------- Estadísticas que se retiran con el scroll (nosotros.js) ---------- */
[data-retire] { will-change: transform, opacity; transform-origin: 50% 100%; }
.stat-item { box-shadow: 0 18px 35px rgba(10, 25, 20, .18); }
.stats-grid { perspective: 900px; }

/* =====================================================================
   MISIÓN / VISIÓN / VALORES: tarjetas que se apilan + foto al lado
   ===================================================================== */
.mv-stack {
    position: relative;
    height: calc((var(--n) + .6) * 100vh);
    height: calc((var(--n) + .6) * 100svh);
    background: linear-gradient(180deg, #f6f9f8, #eaf3ee);
}
.mv-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.mv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    will-change: transform, opacity;
}

/* Foto (cambia con cada tarjeta) */
.mv-media {
    position: relative;
    height: min(70vh, 560px);
    border-radius: 24px;
    overflow: hidden;
    background: var(--gradient-hero);
    box-shadow: 0 30px 60px rgba(10, 25, 20, .25);
}
.mv-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity, transform;
}
.mv-photo:not(:first-child) { opacity: 0; }
.mv-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 20, 26, .6));
    pointer-events: none;
}
.mv-media-tag {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--pest-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
}

/* Tarjetas apiladas */
.mv-side h2 {
    margin: 12px 0 26px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--pest-navy);
}
.mv-cards {
    position: relative;
    height: 290px;
    margin-top: 40px;   /* espacio para los bordes de las tarjetas apiladas, que suben sobre el título */
}
.mv-card {
    --accent: var(--pest-green);
    position: absolute;
    inset: 0;
    padding: 30px 30px 26px;
    border-radius: 20px;
    border-top: 5px solid var(--accent);
    background: #fff;
    box-shadow: 0 22px 45px rgba(10, 25, 20, .16);
    transform-origin: 50% 0;
    will-change: transform, opacity;
}
.mv-card-2 { --accent: var(--pest-amber); }
.mv-card-3 { --accent: var(--pest-navy-light); }
.mv-card:not(:first-child) { transform: translateY(115%); opacity: 0; }
.mv-num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    opacity: .16;
}
.mv-icon { font-size: 34px; }
.mv-card h3 { margin: 10px 0 8px; font-size: 24px; color: var(--pest-navy); }
.mv-card p { margin: 0; font-size: 15.5px; color: #4f625c; }

@media (max-width: 860px) {
    .mv-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .mv-media { height: 30vh; height: 30svh; border-radius: 18px; }
    .mv-side h2 { margin: 6px 0 14px; font-size: 22px; }
    .mv-cards { height: 250px; }
    .mv-card { padding: 22px 20px 20px; }
    .mv-num { font-size: 42px; top: 14px; right: 18px; }
    .mv-icon { font-size: 28px; }
    .mv-card h3 { font-size: 20px; margin: 6px 0; }
    .mv-card p { font-size: 14px; }
}
@media (max-width: 860px) and (max-height: 680px) {
    .mv-media { height: 22vh; height: 22svh; }
    .mv-side .eyebrow { display: none; }
}

/* Sin animaciones: todo visible y en orden, sin fijar la sección */
@media (prefers-reduced-motion: reduce) {
    .mv-stack { height: auto; padding: 64px 0; }
    .mv-sticky { position: static; height: auto; }
    .mv-cards { height: auto; display: grid; gap: 16px; }
    .mv-card { position: relative; transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   CTA con el juego de plagas
   ===================================================================== */
.cta-game {
    position: relative;
    overflow: hidden;
    padding: 70px 30px 56px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .14), transparent 40%),
        linear-gradient(135deg, var(--pest-green-dark), #145c33);
    box-shadow: 0 30px 60px rgba(20, 70, 40, .3);
}
.cta-title {
    max-width: 760px;
    margin: 0 auto 28px !important;
    font-size: clamp(24px, 3.4vw, 38px) !important;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.cta-game .hero-actions { position: relative; z-index: 31; }   /* los botones quedan sobre las plagas */
.cta-game .btn { min-width: 180px; padding: 15px 30px; font-size: 16px; }
.cta-game-hint {
    margin: 22px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}
.cta-game .plaga-l.is-sucked { opacity: .22; }

@media (max-width: 640px) {
    .cta-game { padding: 56px 18px 44px; }
    .cta-game .btn { min-width: 0; width: 100%; }
}
