/* ── VARIABLES ── */
:root {
  --pro-bg: #ffffff;
  --pro-surface: #f8f7ff;
  --pro-accent: #7f77dd;
  --pro-accent-strong: #534ab7;
  --pro-title: #26215c;
  --pro-secondary: #5f5d58;
  --pro-border: #e8e6ff;

  --music-bg: #000000;
  --music-surface: #111111;
  --music-red: #ff2020;
  --music-red-strong: #cc0000;
  --music-text: #ffffff;
  --music-border: #333333;
  --music-secondary: #888888;
  --music-muted: #555555;
  --music-dim: #444444;

  --font-pro: 'Syne', sans-serif;
  --font-music: 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { font-family: var(--font-body); background: var(--pro-bg); color: var(--pro-title); overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pro-border);
  transition: box-shadow 0.3s;
}

.navbar--scrolled {
  box-shadow: 0 2px 20px rgba(83,74,183,0.08);
}

.navbar-inner {
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
}

.nav-logo {
  font-family: var(--font-pro);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pro-title);
}

.nav-logo span { color: var(--pro-accent); }

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--pro-border);
  color: var(--pro-secondary);
  padding: .3rem .75rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-pro);
  cursor: pointer;
  letter-spacing: .08em;
  transition: border-color 0.2s, color 0.2s;
  min-height: 32px;
}

.lang-toggle:hover {
  border-color: var(--pro-accent);
  color: var(--pro-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  color: var(--pro-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--pro-title); }

.nav-links a.nav-cta {
  background: var(--pro-accent-strong);
  color: white;
  padding: .35rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--pro-title); color: white; }

.nav-links a[aria-current="page"] {
  color: var(--pro-accent);
  font-weight: 600;
}


