/* ============================================================
   DEVRIM — Propuesta V2 · Estilo moderno / joven con energía
   Blanco + acento coral · Poppins + Inter · limpio y confiable
   ============================================================ */

:root {
  --ink: #141414;
  --bg: #ffffff;
  --soft: #f6f6f7;
  --soft-2: #f0f0f2;
  --accent: #ff5a3c;
  --accent-dark: #e8462c;
  --accent-soft: #fff0ec;
  --text: #1a1a1a;
  --muted: #6f6f74;
  --muted-dark: #a9a9b2;
  --line: #ebeb0e;
  --line: #ececee;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --maxw: 1280px;
  --contentw: 1180px;
  --textw: 620px;
  --header-h: 74px;
  --shadow: 0 12px 34px rgba(20,20,20,0.08);
  --shadow-sm: 0 6px 18px rgba(20,20,20,0.06);
  --radius: 16px;
  --radius-sm: 12px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 0.4em; }

/* ---------- Tipografía ---------- */
.h1, .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.body-lg { font-size: 19px; line-height: 1.6; max-width: var(--textw); color: var(--muted); }
.center { text-align: center; }
.center .body-lg { margin-left: auto; margin-right: auto; }
.on-dark { color: #fff; }

.hl { color: var(--accent); }

.tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-block;
  padding: 7px 15px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.tag-yellow, .tag-coral { background: var(--accent); color: #fff; }
.section-dark .tag { background: rgba(255,255,255,0.12); color: #fff; }
.section-dark .tag-yellow, .section-dark .tag-coral { background: var(--accent); color: #fff; }

.note-mono { font-size: 14px; color: var(--muted); margin-top: 16px; }
.link-mono {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px 0;
  display: inline-block;
}
.link-mono:hover { text-decoration: underline; text-underline-offset: 3px; }
.on-dark .link-mono, .link-mono.on-dark { color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--contentw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.section-paper { background: var(--soft); }
.section-white { background: var(--bg); }
.section-dark { background: var(--ink); color: #fff; }

.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.section-head { margin-bottom: 32px; }

/* ---------- Botones ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,90,60,0.32); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.section-dark .btn-secondary { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); color: #fff; }
.section-dark .btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn.on-dark { border-color: rgba(255,255,255,0.3); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: #fff;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--header-h); padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
  transition: height 0.2s ease;
}
.site-header.scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: #fff; }
.brand-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: 0.5px; }
.main-nav { display: flex; gap: 26px; }
.nav-link {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  text-decoration: none; padding: 6px 0; color: rgba(255,255,255,0.82);
  border-bottom: 2px solid transparent; transition: color 0.16s;
}
.nav-link:hover, .nav-link.active { color: #fff; border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
  height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  transition: background 0.16s, border-color 0.16s;
}
.icon-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--ink); border-radius: 50%;
  min-width: 21px; height: 21px; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.cart-count.visible { display: inline-flex; }

.btn-idea { min-height: 44px; padding: 0 18px; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 600; }
.btn-idea:hover { background: var(--accent-dark); }

.music-btn.playing { background: var(--accent); color: #fff; border-color: var(--accent); }
.music-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.music-bars i { width: 3px; height: 5px; background: currentColor; display: block; border-radius: 1px; }
.music-btn.playing .music-bars i { animation: bars 0.7s ease-in-out infinite; }
.music-btn.playing .music-bars i:nth-child(2) { animation-delay: 0.2s; }
.music-btn.playing .music-bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes bars { 0%,100% { height: 4px; } 50% { height: 13px; } }

.menu-btn { display: none; flex-direction: column; }
.menu-bars i { width: 18px; height: 2px; background: currentColor; display: block; margin: 2px 0; border-radius: 2px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 90px 28px 28px; display: none; flex-direction: column; gap: 14px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  font-size: 30px; line-height: 1; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.mobile-nav-link {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.2;
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff;
}
.mobile-nav-link:hover { color: var(--accent); }

/* ---------- Hero (foto full + overlay abajo, estilo moderno) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 640px; background: var(--ink); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 34%, rgba(10,10,10,0.1) 70%, rgba(10,10,10,0.25) 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 680px; padding: 56px 64px 64px; color: #fff; }
.hero-copy .tag { margin-bottom: 20px; }
.hero-title { margin-bottom: 20px; color: #fff; }
.hero-title .hl { color: var(--accent); }
.hero-text { max-width: 540px; margin-bottom: 28px; font-size: 19px; color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-copy .link-mono { color: #fff; }
.hero-copy .link-mono:hover { color: var(--accent); text-decoration: none; }
.hero-archive { display: none; }

/* ---------- Módulo musical (Inicio) ---------- */
.music-module { background: var(--ink); color: #fff; padding: 56px 0; }
.music-module-inner {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 44px; align-items: center;
}
.music-module h2 { color: #fff; margin-bottom: 12px; }
.music-module p { color: rgba(255,255,255,0.75); max-width: 460px; margin: 0 0 22px; }
.music-module-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.music-module-actions .link-mono { color: rgba(255,255,255,0.8); }
.music-viz {
  display: flex; align-items: flex-end; gap: 5px; height: 100px;
  padding: 22px 26px; border-radius: var(--radius); background: rgba(255,255,255,0.05);
}
.music-viz i { flex: 1; background: rgba(255,255,255,0.2); border-radius: 3px; height: 20%; }
.music-viz.playing i { animation: viz 0.9s ease-in-out infinite; background: var(--accent); }
.music-viz.playing i:nth-child(2){ animation-delay: .1s } .music-viz.playing i:nth-child(3){ animation-delay: .2s }
.music-viz.playing i:nth-child(4){ animation-delay: .3s } .music-viz.playing i:nth-child(5){ animation-delay: .15s }
.music-viz.playing i:nth-child(6){ animation-delay: .35s } .music-viz.playing i:nth-child(7){ animation-delay: .05s }
@keyframes viz { 0%,100% { height: 18%; } 50% { height: 92%; } }

/* ---------- Entrada de ideas ---------- */
.ideas { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-note {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--line);
  padding: 20px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); color: var(--text);
}
.file-note b { color: var(--accent); font-weight: 600; }

/* ---------- Laboratorio de transformación ---------- */
.lab-flow {
  display: grid; grid-template-columns: 1fr auto 1.4fr auto 1fr; gap: 18px;
  align-items: stretch; margin: 40px 0 22px;
}
.lab-step { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,0.04); }
.lab-step .lab-k { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.lab-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 10px 0; color: #fff; }
.lab-step p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.7); }
.lab-arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--accent); }
.lab-versions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lab-v {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); padding: 6px 11px; border-radius: 100px;
  cursor: default; transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.lab-v:hover, .lab-v.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.lab-v.stamp { background: none; border-color: var(--accent); color: var(--accent); font-weight: 700; }
.lab-out { display: flex; align-items: center; gap: 16px; }
.lab-out img { width: 110px; height: 138px; object-fit: cover; border-radius: var(--radius-sm); }
.lab-micro { font-size: 14px; color: rgba(255,255,255,0.6); }

/* ---------- Cómo funciona (lista) ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0; display: flex; flex-direction: column; }
.steps li {
  display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.steps .step-n { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; color: #fff; }
.steps p { font-size: 16px; color: rgba(255,255,255,0.7); margin: 0; }
.steps-tags { display: none; }

/* ---------- Tres formas de empezar ---------- */
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.start-main {
  grid-row: span 2; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.start-main .tag { background: var(--accent); color: #fff; }
.start-main h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,3vw,38px); margin: 4px 0; color: #fff; }
.start-main p { color: rgba(255,255,255,0.78); margin: 0; }
.start-main .start-preview { display: flex; gap: 10px; margin: 10px 0; }
.start-main .start-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.start-main .btn { margin-top: auto; align-self: flex-start; }
.start-alt {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--bg); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
}
.start-alt h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; }
.start-alt p { margin: 0; flex: 1; color: var(--muted); }
.start-alt .btn { align-self: flex-start; }

/* ---------- Tira / adelanto de catálogo ---------- */
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory;
}
.strip .catalog-card { scroll-snap-align: start; }
.strip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.random-btn { gap: 10px; }
.random-btn::before { content: "⟳"; font-size: 18px; }

/* ---------- Nuevos lanzamientos ---------- */
.tag-new { background: var(--accent); color: #fff; }
.nuevos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 6px; }
.nuevo-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.nuevo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
.nuevo-card-img { position: relative; aspect-ratio: 1 / 1; background: #f4f2ec; overflow: hidden; }
.nuevo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nuevo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255,90,60,.35);
}
.nuevo-card-info { padding: 14px 16px 16px; }
.nuevo-card-info h3 {
  font-size: 15px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nuevo-card-price { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .nuevos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nuevos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Catálogo grid + tarjeta producto ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 30px 0; }
.catalog-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.catalog-card:hover .catalog-card-info h3 { color: var(--accent); }
.catalog-card-img { aspect-ratio: 1; background: var(--soft-2); }
.catalog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.catalog-card-info h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.16s; }
.catalog-card-price { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Mosaico / muro de catálogo (bento) ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px; grid-auto-flow: dense; gap: 14px; margin: 30px 0;
}
.mosaic-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--soft-2); cursor: pointer; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.mosaic-card:hover { box-shadow: var(--shadow); }
.mosaic-card:hover img { transform: scale(1.05); }
.mosaic-card .m-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0));
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.mosaic-card:hover .m-name { opacity: 1; transform: translateY(0); }
.mosaic-card.is-big  { grid-column: span 2; grid-row: span 2; }
.mosaic-card.is-wide { grid-column: span 2; }
.mosaic-card.is-tall { grid-row: span 2; }

