/* =====================================================
   SOBRE NOSOTROS — Hero Slider Antes / Después
   Archivo: sobre-nosotros.css
   Depende de: base.css (variables, nav, botones, fades)
   ===================================================== */

/* ── Sección principal ─────────────────────────────── */
.hero-nosotros {
    width: 100%;
    background-color: var(--color-primario);
    display: flex;
    flex-direction: column;
}

/* ── Contenedor del slider ─────────────────────────── */
.sn-slider-wrap {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 420px;
    max-height: 700px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    background: #111;
}

/* ── Fotos (antes y después) ───────────────────────── */
.sn-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    /* Sin foto aún: fallback oscuro */
    background-color: #1c1c1c;
}

/* Foto ANTES: encima, se recorta con clip-path */
.sn-img--antes {
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* el JS actualiza este valor */
    transition: clip-path 0.04s linear;
}

/* Overlay sutil sobre foto "antes" para distinguir mejor */
.sn-img--antes::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* Foto DESPUÉS: fondo, siempre visible */
.sn-img--despues {
    z-index: 1;
}

/* ── Etiquetas "Nuestros inicios" / "Hoy en día" ───── */
.sn-tag {
    position: absolute;
    top: 22px;
    z-index: 10;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: none;
}

.sn-tag--antes {
    left: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sn-tag--despues {
    right: 20px;
    background: rgba(111, 98, 48, 0.772);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.45);
}

/* ── Años decorativos (fondo) ───────────────────────── */
.sn-year {
    position: absolute;
    bottom: 24px;
    z-index: 4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
}

.sn-year--left {
    left: 20px;
    color: rgba(255, 255, 255, 0.651);
}

.sn-year--right {
    right: 20px;
    color: rgba(255, 204, 0, 0.659);
}

/* ── Línea divisoria amarilla ───────────────────────── */
.sn-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-terciario);
    z-index: 20;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.45);
    transition: left 0.04s linear;
}

/* ── Botón arrastrable ──────────────────────────────── */
.sn-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-terciario);
    border: none;
    outline: none;
    cursor: ew-resize;
    z-index: 21;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(255, 204, 0, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.55);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.sn-handle:hover,
.sn-handle.is-dragging {
    box-shadow:
        0 0 0 10px rgba(255, 204, 0, 0.18),
        0 6px 28px rgba(0, 0, 0, 0.7);
}

.sn-handle__icon {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--color-primario);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ── Hint de arrastre ───────────────────────────────── */
.sn-hint {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 204, 0, 0.6);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.5s ease;
    animation: sn-pulse-hint 2s ease-in-out infinite;
}

@keyframes sn-pulse-hint {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

.sn-hint.is-hidden {
    opacity: 0 !important;
    animation: none;
}

/* ── Footer del hero (título + stats) ──────────────── */
.sn-footer {
    background: var(--color-primario);
    border-top: 1px solid rgba(255, 204, 0, 0.15);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.sn-footer__texto h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: var(--color-secundario);
    margin: 0 0 4px;
    line-height: 1.2;
}

.sn-footer__texto p {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Stats */
.sn-footer__stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.sn-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

.sn-stat__num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-terciario);
    line-height: 1;
}

.sn-stat__plus {
    font-size: 0.65em;
    vertical-align: super;
}