@keyframes title-glitch {
  /* glitch inicial — arranca inmediato */
  0%    { transform: translate(-6px,0) skewX(-6deg);  text-shadow: 14px 0 #ff0040, -14px 0 #00e5ff, 0 0 70px rgba(255,255,255,0.9); filter: brightness(2.2); }
  1.5%  { transform: translate(8px,0) skewX(5deg);    text-shadow: -18px 0 #00e5ff, 18px 0 #ff0040, 0 0 100px #fff; filter: brightness(2.5); }
  3%    { transform: translate(-4px,0);                text-shadow: 10px 0 #ff0040, -7px 0 #00e5ff; filter: brightness(1.6); }
  5%    { transform: translate(0,0); text-shadow: 0 2px 30px rgba(0,0,0,0.6); filter: brightness(1); }

  /* flicker neón */
  15%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
  16%   { filter: brightness(1.5); text-shadow: 0 0 30px rgba(255,255,255,0.5), 0 2px 30px rgba(0,0,0,0.6); }
  17%   { filter: brightness(0.65); }
  18%   { filter: brightness(1.4); }
  19%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }

  /* glitch medio */
  28%   { transform: translate(0,0); filter: brightness(1); }
  29%   { transform: translate(-8px,1px) skewX(-9deg);  text-shadow: 20px 0 #ff0040, -20px 0 #00e5ff, 0 0 100px rgba(255,255,255,0.9); filter: brightness(2.4); }
  30%   { transform: translate(9px,-1px) skewX(7deg);   text-shadow: -22px 0 #00e5ff, 22px 0 #ff0040; filter: brightness(2.6); }
  31%   { transform: translate(-5px,0) skewX(-4deg);    text-shadow: 14px 0 #ff0040, -10px 0 #00e5ff; filter: brightness(1.8); }
  32%   { transform: translate(0,0); text-shadow: 0 2px 30px rgba(0,0,0,0.6); filter: brightness(1); }

  /* apagón y fogonazo */
  45%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
  46%   { filter: brightness(0.25); text-shadow: none; }
  47%   { filter: brightness(2.2); text-shadow: 0 0 50px rgba(255,30,30,0.7), 0 0 90px rgba(255,255,255,0.5); }
  48%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }

  /* doble flicker rápido */
  58%   { filter: brightness(1); }
  59%   { filter: brightness(0.5); }
  59.5% { filter: brightness(1.6); text-shadow: 0 0 25px rgba(255,255,255,0.45); }
  60%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }

  /* glitch grande */
  70%   { transform: translate(0,0); filter: brightness(1); }
  71%   { transform: translate(-9px,2px) skewX(-10deg); text-shadow: 22px 0 #ff0040, -22px 0 #00e5ff, 0 0 120px rgba(255,255,255,0.9); filter: brightness(2.8); }
  72%   { transform: translate(10px,-2px) skewX(8deg);  text-shadow: -25px 0 #00e5ff, 25px 0 #ff0040, 0 0 140px #fff; filter: brightness(3); }
  73%   { transform: translate(-6px,0) skewX(-5deg);    text-shadow: 16px 0 #ff0040, -12px 0 #00e5ff; filter: brightness(2); }
  74%   { transform: translate(0,0); text-shadow: 0 0 20px rgba(255,32,32,0.4), 0 2px 30px rgba(0,0,0,0.6); filter: brightness(1); }

  /* flicker de cierre */
  85%   { filter: brightness(1); }
  86%   { filter: brightness(1.6); text-shadow: 0 0 30px rgba(255,255,255,0.45); }
  87%   { filter: brightness(0.7); }
  88%   { filter: brightness(1.3); }
  89%   { filter: brightness(1); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }

  100%  { transform: translate(0,0); text-shadow: 0 2px 30px rgba(0,0,0,0.6); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .transicion-title { animation: none; }
  .transicion-arrow { animation: none; }
  .hero-scroll-line { animation: none; }
  .tl-fill { transition: none; }
  .hero-tag.reveal,
  .hero-subtitle.reveal,
  .hero-ctas.reveal { animation: none; opacity: 1; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--pro-bg);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
  z-index: 1;
}

.hero-scroll-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--pro-accent), transparent);
  animation: scroll-drop 1.9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scroll-drop {
  0%   { transform: translateY(-100%); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}


.hero-tag {
  font-size: .85rem;
  font-weight: 500;
  color: var(--pro-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-pro);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--pro-title);
  line-height: 1.0;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title.typing { opacity: 1; position: relative; }

.hero-title.typing::after {
  content: '|';
  color: var(--pro-accent);
  font-weight: 300;
  position: absolute;
  animation: cursor-blink 0.65s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-title.typing-done::after { display: none; }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--pro-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: min(480px, 58ch);
  opacity: 0;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; }

/* reveal staggered */
.hero-tag.reveal     { animation: fade-blur-up 1s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-subtitle.reveal{ animation: fade-blur-up 1s cubic-bezier(0.16,1,0.3,1) forwards 0.25s; }
.hero-ctas.reveal    { animation: fade-blur-up 1s cubic-bezier(0.16,1,0.3,1) forwards 0.55s; }

@keyframes fade-blur-up {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pro-title);
  color: var(--pro-title);
  padding: .85rem 2rem;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  background: linear-gradient(to top, var(--pro-title) 50%, transparent 50%);
  background-size: 100% 210%;
  background-position: top;
  transition: background-position 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.btn-primary:hover {
  background-position: bottom;
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pro-border);
  color: var(--pro-title);
  padding: .85rem 2rem;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover { border-color: var(--pro-accent); transform: translateY(-2px); }

/* ── SECCIONES BASE ── */
section { padding: 6rem 0; }

.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--pro-accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-pro);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pro-title);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ── SOBRE MÍ ── */
#sobre-mi,
#proyectos,
#contacto {
  scroll-margin-top: 64px;
}

.sobre-mi {
  background: var(--pro-surface);
  position: relative;
  min-height: 100vh;
  padding-bottom: 6rem;
}

.sobre-mi-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.sobre-mi-photo {
  position: sticky;
  top: 100px;
}

.perfil-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 6px 6px 0 var(--pro-accent);
}

@media (max-width: 900px) {
  .sobre-mi-layout {
    grid-template-columns: 1fr;
  }
  .sobre-mi-photo {
    position: static;
    order: -1;
    max-width: 240px;
    margin: 0 auto 2.5rem;
  }
  .perfil-img {
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--pro-accent);
  }
}

.sobre-mi-text {
  font-size: 1.1rem;
  color: var(--pro-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2rem;
}

.skills-tags { display: flex; flex-direction: column; gap: 0; }

.skills-group { margin-bottom: 1rem; }

.skills-category {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pro-secondary);
  margin-bottom: .5rem;
}

.skills-group-tags { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── TIMELINE ── */
.timeline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
  max-width: 520px;
}

.tl-start, .tl-end {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  white-space: nowrap;
}

.tl-year {
  font-family: var(--font-pro);
  font-size: .82rem;
  font-weight: 700;
  color: var(--pro-accent);
  letter-spacing: .05em;
}

.tl-end .tl-year { color: var(--pro-title); }

.tl-desc {
  font-size: .68rem;
  color: var(--pro-secondary);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

.tl-track {
  flex: 1;
  height: 1px;
  background: var(--pro-border);
  position: relative;
}

.tl-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(to right, var(--pro-accent), var(--pro-title));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline.tl-animated .tl-fill { width: 100%; }

.tl-mid-node {
  position: absolute;
  left: 45.5%;
  top: 50%;
  transform: translate(-50%, -3px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-mid-node::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pro-accent);
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.tl-mid-year {
  font-family: var(--font-pro);
  font-size: .7rem;
  font-weight: 700;
  color: var(--pro-secondary);
  letter-spacing: .04em;
  white-space: nowrap;
}

.tl-mid-desc {
  font-size: .6rem;
  color: var(--pro-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  background: white;
  border: 1px solid var(--pro-border);
  color: var(--pro-accent-strong);
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.tag:hover { background: var(--pro-accent); color: white; border-color: var(--pro-accent); }

/* ── PROYECTOS ── */
.proyectos { background: var(--pro-bg); }

.proyectos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.proyectos-header .section-title { margin-bottom: 0; }

.slider-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-bottom: 0.2rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--pro-border);
  background: transparent;
  color: var(--pro-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.slider-btn:hover:not(:disabled) {
  border-color: var(--pro-accent);
  color: var(--pro-accent);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.proyectos-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}

.proyectos-grid::-webkit-scrollbar { display: none; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--pro-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.dot--active {
  background: var(--pro-accent-strong);
  transform: scale(1.5);
}

.proyecto-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(28px);
  flex: 0 0 420px;
  scroll-snap-align: start;
}

@media (max-width: 540px) {
  .proyecto-card { flex: 0 0 85vw; }
}

.proyecto-card.card-visible {
  animation: card-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .proyecto-card { opacity: 1; transform: none; }
}

.proyecto-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(83,74,183,0.1); }

.proyecto-img { height: 220px; background: var(--pro-bg); }

.proyecto-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; }

.proyecto-info h3 {
  font-family: var(--font-pro);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pro-title);
  margin-bottom: .5rem;
}

.proyecto-info p { font-size: .9rem; color: var(--pro-secondary); margin-bottom: 1rem; line-height: 1.6; }

.card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}

.card-badge--practice {
  background: transparent;
  color: var(--pro-secondary);
  border: 1px solid var(--pro-border);
}

.card-badge--real {
  background: var(--pro-accent-strong);
  color: white;
  border: 1px solid var(--pro-accent-strong);
}

.card-num {
  position: absolute;
  top: 0.4rem;
  right: 0.75rem;
  font-family: var(--font-pro);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--pro-title);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.proyecto-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.tag-small {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  color: var(--pro-accent-strong);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 500;
}

.proyecto-link { font-size: .9rem; font-weight: 600; color: var(--pro-accent); transition: color 0.2s; }
.proyecto-link:hover { color: var(--pro-accent-strong); }

.transicion {
  position: relative;
  text-align: center;
  min-height: 100vh;
  padding: 0 0 5rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0) 18%,
      rgba(0,0,0,0.1) 50%,
      rgba(0,0,0,0.85) 82%,
      rgba(0,0,0,1) 100%
    ),
    url('img/hitten-publico.jpg') center/cover no-repeat;
}

