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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #020b13;
    color: #f4efe5;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;

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

    background:
        radial-gradient(
            circle at 22% 48%,
            rgba(22, 80, 94, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 78% 48%,
            rgba(110, 75, 32, 0.17),
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #020910 0%,
            #04131d 48%,
            #020910 100%
        );
}


/* ATMÓSFERA */

.ambient {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
}

.ambient-left {
    left: -250px;
    top: 25%;
    background: #2c8990;
}

.ambient-right {
    right: -250px;
    top: 20%;
    background: #a6783b;
}


/* CONTENIDO */

.hero-content {
    position: relative;
    z-index: 10;

    text-align: center;
    transform: translateY(-4vh);
}

.eyebrow {
    margin-bottom: 28px;

    font-size: 11px;
    letter-spacing: 5px;

    color: rgba(255,255,255,0.38);
}

h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-weight: 400;
    font-size: clamp(58px, 8vw, 128px);

    letter-spacing: 0.04em;
    line-height: 0.95;

    text-shadow:
        0 0 40px rgba(255,255,255,0.06);
}

.title-line {
    width: 74px;
    height: 1px;

    margin: 30px auto;

    background: rgba(204, 166, 103, 0.8);
}

.subtitle {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(16px, 1.4vw, 23px);
    line-height: 1.6;

    color: rgba(244,239,229,0.75);
}


/* BOTÓN */

