/* ===== Manu Contrera — candombe-jazz ===== */
:root {
  --bg:        #100c0a;
  --bg-alt:    #17110d;
  --panel:     #1e1611;
  --ink:       #f4ece1;
  --muted:     #b6a794;
  --faint:     #7a6b5c;
  --ember:     #e6863a;   /* brasa / candombe */
  --ember-2:   #c8412f;   /* rojo tambor */
  --line:      rgba(244,236,225,.10);
  --maxw:      1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Friso decorativo (tambores, teclado, notas) reutilizado en varias secciones —
     ver ".bg-deco" más abajo. Un solo dibujo ancho; cada sección muestra un
     recorte distinto vía background-position-x. */
  --deco-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3200 320'%3E%3Cdefs%3E%3Cg id='note'%3E%3Cellipse cx='0' cy='0' rx='7' ry='5' transform='rotate(-18)' fill='%23e6863a'/%3E%3Cline x1='6.6' y1='-1.8' x2='6.6' y2='-36' stroke='%23e6863a' stroke-width='1.5'/%3E%3Cpath d='M6.6,-36 q13,4 9,20' fill='none' stroke='%23e6863a' stroke-width='1.5'/%3E%3C/g%3E%3Cg id='drum'%3E%3Ccircle cx='0' cy='0' r='38' fill='none' stroke='%23e6863a' stroke-width='1.6'/%3E%3Ccircle cx='0' cy='0' r='24' fill='none' stroke='%23e6863a' stroke-width='1.1'/%3E%3Cline x1='21.7' y1='12.5' x2='32.1' y2='18.5' stroke='%23e6863a' stroke-width='1'/%3E%3Cline x1='0' y1='25' x2='0' y2='37' stroke='%23e6863a' stroke-width='1'/%3E%3Cline x1='-21.7' y1='12.5' x2='-32.1' y2='18.5' stroke='%23e6863a' stroke-width='1'/%3E%3Cline x1='-21.7' y1='-12.5' x2='-32.1' y2='-18.5' stroke='%23e6863a' stroke-width='1'/%3E%3Cline x1='0' y1='-25' x2='0' y2='-37' stroke='%23e6863a' stroke-width='1'/%3E%3Cline x1='21.7' y1='-12.5' x2='32.1' y2='-18.5' stroke='%23e6863a' stroke-width='1'/%3E%3C/g%3E%3Cg id='drums3'%3E%3Cuse href='%23drum' transform='translate(50,50) scale(0.65)'/%3E%3Cuse href='%23drum' transform='translate(150,50) scale(0.85)'/%3E%3Cuse href='%23drum' transform='translate(270,50) scale(1.1)'/%3E%3C/g%3E%3Cg id='keys'%3E%3Cg fill='none' stroke='%23e6863a' stroke-width='1.5'%3E%3Crect x='0' y='0' width='190' height='50'/%3E%3Cline x1='19' y1='0' x2='19' y2='50'/%3E%3Cline x1='38' y1='0' x2='38' y2='50'/%3E%3Cline x1='57' y1='0' x2='57' y2='50'/%3E%3Cline x1='76' y1='0' x2='76' y2='50'/%3E%3Cline x1='95' y1='0' x2='95' y2='50'/%3E%3Cline x1='114' y1='0' x2='114' y2='50'/%3E%3Cline x1='133' y1='0' x2='133' y2='50'/%3E%3Cline x1='152' y1='0' x2='152' y2='50'/%3E%3Cline x1='171' y1='0' x2='171' y2='50'/%3E%3C/g%3E%3Cg fill='%23e6863a'%3E%3Crect x='11' y='0' width='9' height='30'/%3E%3Crect x='30' y='0' width='9' height='30'/%3E%3Crect x='68' y='0' width='9' height='30'/%3E%3Crect x='87' y='0' width='9' height='30'/%3E%3Crect x='106' y='0' width='9' height='30'/%3E%3Crect x='144' y='0' width='9' height='30'/%3E%3Crect x='163' y='0' width='9' height='30'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23note' transform='translate(100,90)'/%3E%3Cuse href='%23drum' transform='translate(320,70) scale(0.7)'/%3E%3Cuse href='%23keys' transform='translate(520,210)'/%3E%3Cuse href='%23drums3' transform='translate(900,0)'/%3E%3Cuse href='%23note' transform='translate(1470,70) scale(0.9)'/%3E%3Cuse href='%23keys' transform='translate(1720,205)'/%3E%3Cuse href='%23drum' transform='translate(2070,60) scale(0.9)'/%3E%3Cuse href='%23note' transform='translate(2320,80)'/%3E%3Cuse href='%23drums3' transform='translate(2600,0)'/%3E%3Cuse href='%23note' transform='translate(3060,70) scale(0.8)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
em { font-style: italic; color: var(--muted); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(16,12,10,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-weight: 900; font-size: 1.15rem;
  letter-spacing: .01em; margin-right: auto;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.lang {
  appearance: none; -webkit-appearance: none;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a89a92'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23a89a92' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right .55rem center / .7rem;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem 1.5rem .3rem .7rem; font: inherit; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.lang:hover { color: var(--ink); border-color: var(--ember); }
.lang option { background: #1a1512; color: var(--ink); }
.menu-toggle {
  display: none; width: 2.5rem; height: 2.5rem; padding: .55rem;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; margin: .28rem 0; background: currentColor; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: .7rem; }
  .menu-toggle { display: block; order: 2; }
  .lang { order: 3; }
  .nav {
    display: none; order: 4; width: 100%; padding: .5rem 0 .25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem;
  }
  .nav.is-open { display: grid; }
  .nav a { padding: .45rem 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 12vw, 9rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
}
/* Capa para una foto real del hero (opcional). Sin foto, es invisible y no
   cambia nada — cuando haya una, poner en el HTML:
   <div class="hero-photo" style="background-image:url('img/manu-hero.jpg')"></div>
   El duotono cálido integra cualquier foto a la paleta ámbar/brasa del sitio. */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: 25% 25%;
  filter: grayscale(1) sepia(.3) contrast(1.05) brightness(.6);
}
.hero-photo::after {
  /* Sujeto (Manu) queda a la izquierda de la foto: oscurecemos la DERECHA
     (donde va el texto) y dejamos la izquierda más despejada para que se vea. */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(260deg, rgba(16,12,10,.95) 0%, rgba(16,12,10,.6) 45%, rgba(16,12,10,.25) 100%),
    radial-gradient(60% 60% at 85% 90%, rgba(230,134,58,.2), transparent 70%);
}
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 90%; z-index: 1;
  background: radial-gradient(60% 60% at 70% 20%, rgba(230,134,58,.22), transparent 70%),
              radial-gradient(50% 50% at 20% 10%, rgba(200,65,47,.16), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 0 0 auto;
  text-align: right;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem;
  color: var(--ember); font-weight: 600; margin: 0 0 1.2rem;
}
.hero-name {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.6rem, 14vw, 10rem); line-height: .9;
  margin: 0; letter-spacing: -.02em;
}
.hero-tagline {
  max-width: 34ch; color: var(--muted); margin-left: auto;
  font-size: clamp(1rem, 2.2vw, 1.25rem); margin-top: 1.6rem; margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.hero-loc { color: var(--faint); font-size: .9rem; margin-top: 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  color: #170d06; box-shadow: 0 8px 30px -8px rgba(230,134,58,.5);
}
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(230,134,58,.65); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }

/* ---- Social proof ---- */
.proof {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-alt);
}
.proof-label {
  text-align: center; color: var(--faint);
  text-transform: uppercase; letter-spacing: .2em; font-size: .68rem;
  margin: 0 0 1rem;
}
.proof-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.6rem;
}
.proof-list li {
  font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 600; color: var(--muted); opacity: .85;
}

/* ---- Sections ---- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
}
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2.6rem; }
.section h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; letter-spacing: -.01em;
}
.section-sub { color: var(--muted); margin: .5rem 0 0; font-size: 1.05rem; }

/* ---- Listen ---- */
.listen-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 820px) { .listen-grid { grid-template-columns: 1fr; } }
.spotify-embed iframe { display: block; }
.disco h3, .lineup h3, .disco-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 1.1rem;
}
.disco-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.disco-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.disco-name { font-weight: 500; }
.disco-year { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .9rem; }
.disco-sub { margin-top: 2rem; font-size: 1.05rem; opacity: .9; }
.disco-list-compact li { padding: .6rem 0; }
.disco-list-compact .disco-name { font-weight: 400; color: var(--muted); }
.disco-list-compact .disco-name em { color: var(--faint); }
.platform-links { display: flex; gap: 1.4rem; }
.platform-links a { color: var(--ember); font-weight: 600; font-size: .92rem; }
.platform-links a:hover { text-decoration: underline; }
.track-link { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; }
.track-link:hover .disco-name { color: var(--ember); }
.track-platform { color: var(--ember); font-size: .72rem; font-weight: 600; white-space: nowrap; }