.sn-stat__label {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

/* Separador vertical entre stats */
.sn-divider-stat {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

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

/* Tablet */
@media screen and (max-width: 768px) {
    .sn-slider-wrap {
        height: 55vw;
        min-height: 280px;
    }

    .sn-footer {
        padding: 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sn-footer__stats {
        width: 100%;
        justify-content: space-around;
    }

    .sn-stat {
        padding: 0 16px;
    }

    .sn-year {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .sn-handle {
        width: 44px;
        height: 44px;
    }
}

/* Móvil */
@media screen and (max-width: 480px) {
    .sn-slider-wrap {
        height: 60vw;
        min-height: 240px;
    }

    .sn-tag {
        font-size: 0.6rem;
        padding: 5px 10px;
    }

    .sn-footer__texto h1 {
        font-size: 1.1rem;
    }

    .sn-stat__num {
        font-size: 1.5rem;
    }

    .sn-stat {
        padding: 0 10px;
    }

    .sn-hint {
        font-size: 0.6rem;
        bottom: 50px;
    }
}

/* =====================================================
   LÍNEA DE TIEMPO — Nuestra Historia
   Agregar al final de: css/sobre-nosotros.css
   ===================================================== */

/* ── Sección ───────────────────────────────────────── */
.sn-tl {
    background: #fff;
    padding: 90px 20px 110px;
    position: relative;
    overflow: hidden;
}

/* ── Encabezado ────────────────────────────────────── */
.sn-tl__header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.sn-tl__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #997a00;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.4);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

/* Punto parpadeante antes del eyebrow */
.sn-tl__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffcc00;
    flex-shrink: 0;
    animation: sn-tl-blink 1.4s ease-in-out infinite;
}

@keyframes sn-tl-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

.sn-tl__header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #111;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.sn-tl__header h2 span {
    color: #c9a000;
}

.sn-tl__header p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

/* ── SVG carretera ondulada ─────────────────────────── */
.sn-tl__road-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    pointer-events: none;
    z-index: 0;
}

.sn-tl__road-wrap svg {
    width: 100%;
    display: block;
}

/* ── Camión animado ─────────────────────────────────── */
.sn-tl__truck {
    position: fixed;  /* JS lo mueve con scroll */
    z-index: 20;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    transition:
        top  0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        left 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sn-tl__truck svg {
    width: 52px;
    height: auto;
    display: block;
}

/* Ocultar camión en móvil */
@media (max-width: 680px) {
    .sn-tl__truck { display: none; }
    .sn-tl__road-wrap { display: none; }
}

/* ── Contenedor de items ─────────────────────────────── */
.sn-tl__items {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 88px;
}

/* ── Item (fila) ────────────────────────────────────── */
.sn-tl__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.sn-tl__item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Normal: texto izquierda, foto derecha */
.sn-tl__item--normal .sn-tl__text  { order: 1; }
.sn-tl__item--normal .sn-tl__photo { order: 2; }

/* Flip: foto izquierda, texto derecha */
.sn-tl__item--flip .sn-tl__text  { order: 2; }
.sn-tl__item--flip .sn-tl__photo { order: 1; }

/* ── Bloque de texto ────────────────────────────────── */
.sn-tl__text {
    padding: 4px 0;
}

.sn-tl__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
    display: inline-block;
    margin-bottom: 12px;
}

.sn-tl__dot--present {
    background: #ffcc00;
    box-shadow: 0 0 0 5px rgba(255, 204, 0, 0.25);
}

.sn-tl__tag {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #997a00;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.sn-tl__tag--present {
    color: #7a5f00;
    background: rgba(255, 204, 0, 0.18);
    border-color: rgba(255, 204, 0, 0.5);
}

/* Año decorativo grande */
.sn-tl__year {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: #f0f0ee;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: -6px;
    user-select: none;
}

.sn-tl__year--present {
    color: #fdf3c0;
}

.sn-tl__text h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: #111;
    line-height: 1.2;
    margin: 0 0 12px;
}

.sn-tl__text p {
    font-family: 'Lato', sans-serif;
    font-size: 0.97rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

.sn-tl__text p strong {
    color: #111;
    font-weight: 700;
}

/* ── Foto ───────────────────────────────────────────── */
.sn-tl__photo {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f5f5f3;
    position: relative;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.sn-tl__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Barra amarilla inferior */
.sn-tl__photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-terciario);
    z-index: 2;
}

/* Placeholder cuando no hay foto */
.sn-tl__photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Ocultar placeholder si la imagen cargó bien (clase añadida por onload en el HTML) */
.sn-tl__photo.has-photo .sn-tl__photo-placeholder {
    display: none;
}

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

