/* DOMAC — estilos compartidos de las páginas de servicio.
   Mismas variables y componentes que index.html, más los bloques propios de una página de servicio. */
:root {
  --paper: #faf9f5;
  --surface: #f1efe8;
  --surface-2: #e7e3d6;
  --ink: #221f1f;
  --ink-2: #322d2c;
  --ink-soft: #5a5650;
  --ink-faint: #8b867c;
  --line: #ddd8c9;
  --accent: #f0e93a;
  --accent-dim: #d4cc2c;
  --white: #ffffff;
  --cut: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; text-transform: uppercase;
  line-height: 0.94; letter-spacing: -0.01em; text-wrap: balance; margin: 0;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent-dim); flex-shrink: 0; }
.eyebrow.on-dark { color: color-mix(in srgb, var(--paper) 70%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper);
  font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 15.5px; padding: 15px 26px;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn.on-accent { background: var(--accent); color: var(--ink); }
.btn.on-accent:hover { background: var(--accent-dim); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  position: relative;
}
.cut::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 0 var(--cut) var(--cut);
  border-color: transparent transparent var(--accent-dim) transparent;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transform: scale(1.07) translateY(10px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.reveal-img.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; transition: none; }
}

/* header */
header.site {
  position: sticky; top: 0; z-index: 40; background: var(--ink);
  border-bottom: 2px solid var(--accent);
  transition: box-shadow .25s ease;
}
header.site.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1180px; margin: 0 auto; transition: padding .25s ease; }
header.site.is-scrolled .nav-row { padding: 10px 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; transition: height .25s ease; }
header.site.is-scrolled .brand img { height: 27px; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a {
  position: relative; color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; padding-bottom: 4px;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
nav.main a:hover::after { right: 0; }
.nav-cta { display: none; }
@media (min-width: 760px) { .nav-cta { display: inline-flex; } }
#nav-toggle { display: none; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; }
@media (max-width: 759px) {
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 2px solid var(--accent);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  nav.main a { padding: 14px 24px; width: 100%; border-top: 1px solid var(--ink-2); }
  nav.main a::after { display: none; }
  #nav-toggle:checked ~ nav.main { max-height: 400px; }
  .nav-burger { display: block; }
}

/* botones flotantes (mismo offset que el inicio para no chocar con el badge de Netlify) */
.fab-stack {
  position: fixed; right: 22px; bottom: 86px; z-index: 50; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.fab-stack.fab-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 26px rgba(20,18,18,.32); transition: transform .2s ease, box-shadow .2s ease;
}
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-3px) scale(1.06); }
.fab-whatsapp { background: #25D366; }
.fab-instagram { background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, #d62976 55%, #4f5bd5 100%); }
@media (max-width: 640px) { .fab-stack { right: 14px; bottom: 76px; gap: 10px; } .fab { width: 46px; height: 46px; } .fab svg { width: 23px; height: 23px; } }

section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 54px 0; } }
.sec-head { max-width: 62ch; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.sec-head p { color: var(--ink-soft); font-size: 16px; margin: 14px 0 0; }

/* ---------- bloques propios de página de servicio ---------- */

.crumbs { background: var(--ink); padding: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0 auto; padding: 0 24px; max-width: 1180px; display: flex; gap: 8px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .04em; color: color-mix(in srgb, var(--paper) 62%, transparent); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* hero sin foto: fondo tinta + regla amarilla, no depende de que haya fotos cargadas */
.hero-serv { background: var(--ink); color: var(--paper); position: relative; padding: 56px 0 84px; overflow: hidden; }
.hero-serv::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 30px); opacity: .8;
}
.hero-serv .wrap { position: relative; z-index: 1; }
.hero-serv h1 { font-size: clamp(38px, 6.6vw, 86px); max-width: 16ch; }
.hero-serv .lead { font-size: 18px; max-width: 58ch; color: color-mix(in srgb, var(--paper) 86%, transparent); margin: 22px 0 10px; }
.hero-serv .stamp { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: color-mix(in srgb, var(--paper) 62%, transparent); display: block; margin-bottom: 28px; }
.hero-mark { position: absolute; right: -4%; bottom: -14%; width: 34vw; max-width: 440px; min-width: 220px; opacity: .07; z-index: 0; pointer-events: none; }
@media (max-width: 640px) { .hero-serv { padding: 36px 0 56px; } .hero-serv .lead { font-size: 16.5px; } }

.prose { max-width: 70ch; }
.prose p { margin: 0 0 14px; font-size: 16.5px; color: var(--ink-2); }
.prose p.answer { font-size: 18px; color: var(--ink); font-weight: 500; }
.prose a { text-decoration-color: var(--accent-dim); text-underline-offset: 3px; font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }

.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card-list li { background: var(--surface); padding: 16px 20px; font-size: 15.5px; display: flex; gap: 12px; align-items: flex-start; }
.card-list li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--accent-dim); flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 100%); }
.card-list b { font-weight: 700; }