/* ---------- Toolbar catálogo ---------- */
.catalog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.field {
  font-family: var(--font-body); font-size: 16px; min-height: 50px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text);
}
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
#catalogSearch { flex: 1; min-width: 240px; }
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.field-select { cursor: pointer; }
.results-count { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.empty-state { text-align: center; padding: 56px 0; }
.empty-state .hero-ctas { justify-content: center; }

/* ---------- Escenarios personalización ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.scenario-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--bg); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.scenario-card.featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.scenario-card.featured h3 { color: #fff; }
.scenario-code { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.03em; text-transform: uppercase; }
.scenario-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; }
.scenario-card p { margin: 0; flex: 1; color: var(--muted); }
.scenario-card.featured p { color: rgba(255,255,255,0.78); }
.scenario-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Subhero ---------- */
.subhero { padding-top: 60px; padding-bottom: 60px; }
.subhero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.subhero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Tipos de remera ---------- */
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 30px; }
.type-card { display: flex; flex-direction: column; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.type-media { aspect-ratio: 4/5; background: var(--ink); overflow: hidden; }
.type-media img { width: 100%; height: 100%; object-fit: cover; }
.type-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 26px 30px; }
.badge {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  padding: 5px 12px; border-radius: 100px; display: inline-block; align-self: flex-start;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; margin: 6px 0; }
.type-body p { color: var(--muted); margin: 0; }
.type-body .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Materiales ---------- */
.materials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.mat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--bg); box-shadow: var(--shadow-sm); }
.mat-card .mat-k { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.03em; text-transform: uppercase; }
.mat-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 10px 0 10px; }
.mat-card p { margin: 0; color: var(--muted); }

