:root {
    --bg: #05050a;
    --bg-alt: #0b0b15;
    --card: #101020;
    --accent: #5b8cff;
    --accent-soft: rgba(91, 140, 255, 0.15);
    --text: #f5f5f5;
    --muted: #a0a0b8;
    --border: #2a2a40;
    --radius: 16px;
    --shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #151530 0, #05050a 45%, #000 100%);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* UTILIDADES */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.03em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--muted);
}

/* NAVBAR */

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0.95), rgba(5, 5, 10, 0.7));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 0%, #9cb4ff, #5b8cff);
    color: #05050a;
    font-weight: 800;
    font-size: 0.9rem;
}

.navbar nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.navbar nav a {
    color: var(--muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease-out;
}

.navbar nav a:hover {
    color: var(--text);
}

.navbar nav a:hover::after {
    width: 100%;
}

/* HERO */

.hero {
    padding: 6rem 0 4rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #4ade80;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero h1 span {
    background: linear-gradient(120deg, #9cb4ff, #5b8cff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn.primary {
    background: var(--accent);
    color: #05050a;
    border-color: var(--accent);
    box-shadow: 0 12px 25px rgba(91, 140, 255, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(91, 140, 255, 0.45);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* HERO CARD */

.hero-card {
    background: radial-gradient(circle at top left, #151540, #050510);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card h2 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.5rem;
}

/* SOBRE MI */

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2.5rem;
}

.info-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.info-card li + li {
    margin-top: 0.35rem;
}

/* SKILLS */

.skills-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skill-block {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
}

.skill-block h3 {
    margin-bottom: 0.5rem;
}

.skill-block ul {
    list-style: none;
    font-size: 0.95rem;
}

.skill-block li::before {
    content: "• ";
    color: var(--accent);
}

/* PROYECTOS */

.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
    background: radial-gradient(circle at top left, rgba(91, 140, 255, 0.06), #050510);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.project-link {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--accent);
}

.project-link:hover {
    text-decoration: underline;
}

/* TIMELINE */

.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 0.4rem;
    padding-left: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.55rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

/* CONTACTO */

.contact-grid {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-grid a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-grid a:hover {
    text-decoration: underline;
}

/* FOOTER */

.footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    gap: 1rem;
}

.footer-note {
    opacity: 0.8;
}

/* RESPONSIVE */

@media (max-width: 820px) {
    .hero-content,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 5rem;
    }

    .nav-content {
        justify-content: space-between;
    }

    .navbar nav {
        display: none; /* si querés menú hamburguesa, después lo agregamos */
    }
}
