/* =====================================================
   ICE - Página "Sobre Nosotros"
   Se carga después de css/estilo-index.css, que aporta los
   tokens (colores, radios, sombras), el header, el footer y
   la animación .reveal.

   Índice
   1. Portada
   2. Visión y Misión
   3. Frase destacada
   4. Video
   5. Historia
   6. Responsive
   ===================================================== */

/* ---------- 1. Portada ---------- */
.sn-hero {
    --sn-solape: clamp(56px, 5vw, 72px);         /* cuánto se montan las tarjetas sobre la foto */
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(460px, 48vw, 700px);
    padding-bottom: calc(var(--sn-solape) + 48px);
    overflow: hidden;
    background: var(--azul-900);
}
.sn-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.sn-hero::after {                              /* velo azul para dar contraste al título */
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 26, 51, 0) 0%, rgba(13, 26, 51, .12) 45%, rgba(13, 26, 51, .78) 100%),
        linear-gradient(90deg, rgba(28, 52, 96, .40) 0%, rgba(28, 52, 96, 0) 55%);
}
.sn-hero__contenido { position: relative; z-index: 1; }

.sn-hero__titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.sn-hero__titulo::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 20px;
    background: var(--naranja);
    border-radius: 999px;
}

/* ---------- 2. Visión y Misión ---------- */
.sn-vm { position: relative; z-index: 2; margin-top: calc(-1 * clamp(56px, 5vw, 72px)); }   /* = --sn-solape de la portada */

.sn-vm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.sn-tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radio-l);
    box-shadow: var(--sombra-m);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.sn-tarjeta::before {                          /* franja naranja superior */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--naranja), #ffc46b);
}
.sn-tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra-l); }

.sn-tarjeta__icono {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
    font-size: 1.4rem;
    color: var(--naranja);
    background: var(--azul);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(28, 52, 96, .28);
}
.sn-tarjeta__titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--azul);
}
.sn-tarjeta p { font-size: 1.08rem; line-height: 1.7; color: var(--suave); }

/* ---------- 3. Frase destacada ---------- */
.sn-frase { padding: clamp(64px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); }

.sn-frase__texto {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--fuente-titulo);
    font-size: clamp(1.3rem, 2.7vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.01em;
    text-align: center;
    color: var(--azul);
}
.sn-frase__texto::before {
    content: '';
    display: block;
    width: 56px;
    height: 5px;
    margin: 0 auto 28px;
    background: var(--naranja);
    border-radius: 999px;
}
.sn-frase__texto strong { color: var(--naranja-texto); font-weight: 800; }

/* ---------- 4. Video (a caballo entre la banda azul y el fondo claro) ---------- */
.sn-video {
    position: relative;
    display: flow-root;
    margin-top: 72px;                          /* deja lugar a la parte del video que sobresale */
    background:
        radial-gradient(circle at 92% 0%, rgba(241, 155, 36, .30) 0%, rgba(241, 155, 36, 0) 40%),
        linear-gradient(160deg, var(--azul-900) 0%, var(--azul) 60%, var(--azul-600) 100%);
}
.sn-video .contenedor { position: relative; z-index: 1; }

.sn-video__marco {
    max-width: 920px;
    margin: -72px auto;                        /* sobresale de la banda por arriba y por abajo */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radio-l);
    box-shadow: 0 30px 80px rgba(13, 26, 51, .5);
}
.sn-video__marco iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- 5. Historia ---------- */
/* El padding superior incluye los 72px que el video sobresale de la banda azul */
.sn-historia { padding: calc(72px + clamp(48px, 6vw, 80px)) 0 clamp(64px, 8vw, 104px); background: var(--tinte); }

.sn-historia__col { max-width: 900px; }

.sn-historia__lead {
    margin-bottom: clamp(36px, 5vw, 56px);
    font-family: var(--fuente-titulo);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.01em;
    text-align: center;
    color: var(--azul);
}

.sn-historia__lista { display: grid; gap: 20px; }

.sn-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radio-m);
    box-shadow: var(--sombra-s);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.sn-item:hover { transform: translateX(6px); border-color: rgba(241, 155, 36, .55); box-shadow: var(--sombra-m); }

.sn-item__icono {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
    color: var(--azul);
    background: var(--naranja);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(241, 155, 36, .35);
}
.sn-item p { font-size: 1.08rem; line-height: 1.75; color: var(--texto); }

.sn-cierre {
    margin-top: clamp(40px, 6vw, 64px);
    font-family: var(--fuente-titulo);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.015em;
    text-align: center;
    color: var(--azul);
}
.sn-cierre::after {
    content: '';
    display: block;
    width: 56px;
    height: 5px;
    margin: 22px auto 0;
    background: var(--naranja);
    border-radius: 999px;
}

/* ---------- 6. Responsive ---------- */
@media (max-width: 900px) {
    .sn-vm__grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}

@media (max-width: 767px) {
    .sn-hero { --sn-solape: 44px; min-height: 440px; padding-bottom: calc(var(--sn-solape) + 40px); }
    .sn-hero__img { object-position: 42% center; }

    .sn-vm { margin-top: -44px; }

    /* Visión / Misión: ícono al lado del título y el texto a todo el ancho (sin hueco blanco) */
    .sn-tarjeta {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 18px 16px;
    }
    .sn-tarjeta__icono { width: 52px; height: 52px; margin: 0; font-size: 1.2rem; border-radius: 16px; }
    .sn-tarjeta p { grid-column: 1 / -1; }

    /* Historia: el ícono queda a la izquierda y el texto lo rodea, ocupando todo el ancho después */
    .sn-item { display: block; }
    .sn-item::after { content: ''; display: table; clear: both; }
    .sn-item__icono { float: left; width: 46px; height: 46px; margin: 2px 14px 4px 0; font-size: 1.05rem; border-radius: 14px; }
    .sn-item:hover { transform: translateY(-4px); }

    .sn-video { margin-top: 44px; }
    .sn-video__marco { margin: -44px auto; }
    .sn-historia { padding-top: calc(44px + 48px); }
}
