/* =============================== */
/*  VARIABLES Y CONFIGURACIÓN BASE */
/* =============================== */
:root {
    /* Paleta SUDI */
    --color-ink: #1e2130;
    --color-ink-soft: #5c6172;
    --color-background: #f7f8fc;
    --color-surface: #ffffff;

    --color-accent: #7a2ff5;
    --color-accent-deep: #5b16d4;

    /* Degradados recurrentes del diseño */
    --gradient-cta: linear-gradient(135deg, #8b46ff 0%, #6d1ef0 100%);
    --gradient-rainbow: linear-gradient(
        90deg,
        #9fe3a4 0%,
        #8fd0ff 22%,
        #c5b3ff 45%,
        #ffb1c9 68%,
        #ffd6a1 88%,
        #9fe3a4 100%
    );
    --gradient-pastel: linear-gradient(120deg, #ffe3d3 0%, #f4d9ff 30%, #d3e2ff 60%, #ffd9e8 100%);

    --font-family-base: "Inter", "Helvetica Neue", Arial, sans-serif;
    --max-width-container: 1360px;
    --spacing-unit: 1rem;
    --radius-card: 20px;
    --radius-pill: 999px;

    --shadow-soft: 0 20px 60px rgba(30, 33, 48, 0.08);
    --shadow-glow: 0 12px 40px rgba(122, 47, 245, 0.35);

    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================== */
/*  RESETEO Y TIPOGRAFÍA GENERAL   */
/* =============================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Compensa la altura del header flotante al navegar por anclas */
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--color-ink);
    background-color: var(--color-background);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* =============================== */
/*  MARCA: ORBE IRIDISCENTE        */
/* =============================== */
.brand-orb {
    --orb-size: 28px;
    display: inline-block;
    width: var(--orb-size);
    height: var(--orb-size);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff9db0,
        #ffc79d,
        #f5e78f,
        #9de8a8,
        #8fd0ff,
        #b79dff,
        #ff9db0
    );
    -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 54%);
    mask: radial-gradient(closest-side, transparent 52%, #000 54%);
    animation: orb-spin 14s linear infinite;
}

.brand-orb--large {
    --orb-size: 56px;
}

@keyframes orb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================== */
/*  BOTONES                        */
/* =============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth);
}

.btn--small {
    padding: 0.6rem 1.3rem;
    font-size: 0.875rem;
}

.btn--primary {
    color: #ffffff;
    background: var(--gradient-cta);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 50px rgba(122, 47, 245, 0.45);
}

.btn--glass {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(30, 33, 48, 0.12);
}

.btn--glass:hover,
.btn--glass:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
}

.btn__arrow {
    display: inline-block;
    transition: transform 0.35s var(--transition-smooth);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
    transform: translateX(4px);
}

/* =============================== */
/*  TÍTULOS Y TEXTOS DE SECCIÓN    */
/* =============================== */
.section-title {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-align: center;
}

.section-title--left {
    text-align: left;
}

.section-text {
    color: var(--color-ink-soft);
    font-size: 1rem;
    max-width: 52ch;
    margin: 0;
}

.section-text--center {
    margin: 0 auto;
    text-align: center;
}

/* =============================== */
/*  FONDOS AURORA (BLOBS PASTEL)   */
/* =============================== */
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

/* Los degradados radiales ya producen el desvanecido: se evita filter blur por costo de render */
.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    opacity: 0.65;
    animation: aurora-drift 22s ease-in-out infinite alternate;
}

.aurora::before {
    background: radial-gradient(circle, rgba(255, 215, 228, 0.9) 0%, rgba(255, 215, 228, 0.35) 40%, transparent 70%);
    top: -20%;
    left: -18%;
}

.aurora::after {
    background: radial-gradient(circle, rgba(207, 224, 255, 0.9) 0%, rgba(207, 224, 255, 0.35) 40%, transparent 70%);
    bottom: -25%;
    right: -15%;
    animation-delay: -8s;
}

@keyframes aurora-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(6%, 8%, 0) scale(1.15);
    }
}

/* =============================== */
/*  ANIMACIONES DE ENTRADA (SCROLL)*/
/* =============================== */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s var(--transition-smooth) var(--delay, 0s),
        transform 0.8s var(--transition-smooth) var(--delay, 0s);
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================== */
/*  ELEMENTOS SKELETON (MOCKUPS)   */
/* =============================== */
.sk {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8eaf3 25%, #f5f6fb 50%, #e8eaf3 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 2.4s ease-in-out infinite;
}

.sk--short {
    width: 55%;
}

.sk--title {
    width: 34%;
    height: 12px;
}

.sk--chip {
    width: 90px;
    height: 22px;
    border-radius: var(--radius-pill);
}

.sk--row {
    height: 12px;
}

.sk--circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

@keyframes sk-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =============================== */
/*  ACCESIBILIDAD: MENOS MOVIMIENTO*/
/* =============================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
