/* ============================================================
   888MUSASHI — Tienda intermediadora de servicios
   Bilingue · diseno propio · 2026
   ------------------------------------------------------------
   Este diseno NO comparte tokens con ningun sitio oficial de
   cliente. Regla de Cristian (2026-10-03): lo que se muestra
   en Musashi debe verse ajeno a las paginas oficiales.
   ============================================================ */

:root {
  /* ═══ PALETA DE MARCA 888MUSASHI — dorado GitHub-dark (recomendada por Copilot) ═══
     Look frío y nítido: fondos azul-negro, dorado vivo, bordes azulados */
  --gold:        #f0c674;   /* dorado vivo — acento principal */
  --gold-dark:   #d4a843;   /* dorado — hover */
  --gold-deep:   #c9a227;   /* ámbar tostado */
  --dark:        #0d1117;   /* azul-negro (GitHub dark) */
  --dark-card:   #161b22;   /* superficie/tarjetas */
  --dark-card-2: #1f2733;   /* superficie elevada */
  --text:        #e6edf3;   /* texto principal (blanco frío) */
  --text-muted:  #8b949e;   /* texto secundario (gris frío) */
  --border:      #30363d;   /* bordes azulados */
  --sakura:      #f0a8a0;   /* rosa pálido */

  /* Compatibilidad con nombres anteriores (mapeados a la nueva marca) */
  --deep-900: #0d1117;
  --deep-800: #161b22;
  --deep-700: #1f2733;
  --deep-600: #30363d;
  --deep-500: #3d4854;
  --cyan-400: #f0c674;
  --cyan-300: #f5d98a;
  --cyan-500: #d4a843;
  --cyan-deep: #c9a227;
  --white:    #e6edf3;
  --paper:    #0d1117;
  --paper-2:  #161b22;
  --grey-700: #8b949e;
  --grey-500: #6e7681;
  --grey-300: #c9d1d9;
  --line:     #30363d;
  --line-dark: #30363d;

  /* Semantic */
  --bg:          #0d1117;
  --bg-alt:      #0d1117;
  --surface:     #161b22;
  --surface-2:   #1f2733;
  --text-dark:   #0d1117;
  --text-dark-muted: #6e7681;
  --accent:      #f0c674;
  --accent-hover:#f5d98a;
  --accent-deep: #d4a843;

  /* Espaciado */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Radios */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);

  /* Tipografía */
  --f-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-display: Georgia, 'Times New Roman', serif;
  --f-mono: ui-monospace, 'Cascadia Code', monospace;
  --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.375rem; --fs-xl: 1.75rem; --fs-2xl: 2.25rem; --fs-3xl: 3rem; --fs-4xl: 3.75rem;
  --lh-tight: 1.15; --lh-base: 1.6;
  --maxw: 1200px;

  /* Transiciones */
  --tr-fast: 0.15s ease; --tr-base: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--deep-900);
  padding: var(--sp-3) var(--sp-5); font-weight: 700; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ── Tipografia ── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.6rem, 3.6vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }

p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container-narrow { max-width: 780px; }

/* ── Secciones ── */
.section { padding-block: clamp(var(--sp-16), 8vw, var(--sp-24)); }
.section-sm { padding-block: clamp(var(--sp-12), 5vw, var(--sp-16)); }

.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: currentColor; display: block;
}
.section-head.center .eyebrow::after {
  content: ''; width: 26px; height: 1px;
  background: currentColor; display: block;
}

.section-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: var(--sp-4);
  line-height: var(--lh-base);
}

/* ── Encabezado ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-deep));
  color: var(--deep-900);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
}
.logo-text {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.22rem; letter-spacing: -0.01em;
}
.logo-text em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-muted);
  transition: color var(--tr-fast), background var(--tr-fast);
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--text); background: var(--surface-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px var(--sp-6);
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--fs-sm);
  transition: transform var(--tr-fast), background var(--tr-fast),
              box-shadow var(--tr-fast), color var(--tr-fast);
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent); color: var(--deep-900);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 22px rgba(212,165,116,0.32); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(212,165,116,0.04);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px var(--sp-5); font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* ── Selector de idioma ── */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--deep-900); }

