/**
 * ISPS Theme — assets/css/sections/quienes-somos.css
 * Estilos institucionales para la sección y landing "Quiénes somos"
 */

.qs-wrap {
    --qs-navy: #0A0F1D;
    --qs-navy-card: #131D31;
    --qs-navy-light: #1E293B;
    --qs-blue: #395CB8;
    --qs-blue-light: #0284c7;
    --qs-yellow: #F59E0B;
    --qs-orange: #FF6600;
    --qs-text: #F8FAFC;
    --qs-muted: #94A3B8;
    --qs-border: rgba(255, 255, 255, 0.09);
    --qs-border-glow: rgba(57, 92, 184, 0.35);

    background-color: var(--qs-navy);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(57, 92, 184, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(2, 132, 199, 0.14) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    color: var(--qs-text);
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    padding-bottom: 70px;
}

.qs-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   TOP TICKER / BADGE
   ============================================================ */
.qs-top-ticker {
    border-bottom: 1px solid var(--qs-border);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    padding: 12px 0;
}

.qs-badge-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}

.qs-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qs-yellow);
    box-shadow: 0 0 12px var(--qs-yellow);
    animation: qsPulse 2s infinite ease-in-out;
}

@keyframes qsPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.qs-badge-tag {
    color: var(--qs-yellow);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 12px;
    font-weight: 700;
}

/* ============================================================
   HERO INSTITUCIONAL
   ============================================================ */
.qs-hero {
    padding: 70px 0 60px;
    position: relative;
}

.qs-hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
    align-items: center;
}

.qs-hero-content {
    display: flex;
    flex-direction: column;
}

.qs-supra-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--qs-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.qs-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    color: #ffffff;
}

.qs-title-gradient {
    background: linear-gradient(135deg, #F59E0B 0%, #FF6600 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.qs-lead {
    font-size: clamp(1.04rem, 1.8vw, 1.18rem);
    color: #cbd5e1;
    line-height: 1.75;
    margin: 0 0 20px;
}

.qs-lead strong {
    color: #ffffff;
}

.qs-sublead {
    font-size: 0.98rem;
    color: #94a3b8;
    line-height: 1.75;
    margin: 0 0 32px;
}

/* Métricas destacadas */
.qs-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--qs-border);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.qs-metric-item strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--qs-yellow);
    line-height: 1.2;
}

.qs-metric-item span {
    font-size: 0.78rem;
    color: var(--qs-muted);
    line-height: 1.4;
    display: block;
    margin-top: 4px;
}

/* Botones Hero */
.qs-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-qs-primary {
    background: linear-gradient(135deg, var(--qs-yellow) 0%, #d97706 100%);
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-qs-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, var(--qs-yellow) 100%);
}

.btn-qs-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 14px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-qs-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-qs-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Columna Visual Hero */
.qs-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.qs-media-card {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.qs-media-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 520px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(57, 92, 184, 0.25);
}

.qs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.qs-media-card:hover .qs-hero-img {
    transform: scale(1.03);
}

.qs-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
    pointer-events: none;
}

/* Floating Badges sobre la imagen */
.qs-floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: transform 0.3s ease;
}

.qs-floating-card:hover {
    transform: translateY(-3px);
}

.qs-float-quote {
    top: -20px;
    right: -20px;
    max-width: 260px;
}

.qs-float-quote i {
    color: var(--qs-yellow);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.qs-float-quote p {
    font-size: 0.82rem;
    font-style: italic;
    color: #e2e8f0;
    margin: 0 0 4px;
    line-height: 1.4;
}

.qs-float-quote small {
    display: block;
    color: var(--qs-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.qs-float-badge {
    bottom: -22px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.qs-float-badge i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--qs-blue);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 0 15px rgba(57, 92, 184, 0.6);
}

.qs-float-badge strong {
    display: block;
    color: #ffffff;
    font-size: 0.86rem;
}

.qs-float-badge span {
    display: block;
    color: var(--qs-muted);
    font-size: 0.74rem;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.qs-section {
    padding: 60px 0;
    position: relative;
}

.qs-pill-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(57, 92, 184, 0.22);
    border: 1px solid rgba(57, 92, 184, 0.45);
    color: #60a5fa;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.qs-section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.qs-section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 14px;
}

.qs-section-sub {
    font-size: 1.02rem;
    color: var(--qs-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   IDENTIDAD & RAÍZ HISTÓRICA
   ============================================================ */
.qs-identidad-box {
    background: linear-gradient(135deg, rgba(22, 34, 56, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(57, 92, 184, 0.3);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.qs-identidad-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--qs-yellow) 0%, var(--qs-blue) 100%);
}

.qs-identidad-header h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    color: #ffffff;
    margin: 0 0 20px;
    font-weight: 800;
}

.qs-identidad-body p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0 0 16px;
}

.qs-identidad-body p:last-child {
    margin-bottom: 0;
}

.qs-identidad-body strong {
    color: #ffffff;
}

/* ============================================================
   BENTO GRID: VISIÓN Y MISIÓN
   ============================================================ */
.qs-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.qs-bento-card {
    background: var(--qs-navy-card);
    border: 1.5px solid var(--qs-border);
    border-radius: 24px;
    padding: 42px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.qs-bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--qs-border-glow);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(57, 92, 184, 0.2);
}

.qs-card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.qs-icon-vision {
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.qs-icon-mision {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.qs-card-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qs-muted);
    margin-bottom: 6px;
}

.qs-bento-card h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
}

