/* INDEX.CSS */


/* 1. VARIABLES GLOBALES DEL INDEX */

:root {
    /* Colores institucionales principales */
    --color-purple: #7c3aed;
    --color-purple-dark: #4c1d95;
    --color-purple-soft: #ede9fe;

    /* Color dorado/amarillo inspirado en el logo */
    --color-gold: #f4b400;
    --color-gold-soft: #fff3c4;

    /* Azul institucional inspirado en el logo */
    --color-blue: #003b73;
    --color-blue-soft: #eaf3ff;

    /* Colores base */
    --color-white: #ffffff;
    --color-light: #f8f7ff;
    --color-text: #1f2937;
    --color-muted: #6b7280;

    /* Bordes y sombras */
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;

    --shadow-soft: 0 20px 60px rgba(76, 29, 149, 0.14);
    --shadow-strong: 0 28px 90px rgba(76, 29, 149, 0.22);
    --shadow-gold: 0 18px 45px rgba(244, 180, 0, 0.25);

    /* Transiciones generales */
    --transition-fast: 0.25s ease;
    --transition-normal: 0.45s ease;
}


/* 2. RESETEO BASE */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Mantiene el alto total del documento igual al viewport */
    width: 100%;
    height: 100%;

    /* Permite desplazamiento suave si en el futuro reutilizamos anclas */
    scroll-behavior: smooth;
}

body {
    /* Ocupa exactamente el alto visible del navegador */
    width: 100%;
    height: 100%;

    /* Fuente moderna y segura sin depender de librerias externas */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Color principal del texto */
    color: var(--color-text);

    /* Fondo base claro */
    background: var(--color-light);

    /* Bloquea el scroll general de la pagina */
    overflow-x: hidden;
}

a {
    /* Evita subrayado por defecto en enlaces */
    text-decoration: none;
}

img {
    /* Hace que las imágenes no se salgan de sus contenedores */
    max-width: 100%;
    display: block;
}


/* 3. CONTENEDOR PRINCIPAL */

.index-page {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100svh;

    overflow-x: hidden;

    /* Fondo con mezcla institucional: claro, morado y dorado */
        background:
        radial-gradient(circle at 12% 20%, rgba(124, 58, 237, 0.22), transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(244, 180, 0, 0.22), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7f3ff 52%, #fff9e8 100%);
}


/* 4. ELEMENTOS DECORATIVOS DEL FONDO */

.background-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

.background-glow-purple {
    width: 430px;
    height: 430px;
    left: -160px;
    bottom: -120px;
    background: rgba(124, 58, 237, 0.18);
}

.background-glow-gold {
    width: 360px;
    height: 360px;
    right: -110px;
    top: -90px;
    background: rgba(244, 180, 0, 0.18);
}

.background-grid {
    position: absolute;
    inset: 0;

    /* Patrón sutil tipo grid para dar aspecto tecnológico */
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);

    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}


/* 5. SECCIÓN HERO */

.hero-section {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    min-height: 100svh;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 44px;

    padding: 28px 0 54px;

}


/* 6. BLOQUE DE CONTENIDO */

.hero-content {
    animation: fadeSlideLeft 0.9s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    margin-bottom: 22px;

    color: var(--color-purple);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;

    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

.hero-badge::before {
    content: "";

    width: 9px;
    height: 9px;

    border-radius: 999px;
    background: var(--color-gold);
    box-shadow: 0 0 0 6px rgba(244, 180, 0, 0.17);
}

.hero-title {
    max-width: 620px;

    color: #202436;

    font-size: clamp(3.2rem, 6.4vw, 6.2rem);
    line-height: 0.92;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-title::after {
    content: "";

    display: block;
    width: 110px;
    height: 7px;

    margin-top: 22px;

    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
}

.hero-description {
    max-width: 590px;

    margin-top: 22px;

    color: var(--color-muted);
    font-size: clamp(0.98rem, 1.25vw, 1.1rem);
    line-height: 1.7;
}

.hero-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 22px;
}

.hero-values span {
    padding: 10px 16px;

    color: var(--color-blue);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 999px;

    font-size: 0.92rem;
    font-weight: 800;

    box-shadow: 0 12px 35px rgba(0, 59, 115, 0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 28px;
}


/* 7. BOTONES */

.btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 0 26px;

    border-radius: 18px;

    font-size: 0.98rem;
    font-weight: 900;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}

.btn-primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-purple), #9b5cff);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.32);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(124, 58, 237, 0.42);
}

