@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #F0EDE6;
  color: #2A324B;
  overflow-x: hidden;
  cursor: none;
}

/* ── ANIMACIONES ──────────────────────────── */
@keyframes spin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes wv      { 0% { height: 4px; } 100% { height: var(--h, 20px); } }
@keyframes scrollL { 0%, 100% { width: 20px; opacity: .3; } 50% { width: 60px; opacity: 1; } }

/* ── CURSOR ───────────────────────────────── */
#cur {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  background: #114B5F;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
#ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid #927791;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, opacity .3s;
}

/* ── NAV ──────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(240, 237, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(146, 119, 145, 0.15);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1rem;
  letter-spacing: .1em; color: #114B5F;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: #2A324B; text-decoration: none;
  cursor: none; transition: color .2s;
}
.nav-links a:hover { color: #927791; }

/* ── HERO ─────────────────────────────────── */
#hero {
  min-height: 90vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 2.5rem 4rem;
}
.hero-tag {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .25em;
  text-transform: uppercase; color: #927791;
  margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; display: block; width: 30px; height: 1px; background: #927791; }
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1; color: #1a1a2e;
  margin-bottom: .5rem;
}
.hero-role {
  font-family: 'Syne', sans-serif;
  font-size: .9rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #927791; margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: .88rem; line-height: 1.75;
  max-width: 360px; opacity: .82;
  margin-bottom: 2.5rem;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #114B5F; color: white;
  font-family: 'Syne', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .9rem 1.8rem; text-decoration: none;
  cursor: none; transition: background .3s;
  width: fit-content;
}
.cta-btn:hover { background: #927791; }
.scroll-hint {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: #927791; opacity: .6;
}
.scroll-line { height: 1px; animation: scrollL 1.8s ease-in-out infinite; background: #927791; }
.hero-right {
  background: #927791;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem; padding: 2rem;
}
.vinyl {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: conic-gradient(
    #1a1a2e 0deg 2deg, #2a2a3e 2deg 4deg,
    #1a1a2e 4deg 6deg, #2a2a3e 6deg 8deg,
    #1a1a2e 8deg 10deg, #2a2a3e 10deg 12deg,
    #1a1a2e 12deg 14deg, #2a2a3e 14deg 16deg,
    #1a1a2e 16deg 360deg
  );
  position: relative;
  animation: spin 12s linear infinite;
  box-shadow: 0 0 60px rgba(17, 75, 95, .3);
}
.vinyl-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px;
  border-radius: 50%; background: #F0EDE6;
  display: flex; align-items: center;
  justify-content: center; z-index: 2; text-align: center;
}
.vinyl-label span {
  font-family: 'Syne', sans-serif;
  font-size: .4rem; font-weight: 800;
  letter-spacing: .08em; color: #114B5F; line-height: 1.4;
}
#wf { display: flex; align-items: center; gap: 3px; height: 50px; }

/* ── SOBRE MÍ ─────────────────────────────── */
#sobre {
  padding: 6rem 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  background: #1a1a2e; color: #F0EDE6;
  position: relative; overflow: hidden;
}
.sobre-bg-quote {
  position: absolute; top: -2rem; left: 2rem;
  font-family: 'DM Serif Display', serif;
  font-size: 18rem; color: rgba(146, 119, 145, .06);
  line-height: 1; pointer-events: none;
}
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: #927791;
  margin-bottom: 1.5rem;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: currentColor; }