/* ---------- Info operativa (tarjetas) ---------- */
.ops-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 30px; }
.ops-item { padding: 24px; font-size: 15px; line-height: 1.5; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--muted); }
.ops-item .ops-k { display: block; font-weight: 700; font-size: 12px; margin-bottom: 8px; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }

/* ---------- Variedad ---------- */
.variety-media { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.variety-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.variety-strip span { font-family: var(--font-body); font-size: 13px; font-weight: 500; background: var(--soft-2); color: var(--text); padding: 8px 16px; border-radius: 100px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; color: var(--text);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q::after { content: "+"; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.2s ease, padding 0.2s ease; }
.faq-a p { color: var(--muted); margin: 0; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 400px; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; display: flex; align-items: center; min-height: 520px; background: var(--ink); overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.2) 100%); }
.cta-copy { position: relative; z-index: 1; max-width: 600px; padding: 64px; color: #fff; }
.cta-copy .h2 { color: #fff; }
.cta-copy .body-lg { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 44px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr; gap: 36px; }
.footer-logo { height: 34px; filter: brightness(0) invert(1); }
.footer-tagline { color: rgba(255,255,255,0.65); font-size: 15px; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255,255,255,0.5); margin: 0 0 16px; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { text-decoration: none; font-weight: 500; color: rgba(255,255,255,0.82); }
.footer-nav a:hover { color: var(--accent); }
.footer-info p { margin: 0 0 8px; color: rgba(255,255,255,0.7); font-size: 15px; }
.footer-ig, .footer-wa { display: block; margin-top: 12px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--accent); }
.footer-music { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 20px; background: rgba(255,255,255,0.04); }
.footer-music .fm-label { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; }
.footer-music .fm-track { font-weight: 600; margin: 8px 0 14px; }
.footer-music-btn { width: 100%; }

/* ---------- Mini reproductor persistente ---------- */
.music-mini {
  position: fixed; bottom: 18px; right: 18px; z-index: 250;
  display: none; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: 12px 16px; max-width: 320px; box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
.music-mini.open { display: flex; }
.music-mini .mm-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.music-mini .mm-bars i { width: 3px; background: var(--accent); height: 30%; border-radius: 2px; }
.music-mini.playing .mm-bars i { animation: viz 0.9s ease-in-out infinite; }
.music-mini.playing .mm-bars i:nth-child(2){ animation-delay:.15s } .music-mini.playing .mm-bars i:nth-child(3){ animation-delay:.3s } .music-mini.playing .mm-bars i:nth-child(4){ animation-delay:.1s }
.music-mini .mm-info { line-height: 1.3; }
.music-mini .mm-track { font-weight: 600; font-size: 14px; }
.music-mini .mm-state { font-family: var(--font-body); font-size: 11px; color: rgba(255,255,255,0.55); }
.music-mini .mm-toggle {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  min-height: 36px; padding: 0 14px;
}
.music-mini .mm-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
.music-frame { position: fixed; width: 300px; height: 80px; left: -9999px; bottom: 0; z-index: -1; border: 0; overflow: hidden; border-radius: 12px; }
.music-frame.audible { left: 18px; bottom: 88px; z-index: 249; }
.music-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Carrito ---------- */
.cart-sidebar { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.cart-sidebar.open { visibility: visible; }
.cart-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s; }
.cart-sidebar.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%;
  background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.24s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,0.12);
}
.cart-sidebar.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-header .h3 { margin: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--soft-2); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; }
.cart-item-meta { font-size: 13px; color: var(--muted); }
.cart-item-price { font-weight: 600; margin-top: 4px; color: var(--accent); }
.cart-item-remove { background: none; border: none; font-size: 22px; cursor: pointer; align-self: flex-start; line-height: 1; color: var(--muted); }
.cart-footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.cart-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal-content { position: relative; background: var(--bg); border-radius: var(--radius); max-height: 90vh; overflow-y: auto; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.product-modal-content { max-width: 1080px; }
.talles-modal-content { max-width: 720px; padding: 36px; }
.form-modal-content { max-width: 460px; padding: 38px 34px 34px; }
.form-modal-content .tag { margin-bottom: 12px; }
.form-modal-content .h3 { margin-bottom: 8px; }
.form-modal-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
#customerForm { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field span { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input {
  font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.form-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-error { color: var(--accent-dark); font-size: 13.5px; min-height: 18px; margin: 2px 0 4px; }
#customerForm .btn-full { margin-top: 6px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 2; box-shadow: var(--shadow-sm); }
.product-modal-body { display: grid; grid-template-columns: 52% 48%; }
.product-modal-img { background: var(--ink); }
.product-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-details { padding: 36px; }
.product-modal-details .h3 { margin-bottom: 6px; }
.product-modal-details .price { margin-bottom: 22px; color: var(--text); }
.option-group { margin-bottom: 22px; }
.option-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; display: block; margin-bottom: 10px; }
.talles-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.talles-imgs img { border-radius: var(--radius-sm); }