/* ── Menu movil ── */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: var(--sp-3);
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--deep-800);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: var(--sp-3) var(--sp-4); }
.mobile-nav .btn { margin-top: var(--sp-3); }

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: clamp(var(--sp-20), 11vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(var(--sp-10), 5vw, var(--sp-20));
  align-items: center;
}
.hero-copy > * + * { margin-top: var(--sp-6); }
.hero h1 { color: var(--text); }
.hero h1 .accent { color: var(--accent); }

.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, var(--fs-md));
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-8);
}
.hero-badge .n {
  font-family: var(--f-display); font-size: var(--fs-2xl);
  font-weight: 700; color: var(--accent); line-height: 1;
}
.hero-badge .t {
  font-size: var(--fs-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.09em; margin-top: 6px;
}

/* Panel del hero: donde NO hay direccion fisica */
.hero-panel {
  background: linear-gradient(160deg, var(--surface), var(--deep-700));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}
.hero-panel h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-5); }

.panel-item {
  display: flex; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border);
}
.panel-item:first-of-type { border-top: 0; padding-top: 0; }
.panel-item .ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(212,165,116,0.12);
  color: var(--accent);
  display: grid; place-items: center;
}
.panel-item .tt { font-weight: 600; font-size: var(--fs-sm); }
.panel-item .dd { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

/* ── Rejillas de tarjetas ── */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: transform var(--tr-base), border-color var(--tr-base),
              box-shadow var(--tr-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,165,116,0.38);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-deep));
  color: var(--deep-900);
  display: grid; place-items: center;
  margin-bottom: var(--sp-5);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.card-list { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.card-list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.card-cta { margin-top: var(--sp-6); }

/* Tarjeta de rubro: la unidad central de la tienda */
.rubro-tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan-deep);
  background: rgba(212,165,116,0.10);
  padding: 4px 10px; border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}
.section .rubro-tag {
  color: var(--accent);
  background: rgba(212,165,116,0.12);
}

/* ── Pasos ── */
.steps { counter-reset: paso; display: grid; gap: var(--sp-6); }
.step {
  counter-increment: paso;
  position: relative;
  padding: var(--sp-8) var(--sp-8) var(--sp-8) calc(var(--sp-8) + 62px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: var(--sp-8); top: var(--sp-8);
  font-family: var(--f-mono); font-size: var(--fs-lg); font-weight: 700;
  color: var(--cyan-deep);
}
.step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.step p { color: var(--text-dark-muted); font-size: var(--fs-sm); }

/* ── Formulario ── */
.form-card {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  margin-bottom: var(--sp-2);
}
.field .hint { font-size: var(--fs-xs); color: var(--text-dark-muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px var(--sp-4);
  font: inherit; font-size: var(--fs-sm);
  color: var(--text-dark);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  background: var(--white);
}
.field textarea { min-height: 128px; resize: vertical; }

.form-row { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Aviso de privacidad dentro del formulario */
.privacy-note {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--paper-2);
  border-left: 3px solid var(--cyan-500);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); color: var(--text-dark-muted);
  margin-bottom: var(--sp-6);
}

/* ── Pie de pagina ── */
/* Footer: fondo banner-de-marca-4 (rey ajedrez minimalista) */
.site-footer {
  background:
    url("../../images/banner-de-marca-4.webp") center/cover no-repeat,
    var(--deep-800);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-16) var(--sp-8);
  margin-top: auto;
}
/* CTA unido al footer: "¿No ves lo que buscas?" (antes sección propia) */
.footer-cta {
  text-align: center;
  padding-bottom: var(--sp-12);
  margin-bottom: var(--sp-10);
  border-bottom: 1px solid var(--border);
}
.footer-cta h2 { color: var(--text); margin-bottom: var(--sp-4); }
.footer-cta .section-sub { color: var(--text-muted); max-width: 640px; margin-inline: auto; }
.footer-cta .hero-cta { justify-content: center; margin-top: var(--sp-6); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: var(--sp-4);
}
.footer-grid p { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-grid ul a { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-grid ul a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: var(--sp-6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4);
  font-size: var(--fs-xs); color: var(--grey-500);
}
.footer-bottom a:hover { color: var(--accent); }

/* ── Selector de idioma: reglas por atributo html lang ── */
html[lang="es"] .lang-en { display: none !important; }
html[lang="en"] .lang-es { display: none !important; }

/* Sin JavaScript el selector no hace nada: el sitio queda en espanol,
   que es el idioma por defecto del atributo lang. */
.no-js .lang-toggle { display: none; }

/* ── Utilidades ── */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-6 { margin-bottom: var(--sp-6); }
.stack > * + * { margin-top: var(--sp-4); }
.lead { font-size: var(--fs-md); color: var(--text-dark-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--sp-10); }

.prose p + p { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); font-size: var(--fs-lg); }
.prose ul { margin-block: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.prose ul li { padding-left: var(--sp-6); position: relative; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-deep);
}
.prose a { color: var(--cyan-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════
   AVISO DE PRIVACIDAD — resumen, índice y utilidades
   ═══════════════════════════════════════════════════════════ */
.privacy-lead {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--cyan-500);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-md);
  color: var(--text);
}

