@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #030712;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #f8fafc;
    min-height: 100vh;
    background: transparent;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

/* ── Fondo: cielo nocturno + aurora ── */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 60% at 50% -10%, #1e1b4b 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 80% 20%, rgba(49, 46, 129, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #020617 0%, #0c0a1a 35%, #0f172a 65%, #1a1035 100%);
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 25% 8%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 40% 22%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 85% 12%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 95% 28%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 5% 35%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 33% 38%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 48% 45%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 62% 32%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 78% 40%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 92% 48%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 15% 58%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 50% 55%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 68% 62%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 88% 58%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 8% 72%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 22% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 45% 75%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 65% 78%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 82% 85%, rgba(255, 255, 255, 0.6), transparent);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
}

.aurora {
    position: absolute;
    width: 140%;
    height: 55%;
    left: -20%;
    filter: blur(60px);
    opacity: 0.55;
    mix-blend-mode: screen;
    border-radius: 50%;
}

.aurora-1 {
    top: 8%;
    background: linear-gradient(
        105deg,
        transparent 10%,
        rgba(129, 140, 248, 0.7) 30%,
        rgba(196, 181, 253, 0.85) 45%,
        rgba(103, 232, 249, 0.6) 60%,
        rgba(167, 139, 250, 0.5) 75%,
        transparent 90%
    );
    animation: auroraFlow1 16s ease-in-out infinite alternate;
}

.aurora-2 {
    top: 22%;
    height: 40%;
    opacity: 0.4;
    background: linear-gradient(
        75deg,
        transparent 15%,
        rgba(244, 114, 182, 0.45) 35%,
        rgba(251, 191, 36, 0.25) 50%,
        rgba(52, 211, 153, 0.4) 65%,
        transparent 85%
    );
    animation: auroraFlow2 20s ease-in-out infinite alternate;
}

@keyframes auroraFlow1 {
    0%   { transform: translateX(-3%) skewY(-3deg) scaleY(1); }
    100% { transform: translateX(4%) skewY(2deg) scaleY(1.08); }
}

@keyframes auroraFlow2 {
    0%   { transform: translateX(2%) skewY(2deg); }
    100% { transform: translateX(-5%) skewY(-2deg); }
}

.horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(251, 146, 60, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 30% 100%, rgba(244, 63, 94, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 100%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(3, 7, 18, 0.7) 100%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    pointer-events: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 28px 20px;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    background: rgba(10, 10, 25, 0.35);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

nav {
    position: sticky;
    top: 82px;
    z-index: 99;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(10, 10, 25, 0.25);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 181, 253, 0.35);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
    transform: translateY(-2px);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: min(90%, 820px);
    margin: 24px auto;
    padding: 30px 34px;
    border-radius: 24px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.container:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 181, 253, 0.22);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(129, 140, 248, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

h2 {
    margin: 0 0 18px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fde68a, #f0abfc, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    line-height: 1.75;
    color: #e2e8f0;
}

ul {
    padding-left: 1.25rem;
    line-height: 2;
    color: #e2e8f0;
}

li::marker {
    color: #a5b4fc;
}

a {
    color: #bae6fd;
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: #f0abfc;
}

.photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: block;
    margin-bottom: 22px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 0 5px rgba(165, 180, 252, 0.12),
        0 0 40px rgba(167, 139, 250, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    nav {
        top: 72px;
    }

    .container {
        padding: 24px 20px;
        border-radius: 18px;
    }

    nav a {
        font-size: 0.82rem;
        padding: 7px 14px;
    }

    .aurora {
        filter: blur(45px);
        opacity: 0.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stars,
    .aurora {
        animation: none;
    }
}