/* ---------- Selectores ---------- */
.size-options, .side-options, .type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn, .side-btn, .type-btn {
  font-family: var(--font-body); font-weight: 600; min-height: 46px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text);
  transition: border-color 0.16s, background 0.16s;
}
.size-btn:hover, .side-btn:hover, .type-btn:hover { border-color: var(--accent); }
.type-btn { flex: 1; flex-direction: column; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.type-price { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.size-btn.selected, .side-btn.selected, .type-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.type-btn.selected .type-price { color: rgba(255,255,255,0.85); }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.color-swatch.selected { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Diseñador ---------- */
.designer-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.designer-steps { display: flex; flex-direction: column; gap: 20px; }
.step-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-sm); }
.step-card.locked { opacity: 0.5; pointer-events: none; }
.step-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 14px; }
.step-number { position: absolute; top: -12px; left: 18px; width: 30px; height: 30px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 700; font-size: 14px; color: #fff; }
.step-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; min-height: 46px; padding: 0 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin-bottom: 14px; transition: border-color 0.16s; }
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
.design-search { width: 100%; margin-bottom: 14px; }
.designs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 280px; overflow-y: auto; }
.design-thumb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg); transition: outline 0.16s; }
.design-thumb:hover { outline: 2px solid var(--accent); }
.design-thumb-img { aspect-ratio: 1; background: var(--soft-2); }
.design-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.design-thumb-label { font-family: var(--font-body); font-size: 11px; padding: 6px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.designer-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.designer-color-btn { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.designer-color-btn.selected { border-color: var(--accent); background: var(--accent-soft); }
.designer-color-btn .swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.talles-link { margin-top: 14px; }
.designer-preview { position: sticky; top: 96px; align-self: start; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; min-height: 46px; }
.preview-tabs { display: flex; gap: 8px; }
.preview-tab { font-family: var(--font-body); font-weight: 600; min-height: 42px; padding: 0 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.preview-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.layer-controls { display: flex; align-items: center; gap: 12px; }
.layer-count { font-size: 13px; color: var(--muted); }
.layer-delete-btn { font-family: var(--font-body); font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); border-radius: 10px; min-height: 42px; padding: 0 14px; cursor: pointer; }
.canvas-wrapper { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 500/640; }
.canvas-wrapper canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.canvas-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; }
.placeholder-icon { font-size: 48px; }
.canvas-hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.designer-help { margin-top: 18px; padding: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.designer-help p { margin: 0 0 14px; font-size: 15px; color: rgba(255,255,255,0.78); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 500; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 15px 24px; font-weight: 600; box-shadow: 0 12px 34px rgba(0,0,0,0.3);
  opacity: 0; transition: transform 0.24s ease, opacity 0.24s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
  .mosaic-card.is-big { grid-column: span 2; grid-row: span 2; }
  .start { grid-template-columns: 1fr; }
  .start-main { grid-row: auto; }
  .lab-flow { grid-template-columns: 1fr; }
  .lab-arrow { transform: rotate(90deg); padding: 4px 0; }
  .ops-band { grid-template-columns: repeat(2, 1fr); }
  .designer-layout { grid-template-columns: 1fr; }
  .designer-preview { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .music-module-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .body-lg { font-size: 17px; }
  .main-nav, .btn-idea, .music-btn .music-label { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding: 60px 0; }

  .hero { min-height: 560px; }
  .hero-copy { padding: 32px 24px 40px; }
  .hero-media img { object-position: center top; }

  .two-col, .ideas, .types-grid, .materials, .scenario-grid, .files { grid-template-columns: 1fr; gap: 24px; }
  .scenario-card.featured { grid-column: auto; }
  .ops-band { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 10px; }
  .mosaic-card.is-wide { grid-column: span 2; }
  .mosaic-card.is-big { grid-column: span 2; grid-row: span 2; }
  .mosaic-card .m-name { opacity: 1; transform: none; font-size: 12px; padding: 20px 10px 9px; }

  .cta-final { min-height: 460px; }
  .cta-media::after { background: linear-gradient(0deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.6) 45%, rgba(10,10,10,0.2) 100%); }
  .cta-final { align-items: flex-end; }
  .cta-copy { padding: 32px 24px 40px; }

  .product-modal-body { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: stretch; }
  .modal-content { max-height: 100vh; border-radius: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .talles-imgs { grid-template-columns: 1fr; }
  .music-mini { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
