/* =========================================================
   TD PRODUCER — Landing
   Paleta: la misma que tenía en Tilda (negro / blancos / grises),
   con el azul que ya usaba como línea bajo "TD Productor musical"
   (#2e3f7f) llevado a acento utilizable en botones y resplandores.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --charcoal: #0a0a0a;
  --charcoal-2: #0d0d0d;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.15);
  --white: #ffffff;
  --muted: #a8a8a8;
  --muted-2: #737373;

  /* acento heredado del divisor original de Tilda (#2e3f7f), aclarado */
  --accent: #4d63c9;
  --accent-light: #8296ff;
  --accent-dim: #2e3f7f;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Tipografía ---------- */

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px 2px var(--accent-light);
}

.h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 700;
}
.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
}
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- Layout general ---------- */

section { padding: clamp(64px, 9vw, 108px) 0; position: relative; }
.bg-black { background: var(--black); }
.bg-charcoal { background: var(--charcoal-2); }
.bg-surface { background: linear-gradient(180deg, var(--charcoal-2), var(--black)); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  border: 0;
  margin: 0;
}

/* resplandor sutil de fondo, siempre con el mismo azul */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(0,0,0,0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 34px -12px rgba(255,255,255,.28);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 44px -10px rgba(255,255,255,.42); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.cta-note {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 12px;
}
.cta-note .dot { margin: 0 8px; opacity: .5; }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(120px, 16vw, 168px);
  padding-bottom: clamp(56px, 8vw, 88px);
  text-align: center;
  overflow: hidden;
}
.hero .glow-a { width: 620px; height: 620px; top: -260px; left: 50%; transform: translateX(-60%); background: var(--accent); }
.hero .glow-b { width: 460px; height: 460px; bottom: -220px; right: 8%; background: var(--accent-dim); opacity: .25; }

.hero-inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; }
.hero .kicker { justify-content: center; margin-bottom: 22px; }
.hero .h1 { margin-bottom: 20px; }
.hero .lede { margin-inline: auto; margin-bottom: 40px; }

.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,.02);
  background: var(--charcoal);
}
.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-ratio img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62);
}
.video-ratio iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.play-circle {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), background .25s;
  box-shadow: 0 10px 40px -6px rgba(0,0,0,.6);
}
.play-btn:hover .play-circle { transform: scale(1.08); background: var(--white); }
.play-circle svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--black); }
.play-label {
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.video-duration {
  position: absolute;
  bottom: 14px; right: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.hero-actions { display: flex; flex-direction: column; align-items: center; }

/* ---------- Franja CTA (bloque 2, "Haz que tu música...") ---------- */

.cta-strip { text-align: center; }
.cta-strip .h2 { margin-inline: auto; max-width: 720px; }
.cta-strip .lede { margin-inline: auto; margin-top: 16px; margin-bottom: 34px; }
.cta-strip .glow { width: 520px; height: 520px; top: 20%; left: 50%; transform: translateX(-50%); background: var(--accent); opacity: .18; }

/* Foto real a pantalla completa, nítida - no de fondo detrás del texto,
   sino su propio bloque debajo del CTA. Mismo tratamiento que .video-frame
   para que se sienta parte de la misma familia visual. */
.photo-reveal {
  max-width: 860px;
  margin: 44px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,.02);
  aspect-ratio: 3 / 2;
  background: var(--charcoal);
}
.photo-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  display: block;
}
.photo-reveal.pos-high img { object-position: 50% 18%; }

/* ---------- Grid de servicios ---------- */

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--white); }
.card h3 { margin-bottom: 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Proyectos reales (Spotify) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}
.chip {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,.35); }
.chip.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.grid-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity .25s, transform .25s;
}
.track-card iframe { display: block; width: 100%; height: 152px; border: 0; }
.track-genre-label {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
}
.track-card.is-hidden { display: none; }

/* ---------- Testimonios ---------- */

.grid-testi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-quote {
  font-size: 15.5px;
  line-height: 1.55;
  color: #e9e9e9;
}
.testi-quote::before { content: open-quote; }
.testi-quote::after { content: close-quote; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--white);
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 14.5px; }
.testi-role { font-size: 13px; color: var(--muted-2); }

/* ---------- Bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.bio-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  aspect-ratio: 3 / 4;
  background: var(--surface);
  position: relative;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
}
.bio-text p { color: var(--muted); line-height: 1.7; font-size: 15.5px; margin: 0 0 18px; }
.bio-text .kicker { margin-bottom: 6px; }
.bio-text .h2 { margin-bottom: 22px; }

/* ---------- A medida (urbano/cristiano/alternativo) ---------- */

.grid-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.fit-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--charcoal-2);
}
.fit-card .card-icon { background: rgba(255,255,255,0.05); }
.fit-card h3 { margin-bottom: 10px; font-size: 18px; }
.fit-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- Qué esperar ---------- */

.expect-list {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 46px;
}
.expect-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: #ddd;
  text-align: left;
}
.expect-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent-light);
}

/* ---------- Cierre + captura ---------- */

.close-final { text-align: center; }
.close-final .section-head { margin-bottom: 40px; }

.split-cta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.split-cta .or {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.split-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  height: 100%;
}
.split-col h3 { margin-bottom: 8px; }
.split-col p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }

.lead-form { display: flex; flex-direction: column; gap: 10px; }
.field {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-size: 14.5px;
  font-family: inherit;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.field::placeholder { color: var(--muted-2); }
.field:focus { outline: none; border-color: var(--accent-light); background: rgba(255,255,255,0.06); }
.field-hp { position: absolute; left: -9999px; opacity: 0; }

.form-msg {
  font-size: 13.5px;
  margin-top: 10px;
  min-height: 18px;
}
.form-msg[data-state="ok"] { color: #8ee6a8; }
.form-msg[data-state="error"] { color: #ff9b9b; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 42px 0 34px;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12.5px; color: var(--muted-2); margin-top: 22px; text-align: center; }

/* ---------- Animación de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 260px; margin-inline: auto; }
  .split-cta { grid-template-columns: 1fr; }
  .split-cta .or { text-align: center; padding: 4px 0; }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
  .video-duration { display: none; }
}