.btn-secondary {
    color: var(--color-purple-dark);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 14px 34px rgba(76, 29, 149, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    color: var(--color-white);
    background: var(--color-purple-dark);
}


/* 8. BLOQUE VISUAL PRINCIPAL */

.hero-visual {
    position: relative;

    min-height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: fadeSlideRight 0.9s ease both;
}

.hero-visual::before {
    content: "";

    position: absolute;
    width: 430px;
    height: 430px;

    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(237, 233, 254, 0.72) 48%, transparent 70%);

    box-shadow: inset 0 0 80px rgba(124, 58, 237, 0.14);
}


/* 9. TARJETAS DINÁMICAS DE ACTIVIDADES
   Por ahora funcionan como placeholders visuales.
   Luego se pueden reemplazar por fotos reales. */

.activity-card {
    position: absolute;
    z-index: 2;

    width: 210px;
    height: 136px;

    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);

    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.activity-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    opacity: 0.95;
}

.activity-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top, rgba(31, 41, 55, 0.72), rgba(31, 41, 55, 0.08)),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35), transparent 35%);
}

.activity-card-label {
    position: absolute;
    left: 16px;
    bottom: 15px;
    z-index: 2;

    color: var(--color-white);
    font-size: 0.92rem;
    font-weight: 900;

    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.card-one {
    top: 42px;
    left: 38px;

    transform: rotate(-9deg);
    animation: floatCardOne 5.4s ease-in-out infinite;
}

.card-one::before {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(0, 59, 115, 0.72)),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=900&auto=format&fit=crop&q=80");
}

.card-two {
    top: 94px;
    right: 14px;

    transform: rotate(8deg);
    animation: floatCardTwo 6s ease-in-out infinite;
}

.card-two::before {
    background:
        linear-gradient(135deg, rgba(0, 59, 115, 0.86), rgba(244, 180, 0, 0.54)),
        url("https://images.unsplash.com/photo-1515187029135-18ee286d815b?w=900&auto=format&fit=crop&q=80");
}

.card-three {
    left: 4px;
    bottom: 112px;

    transform: rotate(8deg);
    animation: floatCardThree 5.8s ease-in-out infinite;
}

.card-three::before {
    background:
        linear-gradient(135deg, rgba(244, 180, 0, 0.75), rgba(124, 58, 237, 0.66)),
        url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=900&auto=format&fit=crop&q=80");
}

.card-four {
    right: 44px;
    bottom: 52px;

    transform: rotate(-7deg);
    animation: floatCardFour 6.4s ease-in-out infinite;
}

.card-four::before {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.78), rgba(0, 59, 115, 0.75)),
        url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=900&auto=format&fit=crop&q=80");
}

.activity-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-strong);
}


/* 10. LOGO PROTAGONISTA */

.logo-stage {
    position: relative;
    z-index: 4;

    width: min(390px, 78vw);
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-orbit {
    position: absolute;
    inset: -22px;

    border-radius: 50%;
    border: 2px dashed rgba(124, 58, 237, 0.28);

    animation: rotateOrbit 26s linear infinite;
}

.logo-orbit::before,
.logo-orbit::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    border-radius: 999px;
    background: var(--color-gold);
    box-shadow: 0 0 0 9px rgba(244, 180, 0, 0.18);
}

.logo-orbit::before {
    top: 42px;
    left: 34px;
}

.logo-orbit::after {
    right: 54px;
    bottom: 26px;
    background: var(--color-purple);
    box-shadow: 0 0 0 9px rgba(124, 58, 237, 0.16);
}

.logo-card {
    position: relative;
    z-index: 3;

    width: 330px;
    height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    border-radius: 44px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(124, 58, 237, 0.16);

    box-shadow:
        0 32px 80px rgba(76, 29, 149, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);

    transform: rotate(-3deg);
    animation: logoFloat 5.6s ease-in-out infinite;
}

.logo-card::before {
    content: "";

    position: absolute;
    inset: 18px;

    border-radius: 34px;
    border: 1px solid rgba(244, 180, 0, 0.16);

    pointer-events: none;
}

.asebep-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter: drop-shadow(0 18px 22px rgba(0, 59, 115, 0.13));
}


/* 11. INSIGNIA DE HORAS */

