/* =========================================================
   WONDERWORLD · QUIÉNES SOMOS
   Estilo alineado al home (index) y compatible con Bootstrap
   ========================================================= */

/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ================= TIPOGRAFÍA Y BASE ================= */

body.ww-body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #1e2445;
}

/* ================= HEADER + NAVBAR ================= */

.ww-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Nav principal */
.ww-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-block: 0.4rem;
}

/* Marca / logo */

.ww-brand {
    text-decoration: none;
}

.ww-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #0b2147;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f2ff;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.4);
}

.ww-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.ww-logo-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ww-logo-text span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Toggler personalizado (hamburguesa) */

.ww-navbar-toggler {
    border-color: rgba(15, 23, 42, 0.25);
    padding: 0.2rem 0.45rem;
}

.ww-navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(11, 99, 214, 0.32);
}

.ww-navbar-toggler-icon {
    background-image: none;
    width: 1.3rem;
    height: 1.3rem;
    position: relative;
}

.ww-navbar-toggler-icon::before,
.ww-navbar-toggler-icon::after,
.ww-navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: #0b2147;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.ww-navbar-toggler-icon::before {
    top: 0;
}

.ww-navbar-toggler-icon::after {
    bottom: 0;
}

.ww-navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

/* Nav-links dentro del navbar */

.ww-navbar .nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222842;
    padding-inline: 0.4rem;
    padding-block: 0.2rem;
    margin-inline: 0.2rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ww-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #0b2147;
    transition: width 0.25s ease-out;
}

.ww-navbar .nav-link:hover {
    color: #0b2147;
    transform: translateY(-1px);
}

.ww-navbar .nav-link.active {
    color: #0b2147;
    font-weight: 600;
}

.ww-navbar .nav-link.active::after {
    width: 100%;
}

/* ================= LAYOUT GENERAL MAIN ================= */

.qs-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(79, 209, 255, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(11, 99, 214, 0.12), transparent 55%),
        #ffffff;
    display: flex;
    flex-direction: column;
}

/* ================= HERO / INTRO ================= */

.qs-hero {
    position: relative;
    padding: 3.2rem 1.5rem 2.8rem;
    overflow: hidden;
}

.qs-hero::before,
.qs-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    z-index: 0;
}

.qs-hero::before {
    width: 180px;
    height: 180px;
    top: -40px;
    left: -40px;
    background: radial-gradient(circle at center, rgba(11, 99, 214, 0.25) 0, transparent 70%);
}

.qs-hero::after {
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -80px;
    background: radial-gradient(circle at center, rgba(79, 209, 255, 0.25) 0, transparent 70%);
}

.qs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.6rem;
    align-items: center;
}

/* Tag/píldora arriba del título */

.qs-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 33, 71, 0.92);
    color: #e0f2ff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    animation: qs-fade-down 700ms ease-out both;
}

.qs-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4fd1ff;
}

/* Texto principal hero */

.qs-hero-text {
    animation: qs-fade-left 800ms ease-out both;
}

.qs-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.1rem, 3.3vw + 1rem, 3.1rem);
    line-height: 1.05;
    color: #0b2147;
}

.qs-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.98rem;
    color: #404a67;
    max-width: 34rem;
}

/* Meta chips debajo del texto */

.qs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qs-meta span {
    font-size: 0.78rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: #e6f2ff;
    color: #1e2445;
    border: 1px solid rgba(11, 99, 214, 0.15);
}

/* Highlight lateral (años, descripción) */

.qs-hero-highlight {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border-radius: 26px;
    padding: 1.6rem 1.7rem;
    background: radial-gradient(circle at top left, #e4f1ff 0, #ffffff 55%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    animation: qs-fade-right 850ms ease-out both;
}

.qs-hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #0b2147;
    color: #e0f2ff;
    font-size: 0.86rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.qs-hero-badge span:first-child {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.qs-hero-badge span:last-child {
    font-size: 0.82rem;
    opacity: 0.9;
}

.qs-hero-note {
    margin: 0;
    font-size: 0.9rem;
    color: #404a67;
}

/* ================= SECCIÓN TARJETAS (MISIÓN / VISIÓN / POLÍTICAS) ================= */

.qs-section {
    padding: 2.6rem 1.5rem 3rem;
    background: #e6f2ff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.qs-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

/* Tarjetas */

.qs-card {
    position: relative;
    border-radius: 22px;
    background: #ffffff;
    padding: 1.7rem 1.6rem 1.8rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.18s ease-out;
    border: 1px solid rgba(11, 99, 214, 0.12);
    opacity: 0;
    transform: translateY(14px);
    animation: qs-card-in 650ms ease-out forwards;
}

.qs-card::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(79, 209, 255, 0.25) 0, transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.qs-card:nth-child(1) {
    animation-delay: 80ms;
}
.qs-card:nth-child(2) {
    animation-delay: 180ms;
}
.qs-card:nth-child(3) {
    animation-delay: 280ms;
}

.qs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
    border-color: rgba(11, 99, 214, 0.4);
    background: #f9fbff;
}

.qs-card-title {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    color: #0b2147;
    position: relative;
    padding-bottom: 0.4rem;
}

.qs-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b63d6, #4fd1ff);
}

.qs-card-text {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: #404a67;
}

/* ================= CALL TO ACTION FINAL ================= */

.qs-callout {
    padding: 2.4rem 1.5rem 3rem;
    background: linear-gradient(135deg, #0b63d6 0%, #1d9bf0 45%, #4fd1ff 100%);
    color: #ffffff;
}

.qs-callout-inner {
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 1.9rem 1.9rem;
    background: linear-gradient(135deg, rgba(11, 33, 71, 0.96) 0%, rgba(11, 33, 71, 0.92) 40%, rgba(11, 33, 71, 0.88) 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.qs-callout-inner h2 {
    margin: 0 0 0.45rem;
    font-size: 1.7rem;
}

.qs-callout-inner p {
    margin: 0;
    font-size: 0.96rem;
    max-width: 34rem;
    color: #e6f2ff;
}

.qs-callout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    border-radius: 40px;
    background: #4fd1ff;
    color: #0b2147;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
    white-space: nowrap;
}

.qs-callout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
    background: #7fe1ff;
}

/* ================= FOOTER (CONSISTENTE CON HOME) ================= */

.ww-footer {
    padding: 1.6rem 1.5rem 2.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7a8198;
}

/* ================= ANIMACIONES ================= */

@keyframes qs-fade-left {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes qs-fade-right {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes qs-fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qs-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .ww-navbar {
        padding-block: 0.35rem;
    }

    .qs-hero {
        padding: 2.6rem 1.3rem 2.2rem;
    }

    .qs-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.1rem;
    }

    .qs-hero-text {
        order: 2;
    }

    .qs-hero-highlight {
        order: 1;
    }

    .qs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qs-callout-inner {
        padding: 1.7rem 1.4rem;
    }
}

@media (max-width: 720px) {
    .qs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qs-card {
        padding: 1.5rem 1.3rem 1.6rem;
    }

    .qs-callout-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .qs-callout-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qs-title {
        font-size: 2rem;
    }

    .qs-hero {
        padding-inline: 1.1rem;
    }

    .qs-card-title {
        font-size: 1.1rem;
    }
}
