/* ===== Paleta y variables (cambia aquí los colores y se actualiza todo) ===== */
:root {
    --bg: #0f0e17;
    --surface: #1a1830;
    --text: #eaeaf0;
    --muted: #a3a3c2;
    --primary: #1d4ed8;
    --secondary: #06b6d4;
    --accent: #38bdf8;
    --gradient: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 50%, #06b6d4 100%);
    --max: 1100px;

    /* Tipografía */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --fs-hero: clamp(2.5rem, 6vw, 4rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.25rem);
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    /* Espaciado */
    --section-padding: clamp(4rem, 10vw, 7rem);
    --content-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.15;
    margin: 0 0 .5rem;
}

a {
    color: var(--accent);
}

/* ===== Secciones ===== */
section {
    scroll-margin-top: 80px;
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--section-padding) 1.5rem;
}

.section-contenido {
    max-width: var(--content-width);
    margin: 0 auto;
}

section h2 {
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 3rem;
}

section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 4px;
    border-radius: 4px;
    background: var(--gradient);
}

/* ===== Hero ===== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(circle at 20% 20%, rgba(29, 78, 216, .25), transparent 40%), radial-gradient(circle at 80% 30%, rgba(6, 182, 212, .25), transparent 40%);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--muted);
    margin-bottom: 2rem;
}

/* ===== Botones ===== */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-actions a {
    text-decoration: none;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hero-actions a:first-child {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(29, 78, 216, .4);
}

.hero-actions a:last-child {
    border: 1.5px solid var(--muted);
    color: var(--text);
}

.hero-actions a:hover {
    transform: translateY(-2px);
}

/* ===== UI de error de Blazor (no la borres) ===== */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, .12);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: .35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin: 0 0 .15rem;
}

.timeline-content .company {
    font-weight: 600;
    margin: 0 0 .15rem;
}

.timeline-content .period {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 0 .4rem;
}

.timeline-content .desc {
    color: var(--muted);
    margin: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

.tag {
    font-size: .8rem;
    font-weight: 500;
    padding: .3rem .7rem;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .3);
}
.tech-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category h3 {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.2rem .8rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .15s ease, border-color .15s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.tech-item i {
    font-size: 2.6rem;
    color: var(--text);
}

.tech-item span {
    font-size: .9rem;
    color: var(--text);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7; /* clave para legibilidad en tema oscuro */
}