/* CSS para Quiénes Somos (template-quienes-somos.php) */

:root {
    --ps-blue-corp: #003366;
    --ps-blue-light: #f0f4f8;
    --ps-mint-corp: #4CAF50;
    --ps-mint-light: #e8f5e9;
    --ps-text-main: #1d1d1f;
    --ps-text-muted: #86868b;
    --ps-font-apple: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
}

.ps-qs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================
   HERO (EXTRA BOLD APPLE STYLE CON SHADER)
   ============================================================= */
.ps-qs-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

.ps-qs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ps-qs-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 50px;
}

.ps-qs-title-massive {
    font-family: var(--ps-font-apple);
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 900 !important;
    text-transform: uppercase;
    color: var(--ps-blue-corp);
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0 0 20px 0;
    filter: none;
    position: relative;
    z-index: 20;
}

.ps-qs-title-massive span {
    color: var(--ps-mint-corp);
}

.ps-qs-hero-subtitle {
    font-family: var(--ps-font-apple);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.6;
    color: #445566;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

/* =============================================================
   DIVISOR ORGÁNICO
   ============================================================= */
/* --- FRANJA AZUL RECTA (ESTILO MARQUEE) --- */

/* --- FRANJA MARQUEE INFINITO --- */

.ps-qs-marquee-divider {
    width: 100%;
    background-color: #003366;
    /* Azul Salud */
    padding: 20px 0;
    overflow: hidden;
    /* Oculta lo que sale de la franja */
    display: flex;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-qs-marquee-track {
    display: flex;
    width: max-content;
    /* Permite que el track sea tan ancho como el texto duplicado */
    animation: marquee-scroll 30s linear infinite;
    /* 30s para un movimiento suave */
}

.ps-qs-marquee-content {
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 900;
    /* Extra Bold */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
    padding-right: 50px;
    /* Espacio entre el final de uno y el inicio del otro */
}

/* Animación del Movimiento */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Se desplaza exactamente la mitad (el primer bloque) */
    }
}

/* Pausar al pasar el mouse (opcional, le da un toque premium) */
.ps-qs-marquee-divider:hover .ps-qs-marquee-track {
    animation-play-state: paused;
}

/* =============================================================
   LÍNEA DE TIEMPO (TIMELINE)
   ============================================================= */
.ps-qs-timeline-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.ps-qs-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.ps-qs-tag {
    display: inline-block;
    background-color: var(--ps-mint-light);
    color: var(--ps-mint-corp);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 980px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.ps-qs-section-title {
    font-family: var(--ps-font-apple);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ps-text-main);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.ps-qs-section-desc {
    color: var(--ps-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.ps-qs-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.ps-qs-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 51, 102, 0.1);
    transform: translateX(-50%);
    border-radius: 4px;
}

.ps-qs-timeline-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--ps-blue-corp), var(--ps-mint-corp));
    border-radius: 4px;
}

.ps-qs-timeline-item {
    position: relative;
    width: 50%;
    padding: 40px;
    box-sizing: border-box;
    /* GSAP inicial */
    opacity: 0;
    transform: translateY(50px);
}

.ps-qs-timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.ps-qs-timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.ps-qs-timeline-dot {
    position: absolute;
    top: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background-color: var(--ps-mint-corp);
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ps-qs-timeline-item:nth-child(even) .ps-qs-timeline-dot {
    right: -10px;
}

.ps-qs-timeline-item:nth-child(odd) .ps-qs-timeline-dot {
    left: -10px;
}

.ps-qs-timeline-item:hover .ps-qs-timeline-dot {
    transform: scale(1.3);
}

/* Glass Effect Card */
.ps-qs-timeline-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ps-qs-timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.ps-qs-year {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ps-mint-corp);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.ps-qs-timeline-content h3 {
    font-family: var(--ps-font-apple);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ps-text-main);
    margin: 0 0 15px 0;
}