/* ---- Videos ---- */
.video-section { margin-top: clamp(3.5rem, 8vw, 6rem); }
.video-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.video-head h3 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.video-card { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--panel); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .3s; }
.video-card:hover .video-thumb img { transform: scale(1.025); opacity: .82; }
.video-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding-left: .15rem; border-radius: 50%; background: rgba(16,12,10,.78); color: var(--ink); }
.video-title { margin-top: .35rem; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.video-meta { color: var(--faint); font-size: .78rem; }
.youtube-more { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.youtube-more p { color: var(--muted); margin: 0 0 .7rem; font-size: .9rem; }
.youtube-more .platform-links { flex-wrap: wrap; }
.discog-youtube { margin-bottom: 2.5rem; }
@media (max-width: 820px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .video-head { display: block; }
  .video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- About ---- */
.about-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #241812, #140f0c);
  border: 1px solid var(--line);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.6) sepia(.2) contrast(1.05);
}
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { color: var(--muted); margin: 0 0 1.1rem; font-size: 1.05rem; }
.about-text strong { color: var(--ink); font-weight: 600; }
blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.65rem; font-weight: 600;
  color: var(--ink); margin: 1.8rem 0 0; padding-left: 1.2rem;
  border-left: 3px solid var(--ember); line-height: 1.35;
}