.enter-button {
    margin-top: 46px;

    min-width: 190px;
    padding: 16px 26px;

    background: rgba(0,0,0,0.15);

    border: 1px solid rgba(211,180,125,0.65);
    border-radius: 2px;

    color: #eee6d7;

    font-size: 12px;
    letter-spacing: 4px;

    cursor: pointer;

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.enter-button .arrow {
    margin-left: 20px;
    transition: margin-left 0.35s ease;
}

.enter-button:hover {
    background: rgba(201,166,104,0.10);

    border-color: rgba(231,201,145,0.95);

    box-shadow:
        0 0 35px rgba(197,159,92,0.10);

    transform: translateY(-2px);
}

.enter-button:hover .arrow {
    margin-left: 28px;
}


/* ONDAS */

.waves {
    position: absolute;

    left: -5%;
    right: -5%;
    bottom: 7%;

    height: 200px;

    opacity: 0.22;

    transform: rotate(-2deg);
}

.wave {
    position: absolute;

    left: 0;

    width: 110%;
    height: 90px;

    border-top: 1px solid rgba(112, 204, 208, 0.65);

    border-radius: 50%;

    animation: drift 10s ease-in-out infinite alternate;
}

.wave-1 {
    top: 30px;
}

.wave-2 {
    top: 55px;
    opacity: 0.7;
    animation-delay: -2s;
}

.wave-3 {
    top: 80px;
    opacity: 0.45;
    animation-delay: -4s;
}

.wave-4 {
    top: 105px;
    opacity: 0.25;
    animation-delay: -6s;
}

@keyframes drift {

    from {
        transform: translateX(-2%) scaleY(0.8);
    }

    to {
        transform: translateX(2%) scaleY(1.25);
    }
}


/* FOOTER */

.footer {
    position: absolute;

    left: 48px;
    right: 48px;
    bottom: 34px;

    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    letter-spacing: 2px;

    color: rgba(255,255,255,0.55);
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-right {
    text-align: right;
}

.footer span {
    font-size: 11px;
}

.footer small {
    font-size: 8px;
    opacity: 0.55;
}


/* MÓVIL */

@media (max-width: 700px) {

    .hero-content {
        padding: 0 24px;
        transform: translateY(-3vh);
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
        line-height: 1.7;
    }

    h1 {
        font-size: clamp(46px, 15vw, 76px);
        letter-spacing: 0;
    }

    .subtitle br {
        display: none;
    }

    .footer {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

}

/* =========================================================
   NEURAL HEAD
   ========================================================= */

.neural-head {
    position: absolute;
    z-index: 2;

    left: 5%;
    top: 50%;

    width: 300px;
    height: 430px;

    transform: translateY(-50%);
    opacity: 0.48;

    animation: neuralFloat 8s ease-in-out infinite alternate;
}

.head-outline {
    position: absolute;

    width: 185px;
    height: 260px;

    left: 40px;
    top: 55px;

    border-radius: 48% 52% 45% 55% / 38% 43% 57% 62%;

    border-left: 1px solid rgba(91, 204, 211, 0.65);
    border-top: 1px solid rgba(91, 204, 211, 0.35);

    transform: rotate(-7deg);

    filter:
        drop-shadow(0 0 12px rgba(73, 190, 199, 0.22));
}

.head-outline::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 160px;

    left: 55px;
    top: 205px;

    border-right: 1px solid rgba(91, 204, 211, 0.35);

    border-radius: 50%;
}


/* RED */

.neural-network {
    position: absolute;

    left: 55px;
    top: 80px;

    width: 180px;
    height: 200px;
}

.node {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(143, 231, 235, 0.95);

    box-shadow:
        0 0 6px rgba(143,231,235,0.9),
        0 0 18px rgba(70,191,201,0.6);

    animation: neuralPulse 3s ease-in-out infinite alternate;
}

.n1 { left: 28px;  top: 35px; }
.n2 { left: 72px;  top: 18px; }
.n3 { left: 115px; top: 43px; }
.n4 { left: 48px;  top: 83px; }
.n5 { left: 98px;  top: 92px; }
.n6 { left: 137px; top: 120px; }
.n7 { left: 65px;  top: 145px; }
.n8 { left: 120px; top: 165px; }


.connection {
    position: absolute;

    height: 1px;

    transform-origin: left center;

    background: linear-gradient(
        90deg,
        rgba(89,205,213,0.05),
        rgba(113,221,227,0.6),
        rgba(89,205,213,0.05)
    );
}

.c1 {
    width: 60px;
    left: 30px;
    top: 38px;
    transform: rotate(-20deg);
}

.c2 {
    width: 75px;
    left: 72px;
    top: 22px;
    transform: rotate(23deg);
}

.c3 {
    width: 78px;
    left: 48px;
    top: 84px;
    transform: rotate(7deg);
}

.c4 {
    width: 75px;
    left: 100px;
    top: 94px;
    transform: rotate(27deg);
}

.c5 {
    width: 75px;
    left: 65px;
    top: 145px;
    transform: rotate(15deg);
}

.c6 {
    width: 100px;
    left: 30px;
    top: 40px;
    transform: rotate(63deg);
}


/* =========================================================
   ORBIT / CONSCIOUSNESS ARC
   ========================================================= */

.consciousness-orbit {
    position: absolute;

    z-index: 1;

    right: -120px;
    top: 50%;

    width: 520px;
    height: 520px;

    transform: translateY(-50%);

    opacity: 0.48;

    animation: orbitFloat 12s ease-in-out infinite alternate;
}

.orbit {
    position: absolute;

    border-radius: 50%;
}

.orbit-1 {
    inset: 30px;

    border-left: 1px solid rgba(218,178,109,0.6);
    border-top: 1px solid rgba(218,178,109,0.18);

    transform: rotate(25deg);

    box-shadow:
        -8px 0 35px rgba(199,151,76,0.07);
}

.orbit-2 {
    inset: 70px;

    border-left: 1px solid rgba(98,199,205,0.30);

    transform: rotate(-18deg);
}

.orbit-3 {
    inset: 115px;

    border-top: 1px solid rgba(225,192,131,0.22);

    transform: rotate(42deg);
}

.orbit-glow {
    position: absolute;

    width: 180px;
    height: 180px;

    left: 100px;
    top: 165px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(197,151,80,0.12),
            rgba(59,151,161,0.05) 40%,
            transparent 72%
        );

    filter: blur(18px);
}


/* =========================================================
   MOVIMIENTO
   ========================================================= */

@keyframes neuralFloat {

    from {
        transform: translateY(-50%) translateX(0);
    }

    to {
        transform: translateY(-52%) translateX(7px);
    }
}

@keyframes neuralPulse {

    from {
        opacity: 0.35;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1.25);
    }
}

@keyframes orbitFloat {

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

    to {
        transform:
            translateY(-50%)
            rotate(4deg);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .neural-head {
        left: -80px;
        opacity: 0.25;
        transform: translateY(-50%) scale(0.8);
    }

    .consciousness-orbit {
        right: -260px;
        opacity: 0.28;
    }
}

@media (max-width: 600px) {

    .neural-head {
        left: -125px;
        opacity: 0.18;
    }

    .consciousness-orbit {
        right: -330px;
        opacity: 0.20;
    }
}

/* =========================================================
   ACCESS FORM
   ========================================================= */

.access-panel {
    position: absolute;
    inset: 0;

    z-index: 20;

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

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        visibility 0.8s;
}

.access-content {
    width: min(440px, calc(100% - 40px));

    text-align: center;
}

.access-eyebrow {
    margin-bottom: 18px;

    font-size: 9px;
    letter-spacing: 4px;

    color: rgba(255,255,255,0.38);
}

.access-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.05;

    letter-spacing: 2px;
}

