/* =============================================================
   QRPrint3D — hoja de estilos
   Diseño oscuro tipo "laboratorio tech": azul marino profundo,
   tinta casi blanca, un único acento (cian brillante) reservado
   para acciones importantes. Tipografía Inter (texto) + Sora
   (títulos). Sin florituras: la herramienta es la protagonista.
   ============================================================= */

:root {
  --paper: #0b1220;
  --surface: #121b2e;
  --surface-2: #182339;
  --ink: #eef3f8;
  --ink-soft: #9fb0c3;
  --ink-faint: #647089;
  --line: #22304a;
  --line-strong: #2e3f5e;

  --accent: #22d3ee;
  --accent-ink: #06222b;
  --accent-soft: #0f2e3a;
  --accent-line: #1f6f7e;

  --ok: #34d399;
  --ok-soft: #0f2e24;
  --warn: #fbbf24;
  --warn-soft: #332507;
  --error: #f87171;
  --error-soft: #331515;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 18px 34px -18px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* =============================================================
   Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
/* Gana siempre sobre cualquier regla de "display" propia (botones, forms
   flex, etc.) para que el atributo hidden oculte de verdad el elemento. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
ul, ol { list-style: none; padding: 0; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  z-index: 9999; border-radius: var(--radius-s); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* =============================================================
   Header / footer
   ============================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; }
.logo { flex: none; display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-mark { color: var(--accent); }

.site-nav {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  min-width: 0;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-s);
  font-size: .87rem; font-weight: 600; color: var(--ink-soft);
  transition: color .15s var(--ease-out), background .15s var(--ease-out);
}
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-soft); font-size: .86rem; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner a { text-decoration: underline; text-underline-offset: 2px; }
.footer-inner nav { display: flex; gap: 18px; }

/* =============================================================
   Hero
   ============================================================= */
.hero { padding: 52px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 1.35rem + 2vw, 2.7rem); max-width: 20ch; margin: 0 auto; }
.hero .subtitle { margin: 16px auto 0; max-width: 58ch; color: var(--ink-soft); font-size: clamp(1rem, .95rem + .2vw, 1.1rem); }

/* =============================================================
   Herramienta
   ============================================================= */
.tool-section { padding: 12px 0 8px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--shadow-card);
}
.tool-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .tool-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.field-group { margin-bottom: 18px; }
.field-group:last-child { margin-bottom: 0; }
.field-group label, #styleLabel, #formatLabel, #centerLabel { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 8px; color: var(--ink-soft); }
.field-group input[type="text"], .field-group select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); font-size: .96rem; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.field-group input[type="text"]:focus, .field-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.field-group input + label { margin-top: 12px; }