.ps-qs-timeline-content p {
    color: var(--ps-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================
   SECCIÓN FINAL: CTA PREMIUM (GLASSMORPHISM)
   ============================================================= */

.ps-qs-cta-section {
    position: relative;
    padding: 120px 20px;
    background: #ffffff;
    /* Fondo muy claro para resaltar el box */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ps-qs-cta-container {
    width: 100%;
    max-width: 1100px;
    z-index: 10;
}

/* Efecto de Caja de Cristal Oscura */
.ps-qs-cta-glass-box {
    background: rgba(0, 51, 102, 0.95);
    /* Azul Salud con opacidad */
    padding: 80px 60px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 51, 102, 0.3);
    position: relative;
    z-index: 10;
}

/* Move backdrop filter to pseudo element to avoid rendering bugs with children */
.ps-qs-cta-glass-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.ps-qs-cta-tag {
    display: inline-block;
    color: #4CAF50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.ps-qs-cta-title {
    font-family: var(--ps-font-apple);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    /* Extra Bold */
    color: #ffffff;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.ps-qs-cta-title span {
    color: #4CAF50;
    display: block;
}

.ps-qs-cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.ps-qs-cta-description strong {
    color: #ffffff;
}

/* --- BOTONES PREMIUM --- */

.ps-qs-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative !important;
    z-index: 999 !important;
}

.ps-btn-premium-solid {
    background-color: #4CAF50 !important;
    color: #ffffff !important;
    padding: 20px 40px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 50px;
    min-width: 200px;
}

.ps-btn-premium-solid svg {
    width: 20px;
    transition: transform 0.4s ease;
}

.ps-btn-premium-solid:hover {
    background-color: #45a049;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
}

.ps-btn-premium-solid:hover svg {
    transform: translateX(5px);
}

.ps-btn-premium-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 20px 40px;
    border-radius: 100px;
    border: 2px solid #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 50px;
    min-width: 200px;
}

.ps-btn-premium-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-5px);
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .ps-qs-cta-glass-box {
        padding: 50px 30px;
        border-radius: 30px;
    }

    .ps-qs-cta-title {
        font-size: 2.2rem;
    }

    .ps-btn-premium-solid,
    .ps-btn-premium-outline {
        width: 100%;
        justify-content: center;
    }

    /* =====================================================
       TIMELINE — Layout móvil de una sola columna
       ===================================================== */
    .ps-qs-timeline {
        padding: 10px 0;
        max-width: 100%;
    }

    /* Línea desplazada a la izquierda */
    .ps-qs-timeline-line {
        left: 22px;
        transform: none;
        width: 3px;
    }

    /* Cada item ocupa todo el ancho y se alinea al lado derecho de la línea */
    .ps-qs-timeline-item,
    .ps-qs-timeline-item:nth-child(even),
    .ps-qs-timeline-item:nth-child(odd) {
        position: relative;
        width: 100%;
        left: 0;
        text-align: left;
        padding: 18px 0 18px 56px;
    }

    /* Dot pegado a la línea */
    .ps-qs-timeline-item:nth-child(even) .ps-qs-timeline-dot,
    .ps-qs-timeline-item:nth-child(odd) .ps-qs-timeline-dot {
        left: 13px;
        right: auto;
        top: 32px;
        width: 18px;
        height: 18px;
    }

    /* Card ajustada al espacio disponible */
    .ps-qs-timeline-content {
        padding: 22px 20px;
        border-radius: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .ps-qs-timeline-content h3 {
        font-size: 1.2rem;
        margin: 0 0 10px 0;
        line-height: 1.3;
    }

    .ps-qs-timeline-content p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .ps-qs-year {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    /* Desactivar hover-lift en móvil para evitar desfases en touch */
    .ps-qs-timeline-content:hover {
        transform: none;
    }
}

@media (max-width: 400px) {
    .ps-qs-timeline-item,
    .ps-qs-timeline-item:nth-child(even),
    .ps-qs-timeline-item:nth-child(odd) {
        padding-left: 48px;
    }

    .ps-qs-timeline-line {
        left: 18px;
    }

    .ps-qs-timeline-item:nth-child(even) .ps-qs-timeline-dot,
    .ps-qs-timeline-item:nth-child(odd) .ps-qs-timeline-dot {
        left: 9px;
    }

    .ps-qs-timeline-content {
        padding: 20px 16px;
    }

    .ps-qs-timeline-content h3 {
        font-size: 1.1rem;
    }
}