
/* RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* HEADER / NAVBAR */
.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}
.header--scrolled {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
}
.nav { display: flex; gap: 28px; }
.nav a {
    color: #e5e5e5;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.25s ease;
}
.nav a:hover { color: #00ff9d; }
.nav__highlight { color: #00c8ff; font-weight: 600; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; }
.logo__circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff9d, #00c8ff, #8a2be2);
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: #000;
}
.logo__text { font-size: 1.1rem; font-weight: 600; color: #fff; }

/* SECCIONES GENERALES */
.section { padding: 50px 0; }
.section--soft {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.8), rgba(2,6,23,1));
    border-top: 1px solid rgba(15,23,42,0.7);
    border-bottom: 1px solid rgba(15,23,42,0.7);
}
.section__header { margin-bottom: 25px; }
.section__title { font-size: 1.8rem; margin-bottom: 6px; }
.section__subtitle { font-size: 0.95rem; color: var(--text-muted); }

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 60px 0 40px;
}
.hero__content { display: flex; flex-direction: column; gap: 16px; }
.hero__tag {
    font-size: 0.8rem; color: var(--accent-blue);
    background: rgba(15,23,42,0.8);
    padding: 4px 10px; border-radius: var(--radius-pill);
    border: 1px solid rgba(56,189,248,0.4);
}
.hero__title { font-size: 2.4rem; font-weight: 700; }
.hero__subtitle { font-size: 0.98rem; color: var(--text-muted); max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FOTO */
.hero__photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__photo-frame {
    width: 220px; height: 220px; border-radius: 999px;
    padding: 4px;
    background: conic-gradient(from 120deg, var(--accent-purple), var(--accent-blue), var(--accent-green), var(--accent-purple));
    display: flex; justify-content: center; align-items: center;
}
.hero__img {
    width: 100%; height: 100%;
    border-radius: 999px; object-fit: cover;
    border: 4px solid #020617; background: #020617;
}

/* CV CONTENEDOR */
.cv {
    padding: 18px 16px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    background: rgba(15,23,42,0.8);
}

/* GRIDS */
.projects-grid,
.skills-grid,
.experience-grid,
.blog-grid,
.recognitions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(15,23,42,0.9);
    padding: 14px 0;
    background: rgba(2,6,23,0.95);
}
.footer__content {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero__photo { order: -1; }
    .nav { gap: 10px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
    .nav { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 0 10px; }
    .hero { padding-top: 30px; }
    .section { padding: 35px 0; }
    .section__title { font-size: 1.4rem; }
    .hero__title { font-size: 2rem; }
    .hero__photo-frame { width: 180px; height: 180px; }
    .footer__content { flex-direction: column; align-items: flex-start; }
}

/* SCROLL SUAVE */
html { scroll-behavior: smooth; }

/* MENÚ CV */
.cv-menu {
    display: flex; justify-content: center; gap: 16px;
    margin: 20px 0 40px; flex-wrap: wrap;
}