/* Tablet */
@media screen and (max-width: 768px) {
    .sn-tl {
        padding: 60px 20px 70px;
    }

    .sn-tl__header {
        margin-bottom: 50px;
    }

    .sn-tl__items {
        gap: 56px;
    }

    .sn-tl__item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* En móvil siempre: texto arriba, foto abajo */
    .sn-tl__item--normal .sn-tl__text,
    .sn-tl__item--flip   .sn-tl__text  { order: 1; }
    .sn-tl__item--normal .sn-tl__photo,
    .sn-tl__item--flip   .sn-tl__photo { order: 2; }

    .sn-tl__year {
        font-size: 3rem;
    }
}

/* Móvil pequeño */
@media screen and (max-width: 480px) {
    .sn-tl__header h2 {
        font-size: 1.6rem;
    }

    .sn-tl__text h3 {
        font-size: 1.1rem;
    }

    .sn-tl__items {
        gap: 44px;
    }
}


/* =====================================================
   MISIÓN, VISIÓN Y VALORES
   Agregar al final de: css/sobre-nosotros.css
   ===================================================== */

/* ── Sección ───────────────────────────────────────── */
.sn-mv {
    background: #f5f5f3;
    padding: 90px 20px 100px;
}

/* ── Encabezado ────────────────────────────────────── */
.sn-mv__header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.sn-mv__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #997a00;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.4);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.sn-mv__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffcc00;
    flex-shrink: 0;
    animation: sn-mv-blink 1.4s ease-in-out infinite;
}

@keyframes sn-mv-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

.sn-mv__header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #111;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.sn-mv__header h2 span {
    color: #c9a000;
}

.sn-mv__header p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

/* ── Grid Misión + Visión ───────────────────────────── */
.sn-mv__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 20px;
}

/* ── Card base ─────────────────────────────────────── */
.sn-mv__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sn-mv__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

/* Acento lateral izquierdo */
.sn-mv__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.sn-mv__card--mision::before { background: #ffcc00; }
.sn-mv__card--vision::before  { background: #111; }

/* Label pequeño (MISIÓN / VISIÓN) */
.sn-mv__card-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 10px;
}

.sn-mv__card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #111;
    line-height: 1.2;
    margin-bottom: 14px;
}

.sn-mv__card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.97rem;
    color: #555;
    line-height: 1.78;
    margin: 0;
}

.sn-mv__card p strong {
    color: #111;
    font-weight: 700;
}

/* ── Bloque de Valores ──────────────────────────────── */
.sn-mv__valores {
    max-width: 900px;
    margin: 0 auto;
    background: #111;
    border-radius: 16px;
    padding: 40px 40px 44px;
    position: relative;
    overflow: hidden;
}

/* Grid decorativo de fondo */
.sn-mv__valores::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 204, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 0, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.sn-mv__valores-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.sn-mv__valores-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
}

.sn-mv__valores-titulo p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

/* Grid de 4 valores */
.sn-mv__valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Cada valor */
.sn-mv__valor {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sn-mv__valor:hover {
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.3);
    transform: translateY(-3px);
}

.sn-mv__valor-num {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(255, 204, 0, 0.45);
    margin-bottom: 10px;
    display: block;
}

.sn-mv__valor-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    display: block;
    line-height: 1.2;
}

.sn-mv__valor p {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    margin: 0;
}

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

@media screen and (max-width: 768px) {
    .sn-mv {
        padding: 60px 20px 70px;
    }

    .sn-mv__grid {
        grid-template-columns: 1fr;
    }

    .sn-mv__valores {
        padding: 28px 22px 32px;
    }

    .sn-mv__valores-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .sn-mv__header h2 {
        font-size: 1.6rem;
    }

    .sn-mv__card {
        padding: 26px 22px;
    }

    .sn-mv__valores-grid {
        grid-template-columns: 1fr;
    }
}