.privacy-toc {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.privacy-toc > ul {
  columns: 2;
  column-gap: var(--sp-8);
  display: block;
  list-style: none;
}
.privacy-toc li {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-2);
  position: relative;
  break-inside: avoid;
}
.privacy-toc li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan-deep);
}
.privacy-toc a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--tr-fast);
}
.privacy-toc a:hover { color: var(--cyan-400); }
.prose h2 { scroll-margin-top: 88px; }
.privacy-print { margin-top: var(--sp-6); }

/* ═══════════════════════════════════════════════════════════
   TALLERES Y ASESORÍAS — lista editorial numerada
   Estilo "repertorio": números dorados, filetes, sin tarjetas.
   ═══════════════════════════════════════════════════════════ */
.talleres-list {
  list-style: none;
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
}
.taller-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  align-items: start;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border);
  transition: background var(--tr-fast);
}
.taller-item:last-child { border-bottom: 1px solid var(--border); }
.taller-item:hover { background: var(--surface-2); }
.taller-num {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  min-width: 2.2ch;
}
.taller-body h3 {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.taller-body p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 60ch; }
.talleres-note {
  margin-top: var(--sp-6);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
@media (max-width: 560px) {
  .taller-item { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ═══════════════════════════════════════════════════════════
   SERVICIOS — franja de rubros: paneles editoriales con foto
   Número dorado + tag + lista; sin iconos superpuestos.
   ═══════════════════════════════════════════════════════════ */
.svc-intro { max-width: 640px; margin-bottom: var(--sp-8); }
.svc-lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
}
/* ═══════════════════════════════════════════════════════════
   SERVICIOS — paneles GRANDES de ancho completo, alternos
   Cada rubro ocupa toda la fila: número+contenido a la izq/der.
   Cambio solo de presentación; el HTML no se toca.
   ═══════════════════════════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
.svc-panel {
  position: relative;
  overflow: hidden;
  background: var(--deep-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--tr-fast);
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: stretch;
}
/* foto de fondo a todo el panel (con velo para que el texto sea legible) */
.svc-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--svc-img, none);
  background-size: cover; background-position: center;
  opacity: 0.55;
  transition: opacity var(--tr-fast);
}
.svc-panel:hover { border-color: var(--accent); }
.svc-panel:hover::before { opacity: 0.7; }
/* velo oscuro sobre toda la foto para legibilidad del texto */
.svc-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,17,23,0.82) 0%, rgba(13,17,23,0.55) 45%, rgba(13,17,23,0.28) 100%);
  z-index: 0;
}
.svc-panel > * { position: relative; z-index: 2; }
/* número grande, en la franja de la imagen */
.svc-num {
  position: relative;
  font-family: var(--f-display);
  font-size: var(--fs-3xl);
  font-weight: 700; line-height: 1;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-8) var(--sp-4);
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
/* columna de contenido */
.svc-panel .rubro-tag { display: inline-block; }
.svc-panel .rubro-tag,
.svc-panel h3,
.svc-panel .card-list,
.svc-panel .svc-actions {
  margin-left: 0;
}
.svc-panel h3 {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  color: var(--text);
  margin: var(--sp-4) 0 var(--sp-3);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}