.section-label.light { color: #C7EBF0; }
.section-label.center { justify-content: center; }
.sobre-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1; margin-bottom: 1.2rem; color: #F0EDE6;
}
.sobre-text h2 em { font-style: italic; color: #C7EBF0; }
.sobre-text p { font-size: .88rem; line-height: 1.8; opacity: .7; margin-bottom: 1rem; }
.sobre-quote {
  margin-top: 1.8rem; padding-left: 1.2rem;
  border-left: 2px solid #927791;
  font-family: 'DM Serif Display', serif;
  font-style: italic; font-size: 1rem;
  line-height: 1.6; color: #C7EBF0;
}
.stat-item {
  padding: 1.5rem;
  border: 1px solid rgba(146, 119, 145, .25);
  transition: border-color .3s, transform .3s;
}
.stat-item:hover { border-color: #927791; transform: translateX(6px); }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: #927791; line-height: 1; margin-bottom: .3rem;
}
.stat-desc { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }

/* ── HABILIDADES ──────────────────────────── */
#habilidades { padding: 6rem 2.5rem; background: #F0EDE6; }
#habilidades h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #1a1a2e; line-height: 1; margin-bottom: 3.5rem;
}
#habilidades h2 em { font-style: italic; color: #114B5F; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.skills-col-title {
  font-family: 'Syne', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: #927791; margin-bottom: 1.5rem;
}
.skill-item { margin-bottom: 1.2rem; }
.skill-label {
  display: flex; justify-content: space-between;
  font-size: .85rem; font-weight: 500;
  margin-bottom: 5px; color: #1a1a2e;
}
.skill-label span:last-child { opacity: .45; font-size: .75rem; }
.skill-bar {
  height: 2px; background: rgba(42, 50, 75, .12);
  position: relative; overflow: hidden; border-radius: 1px;
}
.skill-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: #114B5F;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.25, 1, .5, 1);
}
.skill-fill.visible { transform: scaleX(1); }
.soft-tags { display: flex; flex-wrap: wrap; gap: .65rem; }
.stag {
  padding: .45rem 1rem;
  border: 1px solid #927791;
  font-size: .78rem; color: #927791;
  letter-spacing: .04em; cursor: none;
  transition: background .2s, color .2s;
}
.stag:hover { background: #927791; color: white; }

/* ── FORMACIÓN ────────────────────────────── */
#formacion {
  padding: 6rem 2.5rem;
  background: #114B5F; color: #F0EDE6;
}
#formacion h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1; margin-bottom: 3.5rem; color: #F0EDE6;
}
#formacion h2 em { font-style: italic; color: #C7EBF0; }
.timeline {
  position: relative; padding-left: 2.2rem;
  border-left: 1px solid rgba(199, 235, 240, .25);
}
.t-item { position: relative; padding-bottom: 2.5rem; }
.t-dot {
  position: absolute; left: -2.6rem; top: .3rem;
  width: 10px; height: 10px;
  border-radius: 50%; background: #927791;
  border: 2px solid #F0EDE6;
}
.t-year { font-size: .7rem; letter-spacing: .2em; color: #C7EBF0; opacity: .7; margin-bottom: .3rem; }
.t-title {
  font-family: 'Syne', sans-serif;
  font-size: .95rem; font-weight: 700;
  margin-bottom: .25rem;
}
.t-org { font-size: .78rem; color: #C7EBF0; opacity: .75; margin-bottom: .5rem; }
.t-desc { font-size: .84rem; line-height: 1.7; opacity: .6; max-width: 520px; }

/* ── PROYECTOS ────────────────────────────── */
#proyectos { padding: 6rem 2.5rem; background: #F0EDE6; }
#proyectos h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #1a1a2e; line-height: 1; margin-bottom: 2.5rem;
}
#proyectos h2 em { font-style: italic; color: #927791; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.project-link {
  font-family: 'Syne', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: .6rem;
  transform: translateY(8px); opacity: 0;
  transition: transform .3s, opacity .3s;
}
.project-card:hover .project-link { transform: none; opacity: 1; }
.project-card {
  position: relative; overflow: hidden;
  background: #1a1a2e; min-height: 230px;
  border-radius: 2px;
  transition: transform .4s cubic-bezier(.25, 1, .5, 1);
  cursor: none;
  display: block;
}
.project-card:hover { transform: translateY(-6px); }
.project-bg {
  position: absolute; inset: 0; opacity: .88;
  transition: transform .6s cubic-bezier(.25, 1, .5, 1);
}
.project-card:hover .project-bg { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.95) 0%, rgba(26,26,46,.25) 60%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.4rem;
}
.project-tag {
  font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: #C7EBF0;
  margin-bottom: .4rem; opacity: .8;
}
.project-name {
  font-family: 'Syne', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: white; margin-bottom: .35rem;
}
.project-desc {
  font-size: .78rem; color: rgba(255,255,255,.58);
  line-height: 1.5;
  transform: translateY(8px); opacity: 0;
  transition: transform .3s, opacity .3s;
}
.project-card:hover .project-desc { transform: none; opacity: 1; }

/* ── CONTACTO ─────────────────────────────── */
#contacto {
  padding: 6rem 2.5rem;
  background: #1a1a2e; color: #F0EDE6;
  text-align: center; position: relative; overflow: hidden;
}
.contacto-glow {
  position: absolute; bottom: -15rem; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(146,119,145,.18) 0%, transparent 70%);
  pointer-events: none;
}
#contacto h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05; margin-bottom: 1.2rem;
}
#contacto h2 em { font-style: italic; color: #927791; }
#contacto p {
  max-width: 440px; margin: 0 auto 2.5rem;
  font-size: .88rem; line-height: 1.75; opacity: .62;
}
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.clink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: white; text-decoration: none;
  padding: .9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .3s, border-color .3s;
  cursor: none;
}
.clink:hover { border-color: #927791; background: #927791; }
.clink.primary { background: #927791; border-color: #927791; }
.clink.primary:hover { background: #114B5F; border-color: #114B5F; }

/* ── FOOTER ───────────────────────────────── */
footer {
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(240,237,230,.28);
  font-size: .72rem; letter-spacing: .08em;
}