.transicion .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.transicion-title {
  font-family: var(--font-music);
  font-size: clamp(5rem, 14vw, 11rem);
  color: var(--music-text);
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: .75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  animation: title-glitch 3s infinite;
}

.transicion-bienvenido {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: .03em;
  margin-bottom: .75rem;
}

.transicion-subtitle {
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.48);
  max-width: 400px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.transicion-arrow {
  font-size: 2rem;
  color: var(--music-red);
  display: block;
  animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}


/* ── DISEÑO MUSICAL ── */
.loudamps-design {
  background: var(--music-bg);
  padding: 0;
}

.design-intro {
  padding: 4rem 0;
  border-bottom: 1px solid var(--music-border);
}

.design-eyebrow {
  display: block;
  font-family: var(--font-music);
  font-size: .85rem;
  color: var(--music-red);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.design-section-title {
  font-family: var(--font-music);
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--music-text);
  letter-spacing: .04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.design-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 3rem;
}

.design-intro .stats {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.loudamps-design .container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.design-categories {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.design-cat-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--music-red);
  margin-bottom: 1rem;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.design-grid--3 { grid-template-columns: repeat(3, 1fr); }

.design-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }

.design-img {
  height: 280px;
  background: var(--music-surface);
  border: 1px solid var(--music-border);
  border-radius: 8px;
  transition: transform 0.3s;
}

.design-img--web   { height: 220px; }
.design-img--vinyl {
  height: auto;
  aspect-ratio: 1 / 1;
}

.design-item:hover .design-img { transform: scale(1.03); }

.design-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.design-item-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  padding: 0 .25rem;
}