.mode-tabs { display: flex; gap: 6px; margin-bottom: 14px; background: var(--surface-2); padding: 4px; border-radius: var(--radius-s); width: fit-content; }
.mode-tab { padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.mode-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mode-panel input, .mode-panel select { margin-bottom: 10px; }

.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.style-opt {
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font-size: .86rem; font-weight: 600; text-align: center; transition: border-color .15s var(--ease-out), background .15s var(--ease-out), color .15s var(--ease-out);
}
.style-opt.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.style-opt:hover { border-color: var(--accent); }

.format-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
.format-opt {
  padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  text-align: left; display: flex; align-items: center; gap: 12px; transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.format-opt .f-icon { flex: none; width: 26px; height: 26px; color: var(--ink-faint); transition: color .15s var(--ease-out); }
.format-opt .f-text { display: flex; flex-direction: column; gap: 3px; }
.format-opt strong { font-size: .9rem; font-weight: 700; }
.format-opt span { font-size: .78rem; color: var(--ink-faint); }
.format-opt.is-active { border-color: var(--accent); background: var(--accent-soft); }
.format-opt.is-active strong { color: var(--accent); }
.format-opt.is-active .f-icon { color: var(--accent); }
.format-opt:hover { border-color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 539px) { .two-col { grid-template-columns: 1fr; } }
.color-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 4px 8px; }
.color-input input[type="color"] { width: 32px; height: 32px; border: 0; padding: 0; background: none; border-radius: 6px; overflow: hidden; }
.color-input input[type="text"] { border: 0; padding: 6px 2px; width: 100%; text-transform: uppercase; letter-spacing: .02em; font-size: .88rem; }
.color-input input[type="text"]:focus { outline: none; }

.swap-colors { font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-top: 12px; margin-bottom: 4px; text-decoration: underline; text-underline-offset: 2px; }
.swap-colors:hover { color: var(--accent); }

.center-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; max-width: 260px; }
.emoji-opt {
  width: 36px; height: 36px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  font-size: 1.05rem; display: flex; align-items: center; justify-content: center; transition: border-color .15s var(--ease-out);
}
.emoji-opt.is-active { border-color: var(--accent); background: var(--accent-soft); }
.upload-btn {
  padding: 9px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
.ghost-btn { font-size: .8rem; font-weight: 600; color: var(--error); text-decoration: underline; text-underline-offset: 2px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }
.checkbox-row input { width: 16px; height: 16px; }

/* --- Vista previa --- */
.tool-preview { display: flex; flex-direction: column; }
.preview-2d {
  background: repeating-conic-gradient(#e7e9ee 0% 25%, #ffffff 0% 50%) 0 0/14px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center; padding: 14px; aspect-ratio: 1/1; width: 100%; max-width: 380px; margin: 0 auto;
}
.preview-2d canvas { width: 100%; height: 100%; border-radius: 6px; }

.preview-3d {
  background: radial-gradient(120% 130% at 50% 10%, #182741 0%, #101a2c 70%, #060b14 100%);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  aspect-ratio: 5/4; width: 100%; max-width: 460px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.preview-3d canvas { width: 100%; height: 100%; touch-action: none; position: relative; z-index: 1; }
.viewer-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: .86rem; text-align: center; padding: 20px; z-index: 2;
}
.viewer-hint { text-align: center; font-size: .8rem; color: var(--ink-faint); margin-top: 12px; }
.ar-btn { display: block; margin: 12px auto 0; max-width: 380px; width: 100%; }

.ar-modal { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0; max-width: 480px; width: calc(100% - 40px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.ar-modal::backdrop { background: rgba(4,8,16,.7); backdrop-filter: blur(2px); }
.ar-modal-inner { padding: 22px; position: relative; }
.ar-modal-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-size: 1.1rem; line-height: 1; }
.ar-modal-close:hover { background: var(--line); }
.ar-modal-status { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 6px 0 14px; }
.ar-modal .hint { margin-top: 12px; }

.download-row { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 380px; margin-left: auto; margin-right: auto; }
.warnings { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.warning-item { padding: 10px 12px; border-radius: var(--radius-s); font-size: .84rem; border: 1px solid transparent; }
.warning-item.error { background: var(--error-soft); color: var(--error); border-color: #5c2b2b; }
.warning-item.warn { background: var(--warn-soft); color: var(--warn); border-color: #5c4a1f; }
.warning-item.info { background: var(--accent-soft); color: #7de6f5; border-color: var(--accent-line); }
.warning-item.ok { background: var(--ok-soft); color: var(--ok); border-color: #1f5c46; }

.hint { font-size: .8rem; color: var(--ink-faint); margin-top: 10px; }
.hosted-limit-note { background: var(--accent-soft); color: #7de6f5; border: 1px solid var(--accent-line); border-radius: 10px; padding: 8px 12px; margin-top: 12px; }

.btn {
  padding: 13px 22px; border-radius: var(--radius-s); font-weight: 600; font-size: .94rem;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .12s var(--ease-out), border-color .12s var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px rgba(34,211,238,.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(34,211,238,.6); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-soft); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

.divider { display: flex; align-items: center; gap: 16px; margin: 40px 0 32px; color: var(--ink-faint); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =============================================================
   Secciones de contenido
   ============================================================= */
.how-section, .seo-section, .uses-section, .faq-section { padding: 56px 0; }
.how-section h2, .seo-section h2, .uses-section h2, .faq-section h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); text-align: center; max-width: 26ch; margin: 0 auto 36px;
}

.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--display);
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: .9rem; }

.gallery-section { padding: 56px 0 8px; }
.gallery-section h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); text-align: center; max-width: 26ch; margin: 0 auto 10px; }
.gallery-intro { color: var(--ink-soft); text-align: center; max-width: 56ch; margin: 0 auto 28px; font-size: .95rem; }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-card {
  position: relative; display: block; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.gallery-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s var(--ease-out); }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-cta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 16px 14px;
  background: linear-gradient(0deg, rgba(15,17,21,.94) 38%, rgba(15,17,21,0));
  color: #fff; font-size: .86rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.use-link { color: var(--accent); font-size: .84rem; font-weight: 600; margin-top: -2px; }
.use-link:hover { text-decoration: underline; }

.seo-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seo-text { max-width: 74ch; margin: 0 auto; }
.seo-text h2 { text-align: left; margin-bottom: 18px; }
.seo-text p { color: var(--ink-soft); margin-bottom: 16px; }
.seo-text p strong { color: var(--ink); }

.uses-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .uses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .uses-grid { grid-template-columns: repeat(3, 1fr); } }
.use-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.use-card .u-icon { width: 30px; height: 30px; color: var(--accent); }
.use-card h3 { font-size: 1rem; }
.use-card p { color: var(--ink-soft); font-size: .87rem; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 78ch; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 4px 20px; }
.faq-list summary { padding: 16px 24px 16px 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; font-size: .96rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.3rem; font-weight: 400; color: var(--accent);
  transition: transform .25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding-bottom: 18px; color: var(--ink-soft); font-size: .94rem; max-width: 68ch; }

/* =============================================================
   Compartir + soporte (cierre de página)
   ============================================================= */
.wrapup-section { padding: 16px 0 56px; }
.wrapup-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .wrapup-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.wrapup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.wrapup-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.wrapup-card > p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; }

.share-card .btn { margin-bottom: 14px; }
.share-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: border-color .15s var(--ease-out), color .15s var(--ease-out), background .15s var(--ease-out);
}
.share-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.feedback-card form { display: flex; flex-direction: column; gap: 4px; }
.feedback-card label { display: block; font-weight: 600; font-size: .84rem; margin: 10px 0 6px; color: var(--ink-soft); }
.feedback-card label:first-of-type { margin-top: 0; }
.feedback-card select, .feedback-card textarea,
.feedback-card input[type="email"], .feedback-card input[type="text"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); font-size: .92rem; font-family: inherit; resize: vertical;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.feedback-card select:invalid { color: var(--ink-faint); }
.feedback-card select:focus, .feedback-card textarea:focus,
.feedback-card input[type="email"]:focus, .feedback-card input[type="text"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.feedback-card .btn { margin-top: 14px; width: auto; align-self: flex-start; }
.feedback-card .hint { margin-top: 8px; }
.fb-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.fb-upload-btn { display: inline-flex; width: fit-content; margin: 0; padding: 9px 14px; font-size: .82rem; }
.fb-upload-btn.has-file { border-color: var(--accent); color: var(--accent); }
#fbFileHint { margin-top: 6px; margin-bottom: 4px; }
#fbFileHint:empty { display: none; }

.fb-result {
  border-radius: var(--radius-m); padding: 16px 18px; margin-top: 16px; border: 1px solid transparent;
}
.fb-result strong { display: block; font-size: .96rem; margin-bottom: 4px; }
.fb-result p { font-size: .88rem; margin: 0; }
.fb-success { background: var(--ok-soft); border-color: #1f5c46; color: var(--ok); }
.fb-success p { color: var(--ink-soft); }
.fb-error { background: var(--error-soft); border-color: #5c2b2b; color: var(--error); }
.fb-error p { color: var(--ink-soft); }
.fb-again {
  margin-top: 12px; font-size: .84rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}

/* --- Aviso flotante de compartir, al completarse una descarga --- */
.share-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: calc(100% - 36px); max-width: 340px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.25);
  padding: 18px 20px;
  animation: shareToastIn .28s var(--ease-out);
}
@keyframes shareToastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .share-toast { animation: none; } }
@media (max-width: 480px) { .share-toast { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; } }

.share-toast-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink-faint);
  font-size: 1.15rem; line-height: 1; transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.share-toast-close:hover { background: var(--surface-2); color: var(--ink); }
.share-toast-title { font-weight: 700; font-size: .92rem; margin-bottom: 3px; padding-right: 22px; }
.share-toast-sub { color: var(--ink-soft); font-size: .84rem; margin-bottom: 14px; }
.share-toast-actions { display: flex; flex-direction: column; gap: 8px; }
.share-toast-actions .btn { width: 100%; padding: 10px 14px; font-size: .86rem; }
.share-toast-status { margin-top: 10px; margin-bottom: 0; min-height: 1em; }
.share-toast-status:empty { display: none; }

/* =============================================================
   Legal
   ============================================================= */
.legal-section { padding: 44px 0 60px; }
.legal-text { max-width: 74ch; margin: 0 auto; }
.legal-text h1 { font-size: 1.7rem; margin-bottom: 18px; }
.legal-text h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal-text p { color: var(--ink-soft); margin-bottom: 10px; }

/* =============================================================
   Guías por nicho
   ============================================================= */
.guide-hero { padding: 48px 0 8px; text-align: center; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .82rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }
.guide-hero h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); text-wrap: balance; max-width: 22ch; margin: 0 auto; }
.guide-intro { margin: 16px auto 26px; max-width: 62ch; color: var(--ink-soft); font-size: 1.02rem; }
.guide-image-section { padding: 0 0 8px; }
.guide-image { display: block; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 auto; border-radius: var(--radius-l); border: 1px solid var(--line); }
.tip-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.tip-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .95rem; }
.tip-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.guide-cta-section { padding: 56px 0 64px; text-align: center; }
.guide-cta-section h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin-bottom: 10px; }
.guide-cta-section p { color: var(--ink-soft); margin-bottom: 22px; }
.other-guides { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; font-size: .88rem; color: var(--ink-faint); }
.other-guide-link { color: var(--accent); font-weight: 600; }
.other-guide-link:hover { text-decoration: underline; }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