.svc-panel .card-list li {
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}
.svc-body { padding: var(--sp-8) var(--sp-10) var(--sp-8) var(--sp-8); }
.svc-panel .card-list { font-size: var(--fs-md); }
.svc-panel .card-list li { padding-block: var(--sp-2); }
.svc-actions {
  margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
}
/* Mapear data-bg del panel a su imagen */
.svc-panel[data-bg="sala-comedor"]     { --svc-img: url("../../images/sala-comedor.webp"); }
.svc-panel[data-bg="fondo-cuartos-frios"] { --svc-img: url("../../images/fondo-cuartos-frios.webp"); }
.svc-panel[data-bg="fondo-instalaciones"] { --svc-img: url("../../images/fondo-instalaciones.webp"); }
.svc-panel[data-bg="fondo-ferreteria"]    { --svc-img: url("../../images/fondo-ferreteria.webp"); }
.svc-panel[data-bg="fondo-canaletas"]     { --svc-img: url("../../images/fondo-canaletas.webp"); }
/* Alternar: el número pasa a la derecha en paneles pares (el fondo es completo) */
.svc-panel:nth-child(even) { grid-template-columns: 1fr 140px; }
.svc-panel:nth-child(even) .svc-num { order: 2; }
.svc-panel:nth-child(even) .svc-body { order: 1; padding: var(--sp-8) var(--sp-8) var(--sp-8) var(--sp-10); }
@media (max-width: 640px) {
  .svc-panel,
  .svc-panel:nth-child(even) { grid-template-columns: 1fr; }
  .svc-num { padding: var(--sp-4) var(--sp-2); justify-content: flex-start; }
  .svc-body,
  .svc-panel:nth-child(even) .svc-body { padding: var(--sp-6); }
}

/* Impresión: solo el contenido del aviso */
@media print {
  .site-header, .site-footer, .privacy-print, .skip-link { display: none !important; }
  .privacy-toc { break-after: page; }
  body { background: #fff; color: #000; }
  .prose h2 { break-after: avoid; }
}

@media (max-width: 720px) {
  .privacy-toc > ul { columns: 1; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-inner .lang-toggle { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .container { padding-inline: var(--sp-5); }
  .card { padding: var(--sp-6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .lang-toggle, .hero-panel { display: none; }
  body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════════════════
   FONDOS DE SECCIÓN — imágenes de MARCA 888musashi (Copilot)
   TODAS las secciones llevan imagen de fondo de marca con velo
   oscuro (#0d1117) para no afectar la legibilidad del texto.
   ═══════════════════════════════════════════════════════════ */

/* Base: cualquier sección sin fondo propio muestra un fondo de marca tenue */
.section, .hero { position: relative; }

/* Hero: samurái épico nocturno (banner-de-marca-1) */
.hero {
  background:
    url("../../images/banner-de-marca-1.webp") center/cover no-repeat,
    #0d1117;
}

/* CTA final: banner-de-marca-5 (tablero+samurái cromado) */
section.section-sm {
  background:
    url("../../images/banner-de-marca-5.webp") center/cover no-repeat,
    #0d1117;
}

#tienda {
  background:
    url("../../images/banner-de-marca-3.webp") center/cover no-repeat,
    #0d1117;
}
#comidas {
  background:
    url("../../images/fondo-hamburguesas.webp") center/cover no-repeat,
    #0d1117;
}
#rubros {
  background:
    url("../../images/banner-de-marca-2.webp") center/cover no-repeat,
    #0d1117;
}
/* (footer definido arriba con su imagen de marca) */

/* ═══════════════════════════════════════════════════════════
   TARJETAS DE SERVICIO — cada una con su imagen de fondo
   ═══════════════════════════════════════════════════════════ */
.svc-card { position: relative; overflow: hidden; background: rgba(16,11,10,0.35); }
.svc-card > .svc-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.92; z-index: 0;
}
.svc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.05), rgba(13,17,23,0.35));
  z-index: 1;
}
.svc-card > * { position: relative; z-index: 2; }
.svc-card h3, .svc-card .rubro-tag, .svc-card p, .svc-card li {
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.9);
}
.svc-bg[data-bg="fondo-cuartos-frios"] { background-image: url("../../images/fondo-cuartos-frios.webp"); }
.svc-bg[data-bg="fondo-ferreteria"] { background-image: url("../../images/fondo-ferreteria.webp"); }
.svc-bg[data-bg="fondo-instalaciones"] { background-image: url("../../images/fondo-instalaciones.webp"); }
.svc-bg[data-bg="sala-comedor"] { background-image: url("../../images/sala-comedor.webp"); }