.design-tag {
  font-size: .72rem;
  font-weight: 500;
  color: var(--music-red);
  border: 1px solid var(--music-border);
  padding: .2rem .55rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

.design-label {
  display: block;
  font-family: var(--font-music);
  font-size: 1.1rem;
  color: var(--music-text);
  letter-spacing: .06em;
  margin-top: .6rem;
  padding: 0 .25rem;
}

.design-sublabel {
  display: block;
  font-size: .75rem;
  color: var(--music-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 .25rem;
  margin-top: .2rem;
}

.design-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon {
  font-family: var(--font-music);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--music-dim);
  opacity: .6;
}

/* ── CONTACTO ── */
/* ── CONTACTO PRO ── */
.contacto-pro {
  background: var(--pro-surface);
  border-top: 1px solid var(--pro-border);
  text-align: center;
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-pro-title {
  font-family: var(--font-pro);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--pro-title);
  margin-bottom: .75rem;
}

.contacto-pro-desc {
  font-size: 1rem;
  color: var(--pro-secondary);
  margin-bottom: 2.5rem;
  max-width: min(480px, 58ch);
  margin-inline: auto;
}

.contacto-pro-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.contacto-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--pro-border);
  color: var(--pro-title);
  padding: .75rem 1.8rem;
  min-height: 44px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.contacto-pro-btn:hover { border-color: var(--pro-accent); color: var(--pro-accent); }

/* ── CONTACTO FINAL (cierre narrativo, paleta negra) ── */
.contacto {
  background: var(--music-bg);
  border-top: 1px solid var(--music-border);
  text-align: center;
  padding: 6rem 0 3rem;
}

.contacto-title {
  font-family: var(--font-music);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--music-red);
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

.contacto-desc { font-size: 1rem; color: var(--music-secondary); margin-bottom: 2.5rem; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--music-border);
  color: var(--music-secondary);
  padding: .75rem 1.8rem;
  min-height: 44px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  margin-top: .5rem;
}

.back-to-top:hover { border-color: var(--music-red); color: var(--music-red); }

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--music-border);
  text-align: center;
}

.footer p { font-size: .8rem; color: var(--music-dim); }

/* ── STATS ── */
.stats {
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--music-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.stat-number {
  font-family: var(--font-music);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--music-red);
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* Bebas Neue no tiene el glifo ∞ — forzar fuente con soporte completo */
.stat[data-static="∞"] .stat-number {
  font-family: 'DM Sans', Arial, sans-serif;
}

.stat-label {
  font-size: .85rem;
  color: var(--music-text);
  line-height: 1.4;
  max-width: 180px;
  opacity: 0.7;
}

/* ── PROYECTO IMG / ENLACES DOBLES ── */
.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

.proyecto-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.proyecto-link-secondary {
  font-size: .9rem;
  font-weight: 600;
  color: var(--pro-secondary);
  transition: color 0.2s;
}

.proyecto-link-secondary:hover { color: var(--pro-accent); }

/* ── VINYL SLIDER DOTS (solo en mobile) ── */
.slider-dots--vinyl { display: none; }

@media (max-width: 900px) {
  .slider-dots--vinyl {
    display: flex;
    margin-top: 1.25rem;
  }
  .slider-dots--vinyl .dot { background: var(--music-muted); }
  .slider-dots--vinyl .dot--active {
    background: var(--music-red);
    transform: scale(1.5);
  }
}

/* ── SECCIÓN PRÓXIMAMENTE ── */
.section-soon {
  font-family: var(--font-music);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--music-muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  padding: 3rem 0;
}


/* ── CURSOR PERSONALIZADO (zona oscura) ── */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--music-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}

.custom-cursor.is-active { opacity: 1; }

/* ── ACCESIBILIDAD ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pro-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── HAMBURGUESA ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pro-title);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animación a X cuando el menú está abierto */
.navbar.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.navbar.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .navbar-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pro-border);
    padding: 1rem 0;
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .85rem 2rem;
    font-size: 1rem;
    text-align: center;
  }

  .nav-links a.nav-cta {
    background: none;
    color: var(--pro-secondary);
    padding: .85rem 2rem;
    border-radius: 0;
    font-weight: 500;
  }

  .design-grid,
  .design-grid--4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }

  section { padding: 4rem 0; }
  .sobre-mi { min-height: auto; padding-bottom: 7rem; }
  .contacto-pro { min-height: 100vh; padding: 5rem 0; }
  .loudamps-design .container { padding-top: 3rem; padding-bottom: 3rem; }

  .design-grid--3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .design-grid--3::-webkit-scrollbar { display: none; }
  .design-grid--3 .design-item {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .proyecto-links { gap: .75rem; }
}