.access-intro {
    margin-bottom: 34px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;
    line-height: 1.6;

    color: rgba(244,239,229,0.62);
}


/* CAMPOS */

.field {
    margin-bottom: 20px;
    text-align: left;
}

.field label {
    display: block;

    margin-bottom: 7px;

    font-size: 9px;
    letter-spacing: 2px;

    color: rgba(255,255,255,0.45);
}

.field input {
    width: 100%;

    padding: 10px 2px;

    border: none;
    border-bottom: 1px solid rgba(210,180,126,0.30);

    outline: none;

    background: transparent;

    color: #f4efe5;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;

    transition: border-color 0.3s ease;
}

.field input:focus {
    border-bottom-color: rgba(210,180,126,0.9);
}


/* CONSENTIMIENTO */

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 26px;

    text-align: left;

    cursor: pointer;
}

.consent input {
    margin-top: 3px;
}

.consent span {
    font-size: 10px;
    line-height: 1.5;

    color: rgba(255,255,255,0.42);
}


/* BOTÓN */

.access-button {
    width: 100%;

    margin-top: 25px;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;

    border: 1px solid rgba(211,180,125,0.60);

    background: rgba(0,0,0,0.12);

    color: #eee6d7;

    font-size: 10px;
    letter-spacing: 3px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.access-button:hover {
    background: rgba(201,166,104,0.10);

    border-color: rgba(231,201,145,0.95);

    box-shadow:
        0 0 30px rgba(197,159,92,0.10);
}

.back-button {
    margin-top: 20px;

    border: none;
    background: none;

    color: rgba(255,255,255,0.32);

    font-size: 9px;
    letter-spacing: 2px;

    cursor: pointer;
}

.back-button:hover {
    color: rgba(255,255,255,0.7);
}


/* MENSAJES */

.form-message {
    min-height: 17px;

    margin-top: 15px;

    font-size: 11px;
    letter-spacing: 1px;

    color: rgba(225,183,113,0.9);
}


/* =========================================================
   TRANSICIONES
   ========================================================= */

.hero-content {
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.hero.form-open .hero-content {
    opacity: 0;
    pointer-events: none;

    transform: translateY(-40px);
}

.hero.form-open .access-panel {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Atenuamos ligeramente los elementos decorativos */

.hero.form-open .neural-head {
    opacity: 0.15;
}

.hero.form-open .consciousness-orbit {
    opacity: 0.18;
}

.hero.form-open .footer {
    opacity: 0.25;
}


/* MÓVIL */

@media (max-height: 750px) {

    .access-content {
        transform: scale(0.90);
    }

}

/* =========================================================
   WELCOME SCREEN
   ========================================================= */

.welcome-panel {
    position: absolute;
    inset: 0;

    z-index: 30;

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

    opacity: 0;
    visibility: hidden;

    transform: scale(1.03);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        visibility 1.2s;
}

.welcome-content {
    width: min(750px, calc(100% - 40px));
    text-align: center;
}

.welcome-eyebrow {
    margin-bottom: 55px;

    font-size: 9px;
    letter-spacing: 5px;

    color: rgba(255,255,255,0.35);
}

.welcome-small {
    margin-bottom: 14px;

    font-size: 10px;
    letter-spacing: 7px;

    color: rgba(255,255,255,0.45);
}

.welcome-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 6vw, 86px);
    font-weight: 400;

    line-height: 1;

    text-transform: uppercase;

    color: #f4efe5;

    text-shadow:
        0 0 40px rgba(255,255,255,0.07);
}

.welcome-line {
    width: 65px;
    height: 1px;

    margin: 30px auto;

    background: rgba(211,180,125,0.8);
}

.welcome-content h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 400;

    letter-spacing: 6px;

    color: rgba(244,239,229,0.85);
}

.welcome-message {
    margin-top: 35px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;
    font-style: italic;

    color: rgba(244,239,229,0.45);
}


/* ---------------------------------------------------------
   ESTADO WELCOME
--------------------------------------------------------- */

.hero.welcome-open .hero-content,
.hero.welcome-open .access-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero.welcome-open .welcome-panel {
    opacity: 1;
    visibility: visible;

    transform: scale(1);
}


/* Recuperamos ligeramente el ambiente */

.hero.welcome-open .neural-head {
    opacity: 0.35;
}

.hero.welcome-open .consciousness-orbit {
    opacity: 0.38;
}

.hero.welcome-open .footer {
    opacity: 0.45;
}