.tabla-wrap { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); }
table.tabla caption { text-align: left; padding: 0 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
table.tabla th, table.tabla td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tabla thead th { background: var(--ink); color: var(--paper); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--accent); }
table.tabla tbody th { font-weight: 700; white-space: nowrap; }
table.tabla tbody tr:nth-child(even) { background: var(--surface); }

.alt-band { background: var(--surface); }
.dark-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.dark-band h2 { color: var(--paper); }
.dark-band .sec-head p { color: color-mix(in srgb, var(--paper) 72%, transparent); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: c; }
.checklist li { counter-increment: c; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: color-mix(in srgb, var(--paper) 7%, transparent);
  border-left: 3px solid var(--accent); font-size: 16px; }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 26px; line-height: 1; color: var(--accent); flex-shrink: 0; min-width: 34px; }
.checklist small { display: block; margin-top: 3px; font-size: 14px; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.note-line { margin: 22px 0 28px; max-width: 58ch; color: color-mix(in srgb, var(--paper) 80%, transparent); font-size: 16px; }

.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }
.step-item { background: var(--surface); padding: 26px 22px; }
.step-num { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 34px; color: var(--accent-dim); display: block; margin-bottom: 10px; }
.step-item b { display: block; font-size: 16px; margin-bottom: 6px; }
.step-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* galería: si una foto no existe, su figura se oculta sola (ver servicio.js) */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .galeria { grid-template-columns: 1fr; } }
.galeria figure { margin: 0; overflow: hidden; background: var(--surface); aspect-ratio: 4/3; }
.galeria figure[hidden] { display: none; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeria figure:hover img { transform: scale(1.05); }

.faq-list { max-width: 76ch; display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--surface); padding: 22px 24px; }
.alt-band .faq-list details { background: var(--white); }
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: 'IBM Plex Mono', monospace; font-size: 20px; color: var(--ink-faint); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; color: var(--accent-dim); }
.faq-list p { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 64ch; }

.related { display: flex; flex-wrap: wrap; gap: 12px; }
.related a { background: var(--surface); padding: 14px 20px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s ease; }
.related a:hover { background: var(--surface-2); }
.related a span { font-family: 'IBM Plex Mono', monospace; color: var(--ink-faint); margin-left: 8px; }

.final { position: relative; padding: 96px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--white); background: var(--ink); overflow: hidden; }
.final::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background-image: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 30px); opacity: .8; }
.final h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 20ch; }
.final p { margin: 0; max-width: 52ch; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.final-icon { width: 56px; height: 56px; }

footer.site { background: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); padding: 52px 0 28px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-row img { height: 30px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; font-size: 14px; font-family: 'IBM Plex Mono', monospace; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: color-mix(in srgb, var(--paper) 50%, transparent); }
.footer-mark { height: 18px; width: auto; vertical-align: middle; margin-right: 8px; opacity: .85; display: inline-block; }

/* ---------- versión simple: tipos de letrero con foto ---------- */
.hero-serv.simple { padding: 48px 0 64px; }
.hero-serv.simple .lead { font-size: 18px; max-width: 46ch; margin: 18px 0 26px; }
.tipos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .tipos { grid-template-columns: 1fr; } }
.tipo { background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.tipo-text { padding: 24px 24px 20px; }
.tipo h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.tipo p { margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: 44ch; }
.tipo figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); margin-top: auto; }
.tipo figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tipo:hover figure img { transform: scale(1.04); }
.checklist.compact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .checklist.compact { grid-template-columns: 1fr; } }
.checklist.compact li { align-items: center; padding: 14px 18px; font-size: 15.5px; }
.sec-tight { padding: 64px 0; }
@media (max-width: 640px) { .sec-tight { padding: 44px 0; } }

/* ---------- páginas legales (privacidad) ---------- */
.hero-serv.legal-hero { padding: 40px 0 48px; }
.hero-serv.legal-hero h1 { max-width: none; font-size: clamp(36px, 5.4vw, 64px); }
.hero-serv.legal-hero .lead { margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .04em; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.legal { max-width: 74ch; padding: 56px 0 72px; }
@media (max-width: 640px) { .legal { padding-top: 40px; padding-bottom: 56px; } }
.legal h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 40px 0 12px; padding-left: 14px; border-left: 4px solid var(--accent-dim); }
.legal p, .legal li { font-size: 16.5px; color: var(--ink-2); max-width: 68ch; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration-color: var(--accent-dim); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.legal .box { background: var(--surface); border-left: 4px solid var(--accent-dim); padding: 18px 20px; margin-top: 12px; }
.legal .box p { margin: 0; }
section.legal { padding-left: 24px; padding-right: 24px; }

/* enlace discreto del pie */
.footer-bottom a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--paper) 30%, transparent); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--accent); text-decoration-color: var(--accent); }
