/* ══════════════════════════════════════════════════════════════════
   SocioTI — VetLy-inspired overrides (index.html rediseño)
   Hero 2-col + Why slider. Respeta tokens de index.css.
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero overrides ── */
.hero {
    /* Reemplaza el background con imagen + overlay oscuro por un fondo claro */
    background: var(--light);
    min-height: auto;
    padding: 3.5rem 2rem;
    justify-content: center;
}

.hero::before {
    display: none;
}

.hero-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    text-align: left;
    color: var(--text);
    /* Transición VetLy: texto entra desde la izquierda */
    opacity: 0;
    animation: fade-from-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.hero-copy .hero-subtitle {
    color: var(--dark);
    font-size: 2.35rem;
    line-height: 1.2;
}

.hero-copy .hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.hero-copy .hero-buttons {
    justify-content: flex-start;
}

.hero-visual {
    opacity: 0;
    animation: fade-from-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
}

.hero-visual img,
.hero-visual video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #dfe6e9;
    display: block;
}

.hero-visual video {
    /* Asegura que el video no desborde el radius */
    overflow: hidden;
}

/* ── Services header — Our Services ── */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.75rem;
}

.services-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Reveal overrides — evita conflicto entre animación de carga y scroll */
.service-card.reveal {
    animation: none !important;
}

/* ── Why Choose SOCIOTI? — Slider ── */
.why {
    padding: 5rem 2rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.why-container {
    max-width: 1100px;
    margin: 0 auto;
}

.why-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.75rem;
}

.why-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.65rem;
}

.why-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.why-window {
    overflow: hidden;
    width: 100%;
    /* Padding negativo para que el sombreado flotante no se recorte
       y ligero desplazamiento hacia la izquierda (se veía muy a la derecha) */
    padding: 14px 14px 22px 6px;
    margin: -14px -14px -22px -6px;
    position: relative;
    left: -6px;
}

.why-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    /* Compensa el left del window para alinear correctamente */
    margin-left: -2px;
}

/* Card flotante — hereda concepto service-card pero centrada y con icono */
.why-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* 3 visibles, gap 1.5rem ×2 */
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    /* Sombreado flotante multicapa para efecto elevado */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09), 0 3px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    min-height: 190px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13), 0 10px 20px rgba(0, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.why-card--blue {
    border-left-color: var(--it-blue);
}

.why-card--red {
    border-left-color: var(--laser-red);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-card--blue .why-icon {
    background: rgba(0, 143, 181, 0.10);
    color: var(--it-blue);
}

.why-card--red .why-icon {
    background: rgba(255, 36, 36, 0.09);
    color: var(--laser-red);
}

.why-icon svg {
    width: 26px;
    height: 26px;
}

.why-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

/* Controles slider */
.why-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.why-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.why-arrow:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    transform: translateY(-1px);
}

.why-arrow:active {
    transform: translateY(0);
}

.why-arrow svg {
    width: 20px;
    height: 20px;
}

.why-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dfe6e9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), width var(--transition), transform var(--transition);
}

.why-dot.is-active {
    background: var(--it-blue);
    width: 24px;
    border-radius: 999px;
}

.why-dot:focus-visible,
.why-arrow:focus-visible {
    outline: 3px solid var(--it-blue);
    outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .hero-buttons {
        justify-content: center;
    }

    .hero-copy .hero-subtitle {
        font-size: 1.9rem;
    }

    .hero-visual img,
    .hero-visual video {
        max-width: 520px;
        margin: 0 auto;
        display: block;
    }

    .why-card {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 visibles */
    }

    .why-window {
        left: -4px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2.25rem 1rem;
    }

    .hero-copy .hero-subtitle {
        font-size: 1.65rem;
    }

    .why {
        padding: 3rem 1rem;
    }

    .why-title {
        font-size: 1.55rem;
    }

    .why-card {
        flex: 0 0 100%; /* 1 visible */
        min-height: 160px;
    }

    .why-window {
        left: -2px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-visual,
    .why-track {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
