:root {
    --bg: #0d1b3a;
    --bg-soft: #14264d;
    --surface: rgba(20, 36, 74, 0.84);
    --text: #e7efff;
    --muted: #afc1e8;
    --primary: #3f72d8;
    --primary-strong: #325fc0;
    --border: rgba(173, 197, 247, 0.2);
    --shadow: 0 16px 35px rgba(5, 12, 28, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", Arial, sans-serif;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at 78% 8%, #254a8d 0%, transparent 40%), var(--bg);
    line-height: 1.6;
}

.background-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(63, 114, 216, 0.28), transparent 35%),
        radial-gradient(circle at 82% 75%, rgba(85, 142, 255, 0.22), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.site-header {
    width: min(1120px, calc(100% - 2rem));
    margin: 1.2rem auto 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 30, 62, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0.8rem;
    z-index: 30;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--primary), #6ea0ff);
    color: #eef4ff;
    font-size: 0.78rem;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.nav-bar a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    padding: 0.56rem 0.8rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
    background: rgba(80, 130, 230, 0.2);
    color: #f3f7ff;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: rgba(80, 130, 230, 0.2);
    color: var(--text);
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.page {
    width: min(1120px, calc(100% - 2rem));
    margin: 1.4rem auto 0;
    padding-bottom: 3rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero,
.profile,
.contact-card {
    padding: clamp(1.4rem, 2vw, 2rem);
}

.hero h1,
.profile h1,
.contact-card h1 {
    margin: 0.4rem 0 0.8rem;
    line-height: 1.2;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow {
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #8eb4ff;
    font-weight: 700;
}

.hero p,
.profile p,
.contact-card p {
    color: var(--muted);
    max-width: 72ch;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #eef4ff;
    background: linear-gradient(140deg, var(--primary), #5d91f8);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(80, 130, 230, 0.14);
}

.stats-grid,
.skills-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.stat {
    padding: 1.2rem;
    grid-column: span 4;
}

.stat h3 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    color: #8db2ff;
}

.stat p {
    margin: 0;
    color: var(--muted);
}

.profile {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.2rem;
    align-items: center;
}

.photo-container img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.timeline {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding: 1.1rem;
    border-left: 4px solid rgba(99, 149, 255, 0.8);
}

.timeline-item h3 {
    margin: 0;
}

.timeline-media {
    margin-top: 0.75rem;
}

.timeline-media img,
.timeline-media .pdf-card {
    width: min(100%, 280px);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-media img {
    display: block;
    object-fit: cover;
}

.timeline-media .pdf-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    padding: 0.75rem;
    background: rgba(80, 130, 230, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.timeline-media .pdf-card:hover {
    transform: translateY(-2px);
    background: rgba(80, 130, 230, 0.24);
}

.timeline-media .pdf-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    background: #3f72d8;
}

.timeline-date {
    margin: 0.2rem 0 0.6rem;
    color: #90b4ff;
    font-weight: 600;
}

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

.skill-card {
    padding: 1.2rem;
}

.skill-card i {
    font-size: 1.5rem;
    color: #8cb1ff;
}

.skill-card h3 {
    margin: 0.7rem 0 0.35rem;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
}

.contact-list {
    margin: 1rem 0;
    display: grid;
    gap: 0.7rem;
}

.contact-item {
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.contact-item:hover {
    background: rgba(80, 130, 230, 0.2);
    transform: translateX(4px);
}

.socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: #dce8ff;
    background: rgba(80, 130, 230, 0.2);
    transition: all 0.25s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.whatsapp:hover {
    color: #25d366;
}

.social-link.instagram:hover {
    color: #e1306c;
}

.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 1.2rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(173, 197, 247, 0.2);
    padding-top: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .stat {
        grid-column: span 12;
    }

    .profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-bar {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0;
        right: 0;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(15, 30, 62, 0.96);
        padding: 0.6rem;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: all 0.25s ease;
    }

    .nav-bar ul {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-bar.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