/* ═══════════════════════════════════════════════════════════
   TIENDA — secciones de negocio con imagen de fondo
   ═══════════════════════════════════════════════════════════ */
.tienda-sec { position: relative; overflow: hidden; }
.tienda-sec > .tienda-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.92; z-index: 0;
}
.tienda-sec::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, transparent);
  z-index: 1;
}
.tienda-sec .container { position: relative; z-index: 2; }
.tienda-card {
  background: rgba(16,11,10,0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  max-width: 820px;
}
.tienda-head { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.tienda-head h2 { margin: 0; }
.tienda-list { margin-top: var(--sp-4); }
.tienda-list li { padding-block: var(--sp-1); color: var(--text-muted); }
.tienda-list li .lang-en { display: block; }
.tienda-btns { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.tienda-sec .container .tienda-card { margin-inline: 0; }

/* Fondos de negocio (tienda) */
.tienda-bg[data-bg="accesorios-celular"] { background-image: url("../../images/accesorios-celular.webp"); }

/* ── Redes sociales en footer ── */
.social-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.social-list a span {
  color: var(--accent);
  font-weight: 600;
}
.social-list a:hover span { color: var(--accent-hover); }

/* ── Clases de utilidad (reemplazan inline-styles repetidos) ── */
.cta-center { justify-content: center; margin-top: var(--sp-8); }
.section-sub-center { margin-inline: auto; max-width: 52ch; }
.section-surface { background: transparent; border-top: 1px solid var(--border); }
.footer-logo-gap { margin-bottom: var(--sp-4); }
.text-center-gap { text-align: center; margin-top: var(--sp-3); }
.error-code { font-size: clamp(3rem,10vw,6rem); margin-block: var(--sp-4) var(--sp-6); }
.align-start { align-items: start; }

/* ═══ LEGIBILIDAD sobre fondos más visibles ═══ */
/* Sombra de texto en todo el contenido principal */
.section h1, .section h2, .section h3,
.hero h1, .hero h2, .hero-lead, .section-sub, .eyebrow {
  text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 2px 6px rgba(0,0,0,0.95);
}
/* badges y números de la franja también */
.hero-badge .n, .hero-badge .t {
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
/* Tarjeta de tienda: fondo medio, se ve la imagen alrededor */
/* (tienda-card fusionado arriba) */

/* ═══════════════════════════════════════════════════════════
   FONDOS POR PÁGINA — cada sección con su imagen, sin repetir
   ═══════════════════════════════════════════════════════════ */

/* ── HOME (index) ── */
/* CTA final del home (.section-sm dentro de index) — ya tiene banner-5 por .section-sm. */

/* ── SERVICIOS ── */
/* La cabecera de servicios es .section-sm (comparte con el CTA).
   Le ponemos ID propio en el HTML para diferenciarla. */
#servicios-head {
  background:
    url("../../images/banner-de-marca-2.webp") center/cover no-repeat,
    #0d1117;
}
/* La sección de 6 rubros en servicios (id=rubros en la card grid).
   En servicios la sección de rubros NO tiene id. Usamos .section con id rubros. */

/* ── COTIZAR ── */
#cotizar-head {
  background:
    url("../../images/banner-de-marca-5.webp") center/cover no-repeat,
    #0d1117;
}

/* ── PRIVACIDAD ── */
#privacidad-head {
  background:
    url("../../images/banner-de-marca-2.webp") center/cover no-repeat,
    #0d1117;
}

/* ── 404 ── */
.pagina-404 {
  background:
    url("../../images/banner-de-marca-5.webp") center/cover no-repeat,
    #0d1117;
}

/* ── GRACIAS ── */
#gracias-head {
  background:
    url("../../images/banner-de-marca-3.webp") center/cover no-repeat,
    #0d1117;
}