/* ---- Live ---- */
.shows { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.show {
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 1.05rem;
}
.show-empty { color: var(--faint); font-style: italic; }
.toured { color: var(--muted); font-size: 1rem; margin: 0 0 2.5rem; max-width: 46ch; }
.toured strong { color: var(--ink); font-weight: 600; }
.lineup { color: var(--muted); }
.lineup p { margin: .4rem 0 0; }

/* ---- Classes ---- */
.classes { max-width: 640px; position: relative; z-index: 1; }
.classes h2 { margin-bottom: 1rem; }
.classes p { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.8rem; }
.classes strong { color: var(--ink); }

/* Elemento decorativo de fondo (tambor abstracto — dos círculos concéntricos
   con las clavijas/cuerdas de tensión como marcas radiales, teclado, notas),
   muy sutil. Pedido por Manu en la reunión del 14 jul; ajustado después a
   pedido de Bru: el tambor había quedado como un barril con degradé (leía
   "tonel", no candombe) — investigado el perfil real (Wikipedia + blog de
   construcción de tamboriles: chico/repique/piano, un parche, forma de barril
   angosto en la base) y se optó por una figura más abstracta en vez de más
   literal, en la línea de las figuras simples del principio. También bajó la
   presencia: menos opacidad y solo en 3 secciones (no toda la página), para
   que aparezca esporádico y no compita con el contenido. */
.bg-deco { position: relative; overflow: hidden; }
.bg-deco::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background: var(--deco-bg) no-repeat center / auto 100%;
}
@media (max-width: 900px) { .bg-deco::before { display: none; } }

#historia::before { background-position-x: 20%; }
#clases::before   { background-position-x: 55%; }
#contacto::before { background-position-x: 85%; }

/* ---- Social / Redes ---- */
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.social-card {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.4rem 1.6rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s, transform .15s;
}
.social-card:hover { border-color: var(--ember); transform: translateY(-2px); }
.social-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.social-handle { color: var(--muted); font-size: .88rem; }

/* ---- "Leer más" / enlaces a páginas completas ---- */
.link-more {
  display: inline-block; margin-top: 1.4rem; color: var(--ember);
  font-weight: 600; font-size: .95rem;
}
.link-more:hover { text-decoration: underline; }

/* ---- Páginas de texto largo (biografía) ---- */
.prose { max-width: 65ch; }
.seo-credentials { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.seo-credentials h3 { margin: 0 0 .7rem; font-family: var(--serif); font-size: 1.3rem; }
.seo-credentials p { margin-bottom: 1rem; }
.credential-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.credential-links a { color: var(--ember); font-size: .82rem; font-weight: 600; }
.credential-links a:hover { text-decoration: underline; }

/* ---- Discografía completa ---- */
.disco-note { color: var(--faint); font-size: .85rem; margin: .2rem 0 0; }
.disco-list-full li { align-items: flex-start; }
.disco-note-standalone {
  color: var(--faint); font-size: .9rem; max-width: 50ch; margin: 1.2rem 0 0;
}
.discog-section-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem;
  margin: 3rem 0 .3rem;
}

/* ---- Contact ---- */
.contact { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  color: var(--faint); font-size: .88rem;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-made { color: var(--muted); }

/* ---- Reveal on scroll ---- */
.section, .proof { opacity: 1; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
