
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@400;600;700&display=swap');

/* COLORES GENERALES */

:root {
    --fondo: #060711;
    --blanco: #f4f5ff;
    --gris: #999bb7;
    --azul: #45b8ff;
    --morado: #9d6cff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    min-width: 0;
}

body {
    width: 100%;
    min-width: 0;
    background: var(--fondo);
    color: var(--blanco);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: clip;
}

main, section, header, footer {
    min-width: 0;
}

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

/* FONDO */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(#ffffff05 1px, transparent 1px),
        linear-gradient(90deg, #ffffff05 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: .08;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        #ffffff0b 4px
    );
}

#particulas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* LUCES */

.fondo-luz {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .18;
    pointer-events: none;
    animation: flotar 10s ease-in-out infinite alternate;
}

.luz-1 {
    top: 100px;
    left: -200px;
    background: #215dff;
}

.luz-2 {
    top: 550px;
    right: -220px;
    background: #912cff;
    animation-delay: -4s;
}

@keyframes flotar {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(70px, 45px) scale(1.2);
    }
}

/* NAVEGACION */

.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 85px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff12;
    background: #060711a8;
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 1px;
}

.logo-icono {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    background: linear-gradient(135deg, #33baff, #7d4cff);
    border-radius: 11px;
    box-shadow: 0 0 25px #6955ff50;
}

.punto {
    color: var(--azul);
}

.estado {
    color: #a6aac7;
    font-size: 12px;
    letter-spacing: 2px;
}

.indicador {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #49ffb0;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px #49ffb0;
    animation: latido 2s infinite;
}

@keyframes latido {
    50% {
        opacity: .4;
    }
}

.btn-nav {
    padding: 11px 17px;
    border: 1px solid #8d7aff66;
    color: #d7ceff;
    font-size: 12px;
    letter-spacing: 1px;
    transition: .3s;
}

.btn-nav:hover {
    background: #8061ff22;
    box-shadow: 0 0 25px #8061ff25;
}

/* SECCION PRINCIPAL */

.hero {
    position: relative;
    width: 100%;
    min-height: min(720px, calc(100svh - 85px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 95px;
    overflow: hidden;
}

.hero > *:not(.linea-decorativa):not(.numero-fondo) {
    max-width: 100%;
}

.linea-decorativa {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(800px, 95vw);
    height: 300px;
    transform: translate(-50%, -50%);
    border: 1px solid #7863ff13;
    border-radius: 50%;
    box-shadow:
        0 0 0 55px #7863ff08,
        0 0 0 110px #7863ff05;
    pointer-events: none;
}

.subtitulo,
.mini-titulo,
.categoria {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: #a6a2d4;
}

.subtitulo span {
    color: #a17aff;
}

.hero h1 {
    position: relative;
    margin: 30px 0 24px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 6.5vw, 76px);
    line-height: 1.25;
    letter-spacing: -3px;
    font-weight: 800;
}

.texto-gradiente {
    background: linear-gradient(
        100deg,
        #ffffff 0%,
        #80caff 30%,
        #a58bff 65%,
        #e1aaff 100%
    );
    color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px #8d67ff35);
}

.descripcion {
    color: var(--gris);
    font-size: 18px;
    line-height: 1.7;
}

.btn-principal {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
    padding: 16px 23px;
    border: 1px solid #9b83ff;
    background: linear-gradient(100deg, #6650df30, #38baff10);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    box-shadow:
        0 0 30px #7861ff13,
        inset 0 0 20px #7861ff08;
    transition: .3s;
}

.btn-principal:hover {
    transform: translateY(-4px);
    background: #7957f540;
    box-shadow: 0 0 35px #7957f555;
}

.flecha {
    font-size: 20px;
}

.indicacion {
    position: absolute;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6e718f;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
}

.linea-scroll {
    display: block;
    width: 35px;
    height: 1px;
    background: var(--morado);
    animation: estirar 2s infinite alternate;
}

@keyframes estirar {
    to {
        width: 65px;
    }
}

.numero-fondo {
    position: absolute;
    right: 5%;
    bottom: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(100px, 20vw, 260px);
    font-weight: 800;
    color: #ffffff04;
    pointer-events: none;
}

/* PORTALES */

.portales {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 80px 35px 110px;
}

.encabezado-seccion {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.encabezado-seccion h2,
.cierre h2 {
    margin-top: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(23px, 3vw, 36px);
    line-height: 1.4;
}

.encabezado-seccion h2 span,
.cierre h2 span {
    color: #9d8aff;
}

.texto-seccion {
    color: #898ca9;
    font-size: 15px;
    line-height: 1.7;
    text-align: right;
}

.grid-portales {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* TARJETAS */

.portal {
    --acento: #48bdff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 285px;
    padding: 23px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #ffffff17;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            color-mix(in srgb, var(--acento) 12%, transparent),
            transparent 65%
        ),
        linear-gradient(145deg, #111426, #090b16 80%);
    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        border-color .4s,
        box-shadow .4s;
    opacity: 0;
    transform: translateY(25px);
    animation: entrada .8s ease forwards;
}

.portal:nth-child(2) {
    animation-delay: .1s;
}

.portal:nth-child(3) {
    animation-delay: .2s;
}

.portal:nth-child(4) {
    animation-delay: .3s;
}

.portal:nth-child(5) {
    animation-delay: .4s;
}

.portal:nth-child(6) {
    animation-delay: .5s;
}

@keyframes entrada {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        color-mix(in srgb, var(--acento) 17%, transparent),
        transparent 60%
    );
    transition: opacity .35s;
}

.portal:hover {
    transform: translateY(-9px) scale(1.015);
    border-color:
        color-mix(in srgb, var(--acento) 65%, transparent);
    box-shadow: 0 15px 50px -20px var(--acento);
}

.portal:hover::before {
    opacity: 1;
}

.portal-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-numero {
    color: #727590;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.portal-flecha {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff19;
    border-radius: 50%;
    color: var(--acento);
    font-size: 19px;
    transition: .3s;
}

.portal:hover .portal-flecha {
    transform: rotate(45deg);
    background: var(--acento);
    color: #070912;
    box-shadow: 0 0 20px var(--acento);
}

.simbolo {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 22px 0;
    border: 1px solid
        color-mix(in srgb, var(--acento) 45%, transparent);
    background:
        color-mix(in srgb, var(--acento) 10%, transparent);
    color: var(--acento);
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    transition: .4s;
}

.portal:hover .simbolo {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 0 35px
        color-mix(in srgb, var(--acento) 25%, transparent);
}

.simbolo-google {
    font-weight: 800;
}

.simbolo-youtube {
    border-radius: 15px;
}

.portal-info {
    margin-top: auto;
}

.portal-info h3 {
    margin: 8px 0;
    font-size: 23px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.portal-info p {
    color: #9295b0;
    font-size: 14px;
}

.categoria {
    color: var(--acento);
    font-size: 9px;
    letter-spacing: 2px;
}

.barra-progreso {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acento);
    box-shadow: 0 0 15px var(--acento);
    transition: width .4s;
}

.portal:hover .barra-progreso {
    width: 100%;
}

.tarjeta-azul {
    --acento: #53c2ff;
}

.tarjeta-roja {
    --acento: #ff657d;
}

.tarjeta-verde {
    --acento: #53f2b0;
}

.tarjeta-morada {
    --acento: #aa87ff;
}

.tarjeta-naranja {
    --acento: #ffb45e;
}

.tarjeta-rosa {
    --acento: #ff80d4;
}

/* SECCION FINAL */

.cierre {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 95px 20px 115px;
    border-top: 1px solid #ffffff12;
    background: radial-gradient(
        ellipse at 50% 100%,
        #6850ff1c,
        transparent 60%
    );
}

.cierre .btn-principal {
    margin-top: 25px;
}

/* PIE DE PAGINA */

footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 7%;
    border-top: 1px solid #ffffff12;
    background: #05060e;
}

footer p,
.version {
    font-size: 10px;
    color: #737692;
    letter-spacing: 1px;
}

/* ANIMACIONES */

.aparecer {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer .9s ease forwards;
}

.aparecer:nth-child(2) {
    animation-delay: .15s;
}

.aparecer:nth-child(3) {
    animation-delay: .3s;
}

.aparecer:nth-child(4) {
    animation-delay: .45s;
}

.aparecer:nth-child(5) {
    animation-delay: .6s;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   RESPONSIVO - TABLET
   ==================================== */

@media (max-width: 950px) {

    .navbar {
        padding-inline: 5%;
    }

    .portales {
        padding: 65px 25px 80px;
    }

    .grid-portales {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .encabezado-seccion {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .texto-seccion {
        text-align: left;
    }
}

/* ====================================
   RESPONSIVO - CELULARES
   ==================================== */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 66px;
    }

    .navbar {
        height: 66px;
        padding: 0 16px;
        gap: 12px;
    }

    .logo {
        font-size: 15px;
        gap: 8px;
        white-space: nowrap;
    }

    .logo-icono {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .estado {
        display: none;
    }

    .btn-nav {
        padding: 10px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .hero {
        min-height: min(690px, calc(100svh - 66px));
        padding: 55px 18px 95px;
    }

    .subtitulo {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 42px);
        letter-spacing: -1.2px;
        margin: 22px 0;
    }

    .descripcion {
        font-size: 15px;
        max-width: 330px;
        line-height: 1.5;
    }

    .btn-principal {
        gap: 14px;
        max-width: 100%;
        margin-top: 26px;
        padding: 15px 16px;
        font-size: 9px;
        letter-spacing: .7px;
    }

    .linea-decorativa {
        width: 86%;
        height: 210px;
    }

    .fondo-luz {
        width: 240px;
        height: 240px;
        filter: blur(75px);
    }

    .luz-1 {
        left: -120px;
    }

    .luz-2 {
        right: -120px;
    }

    .numero-fondo {
        font-size: 90px;
    }

    .indicacion {
        bottom: 22px;
        gap: 8px;
        font-size: 8px;
        letter-spacing: .6px;
    }

    .linea-scroll {
        width: 22px;
    }

    .portales {
        padding: 48px 16px 65px;
    }

    .encabezado-seccion {
        gap: 12px;
        margin-bottom: 24px;
    }

    .encabezado-seccion h2 {
        font-size: clamp(22px, 6vw, 28px);
    }

    .texto-seccion {
        font-size: 15px;
    }

    .grid-portales {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .portal {
        width: 100%;
        min-height: 235px;
        padding: 20px;
    }

    .portal-info h3 {
        font-size: 22px;
    }

    .cierre {
        padding: 60px 16px 75px;
    }

    .cierre h2 {
        font-size: 25px;
    }

    footer {
        padding: 24px 16px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ====================================
   CELULARES PEQUEÑOS
   ==================================== */

@media (max-width: 360px) {

    .navbar {
        padding-inline: 12px;
    }

    .logo {
        font-size: 13px;
    }

    .btn-nav {
        font-size: 9px;
        padding: 9px;
    }

    .hero {
        padding-inline: 12px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .descripcion {
        font-size: 14px;
    }

    .btn-principal {
        font-size: 8px;
    }
}

/* PANTALLAS CON POCA ALTURA */

@media (max-height: 560px) and (max-width: 600px) {

    .hero {
        min-height: 475px;
        padding-block: 40px 75px;
    }
}

/* DISPOSITIVOS TACTILES */

@media (hover: none) {

    .portal:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-principal:hover {
        transform: none;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .aparecer,
    .portal {
        opacity: 1;
        transform: none;
    }
}