.svc-bg[data-bg="fondo-canaletas"] { background-image: url("../../images/fondo-canaletas.webp"); }

.svc-bg[data-bg="fondo-hamburguesas"] { background-image: url("../../images/fondo-hamburguesas.webp"); }
.svc-bg[data-bg="fondo-bbq"] { background-image: url("../../images/fondo-bbq.webp"); }
.svc-bg[data-bg="fondo-hotdogs"] { background-image: url("../../images/fondo-hotdogs.webp"); }

/* ═══════════════════════════════════════════════════════════
   INICIO — fondo de marca SOLO en hero (1) y entrada tienda (5).
   El resto de secciones del home van planas (sin imagen).
   Scope .inicio para no afectar las demás páginas.
   ═══════════════════════════════════════════════════════════ */
/* Cierre del Inicio: tablero 'Partida Clásica' (marca-ajedrez) en el footer */
.inicio .site-footer {
  background:
    url("../../images/marca-ajedrez.webp") center/cover no-repeat,
    var(--deep-800);
}

/* Sección de ajedrez del inicio — banner-de-marca-2 (samurái tinta B/N, atmosférico) */
.inicio #talleres {
  background:
    url("../../images/banner-de-marca-2.webp") center/cover no-repeat,
    var(--bg);
}

.tienda-bg[data-bg="velas-misticas"] { background-image: url("../../images/velas-misticas.webp"); }

.tienda-bg[data-bg="alejandria-libro"] { background-image: url("../../images/alejandria-libro.webp"); }
.tienda-bg[data-bg="artesanias-piedras"] { background-image: url("../../images/artesanias-piedras.webp"); }
.tienda-bg[data-bg="agencia-digital"] { background-image: url("../../images/agencia-digital.webp"); }
.tienda-bg[data-bg="personalizados"] { background-image: url("../../images/personalizados.webp"); }
.tienda-bg[data-bg="marca-ajedrez"] { background-image: url("../../images/marca-ajedrez.webp"); }

/* ═══════════════════════════════════════════════════════════
   TIENDA — hero con banner-de-marca-2 (tinta sumi-e B/N)
   Reemplaza el fondo global del hero solo en la tienda.
   ═══════════════════════════════════════════════════════════ */
.pag-tienda .hero {
  background:
    url("../../images/banner-de-marca-2.webp") center/cover no-repeat,
    var(--bg);
}

/* ═══════════════════════════════════════════════════════════
   TIENDA — subgrid de personalizados (pocillos/termos/cachuchas)
   Solo 2 reglas nuevas, al final. No afecta el resto.
   ═══════════════════════════════════════════════════════════ */
.tienda-subgrid { margin-top: var(--sp-6); }
.tienda-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.tienda-mini h3 {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.tienda-mini p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ═══════════════════════════════════════════════════════════
   STREAMING — sección nueva en el Inicio (emblema + plataformas)
   Solo reglas nuevas al final. No afecta lo existente.
   ═══════════════════════════════════════════════════════════ */
.streaming-sec { text-align: center; position: relative; }
.streaming-sec::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../../images/hero-streaming.webp") center/cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.streaming-sec .container { position: relative; z-index: 1; }
.streaming-head {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-6); text-align: left;
  max-width: 720px; margin: 0 auto var(--sp-8);
}
.streaming-emblem {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.streaming-head .eyebrow { margin-bottom: var(--sp-2); }
.streaming-head h2 {
  font-family: var(--f-display);
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.streaming-head .section-sub { margin: 0; }
.streaming-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  max-width: 820px; margin: 0 auto;
}
.streaming-pl {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-6) var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--tr-fast), transform var(--tr-fast);
}
.streaming-pl:hover { border-color: var(--accent); transform: translateY(-2px); }
.pl-nombre {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
}
.pl-handle { font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 560px) {
  .streaming-head { flex-direction: column; text-align: center; gap: var(--sp-4); }
}