.qs-card-text {
    flex-grow: 1;
}

.qs-card-text p {
    font-size: 0.98rem;
    color: #cbd5e1;
    line-height: 1.75;
    margin: 0 0 16px;
}

.qs-card-text p:last-child {
    margin-bottom: 0;
}

.qs-highlight-statement {
    font-size: 1.05rem !important;
    color: #f1f5f9 !important;
    font-weight: 500;
}

.qs-card-footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--qs-border);
}

.qs-card-footer-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qs-card-footer-pills span i {
    color: var(--qs-yellow);
}

/* ============================================================
   GRID 4 PILARES FORMATIVOS
   ============================================================ */
.qs-pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.qs-principles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
}

.qs-pilar-card {
    background: rgba(19, 29, 49, 0.65);
    border: 1px solid var(--qs-border);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.qs-pilar-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15);
    background: rgba(22, 34, 56, 0.85);
}

.qs-pilar-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 18px;
    right: 20px;
    line-height: 1;
}

.qs-pilar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(57, 92, 184, 0.2);
    border: 1px solid rgba(57, 92, 184, 0.4);
    color: #60a5fa;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.qs-pilar-card:nth-child(2) .qs-pilar-icon {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.qs-pilar-card:nth-child(3) .qs-pilar-icon {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.qs-pilar-card:nth-child(4) .qs-pilar-icon {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.qs-pilar-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.qs-pilar-card p {
    font-size: 0.88rem;
    color: var(--qs-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   MANIFIESTO INSTITUCIONAL / CITA DESTACADA
   ============================================================ */
.qs-manifiesto-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    max-width: 980px;
    margin: 0 auto;
}

.qs-manifiesto-quote-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--qs-yellow);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin: 0 auto 24px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.qs-manifiesto-card blockquote {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.7;
    color: #f8fafc;
    font-style: italic;
    margin: 0 0 28px;
    padding: 0;
    border: none;
}

.qs-manifiesto-author strong {
    display: block;
    color: var(--qs-yellow);
    font-size: 1.05rem;
    font-weight: 700;
}

.qs-manifiesto-author span {
    display: block;
    color: var(--qs-muted);
    font-size: 0.85rem;
    margin-top: 3px;
}

/* ============================================================
   CALL TO ACTION (CTA)
   ============================================================ */
.qs-cta-card {
    background: linear-gradient(135deg, rgba(57, 92, 184, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(57, 92, 184, 0.4);
    border-radius: 28px;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(57, 92, 184, 0.2);
}

.qs-cta-text {
    max-width: 650px;
}

.qs-cta-text h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.25;
}

.qs-cta-text p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.qs-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
}

.qs-cta-actions .btn-qs-primary,
.qs-cta-actions .btn-qs-outline {
    justify-content: center;
}

/* ============================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================ */
@media (max-width: 1024px) {
    .qs-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .qs-hero-visual {
        order: -1;
    }
    .qs-media-card {
        max-width: 420px;
    }
    .qs-media-frame {
        height: 400px;
    }
    .qs-pilares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .qs-principles-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    .qs-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .qs-cta-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .qs-metrics-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .qs-bento-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .qs-bento-card {
        padding: 32px 24px;
    }
    .qs-identidad-box {
        padding: 32px 24px;
    }
    .qs-manifiesto-card {
        padding: 40px 24px;
    }
    .qs-float-quote {
        right: 0;
        top: -10px;
    }
    .qs-float-badge {
        left: 0;
        bottom: -15px;
    }
}

@media (max-width: 640px) {
    .qs-float-quote {
        right: 8px;
        top: -12px;
        max-width: 210px;
        padding: 10px 14px;
    }
    .qs-float-quote p {
        font-size: 0.76rem;
    }
    .qs-float-badge {
        left: 8px;
        bottom: -14px;
        padding: 10px 14px;
    }
    .qs-pilares-grid {
        grid-template-columns: 1fr;
    }
    .qs-hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .btn-qs-primary,
    .btn-qs-outline {
        width: 100%;
        justify-content: center;
    }
}