.hours-badge {
    position: absolute;
    right: -10px;
    bottom: 54px;
    z-index: 5;

    min-width: 138px;
    padding: 17px 20px;

    border-radius: 24px;
    background: linear-gradient(135deg, var(--color-gold), #ffc928);
    color: #1f2937;

    box-shadow: var(--shadow-gold);

    animation: badgePulse 3.4s ease-in-out infinite;
}

.hours-badge strong {
    display: block;

    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.hours-badge span {
    display: block;

    margin-top: 4px;

    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}


/* 12. INDICADOR INFERIOR */

.bottom-indicator {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: max-content;
    max-width: calc(100% - 32px);

    transform: translateX(-50%);

    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;

    padding: 8px 14px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(14px);

    animation: fadeIn 1.1s ease 0.5s both;
}

.bottom-indicator span {
    width: 46px;
    height: 4px;

    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
}

.bottom-indicator p {
    margin: 0;
    white-space: nowrap;
}


/* 13. ANIMACIONES */

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-16px) rotate(2deg);
    }
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes badgePulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes floatCardOne {
    0%,
    100% {
        transform: translateY(0) rotate(-9deg);
    }

    50% {
        transform: translateY(-14px) rotate(-5deg);
    }
}

@keyframes floatCardTwo {
    0%,
    100% {
        transform: translateY(0) rotate(8deg);
    }

    50% {
        transform: translateY(16px) rotate(4deg);
    }
}

@keyframes floatCardThree {
    0%,
    100% {
        transform: translateY(0) rotate(8deg);
    }

    50% {
        transform: translateY(-12px) rotate(12deg);
    }
}

@keyframes floatCardFour {
    0%,
    100% {
        transform: translateY(0) rotate(-7deg);
    }

    50% {
        transform: translateY(14px) rotate(-11deg);
    }
}


/* 14. RESPONSIVE DESIGN */

@media (max-width: 1050px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 18px;

        padding-top: 40px;
        padding-bottom: 90px;
    }

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

    .hero-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-values,
    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 500px;
    }

    .activity-card {
        width: 185px;
        height: 118px;
    }
}

@media (max-width: 720px) {
    .index-page {
        min-height: 100svh;
        overflow-y: auto;
    }

    .hero-section {
        width: min(100% - 32px, 1180px);

        min-height: auto;

        padding-top: 34px;
        padding-bottom: 110px;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
        margin-top: 12px;
    }

    .hero-visual::before {
        width: 330px;
        height: 330px;
    }

.logo-card {
    position: relative;
    z-index: 3;

    width: 300px;
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 26px;

    border-radius: 44px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(124, 58, 237, 0.16);

    box-shadow:
        0 32px 80px rgba(76, 29, 149, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);

    transform: rotate(-3deg);
    animation: logoFloat 5.6s ease-in-out infinite;
}

    .logo-card::before {
        border-radius: 24px;
    }

    .logo-orbit {
        inset: -14px;
    }

    .activity-card {
        width: 142px;
        height: 94px;

        border-radius: 20px;
    }

    .activity-card-label {
        left: 12px;
        bottom: 12px;

        font-size: 0.76rem;
    }

    .card-one {
        top: 16px;
        left: 10px;
    }

    .card-two {
        top: 44px;
        right: 4px;
    }

    .card-three {
        left: 0;
        bottom: 54px;
    }

    .card-four {
        right: 12px;
        bottom: 22px;
    }

    .hours-badge {
        right: 2px;
        bottom: 46px;

        min-width: 106px;
        padding: 13px 14px;

        border-radius: 18px;
    }

    .hours-badge strong {
        font-size: 1.35rem;
    }

    .hours-badge span {
        font-size: 0.64rem;
    }

    .bottom-indicator {
        width: calc(100% - 32px);

        justify-content: center;
        text-align: center;

        font-size: 0.78rem;
    }
}

@media (max-width: 430px) {
    .hero-title {
        font-size: clamp(3rem, 18vw, 4.4rem);
    }

    .hero-values span {
        font-size: 0.8rem;
        padding: 9px 13px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .logo-card {
        width: 210px;
        height: 210px;
    }

    .activity-card {
        width: 124px;
        height: 84px;
    }

    .bottom-indicator p {
        max-width: 260px;
    }
}


/* 15. ACCESIBILIDAD. */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* 16. Estados controlados por JS */
.btn-loading {
    transform: translateY(-2px) scale(0.98);
    opacity: 0.88;
}

.activity-card-active {
    box-shadow:
    0 30px 80px rgba(76, 29, 149, 0.30),
        0 0 0 5px rgba(244, 180, 0, 0.20);
}



