/* ==========================================================================
   Anuncioparriba — Estilo "Caliente" (España + LATAM)
   Paleta de fuego: rojo guía + naranja + amarillo · sans-serif con fuerza.
   Mismo esqueleto que el sitio italiano, pero con el volumen más alto:
   bloques de color saturado, tipografía grande, CTAs grandes y contrastadas.
   ========================================================================== */

/* Tipos: Poppins (títulos/menú) + Inter (texto), AUTO-ALOJADAS en assets/fonts/
   (woff2 latin + latin-ext). Sin llamadas a Google: cero terceros, cero envío de
   IP fuera. Si falta la fuente, se cae a la fuente del sistema. */
@import url('fonts.css');

/* ---- Tokens de marca -------------------------------------------------- */
:root {
  --rojo:        #E2001A;   /* color guía (de "parriba") */
  --rojo-dark:   #bd0016;   /* hover botones */
  --rojo-ink:    #a30015;   /* texto rojo sobre fondo claro */
  --rojo-soft:   #ffe8ea;   /* rellenos suaves */
  --naranja:     #F39200;
  --naranja-dark:#d67f00;
  --naranja-ink: #9a5d00;   /* texto naranja sobre fondo claro */
  --naranja-soft:#fff0d9;
  --amarillo:    #FFC20E;
  --amarillo-soft:#fff6d6;

  --ink:    #1B1B1F;        /* texto principal / "Anuncio" del logo */
  --body:   #3a3338;        /* texto corriente */
  --muted:  #7b7480;        /* texto atenuado */
  --line:   #ece7e9;        /* hairline */
  --line-2: #ddd5d9;

  --bg:      #ffffff;
  --bg-soft: #fff6ef;       /* secciones alternas (tinte cálido) */
  --bg-warm: #fff0e0;
  --bg-dark: #201418;       /* footer cálido casi-negro */

  --grad-fire: linear-gradient(90deg, #E2001A 0%, #F39200 55%, #FFC20E 100%);
  --grad-fire-diag: linear-gradient(125deg, #E2001A 0%, #F36b00 55%, #FFB300 100%);

  --radius:   14px;
  --radius-sm: 9px;
  --maxw:    1140px;
  --pad:     clamp(1.1rem, 4vw, 2rem);

  --shadow-card: 0 1px 2px rgba(27,20,24,.05), 0 10px 26px rgba(27,20,24,.07);
  --shadow-loud: 0 8px 24px rgba(226,0,26,.22);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset ligero ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rojo-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.1; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ---- Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 740px; margin-bottom: 2.4rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rojo); margin-bottom: .7rem;
}
.lead { font-size: 1.18rem; color: var(--body); }
.text-rojo { color: var(--rojo); }
.text-naranja { color: var(--naranja); }
.text-grad { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Botones ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  padding: .8em 1.5em; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--rojo); color: #fff; box-shadow: var(--shadow-loud); }
.btn--primary:hover { background: var(--rojo-dark); }
.btn--accent { background: var(--naranja); color: #fff; }
.btn--accent:hover { background: var(--naranja-dark); }
.btn--ghost { background: #fff; color: var(--rojo-ink); border-color: #f3b9bf; }
.btn--ghost:hover { background: var(--rojo-soft); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--light:hover { background: var(--bg-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Header ----------------------------------------------------------- */
/* Dos niveles: (1) barra de menú fina y sticky · (2) banda con el logo grande */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; display: block; height: 4px; background: var(--grad-fire); }
.topbar__inner { display: flex; align-items: center; gap: 1.1rem; min-height: 54px; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-right: auto; }
.nav a {
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: -.01em; padding: .35rem 0; border-bottom: 3px solid transparent;
  white-space: nowrap; flex-shrink: 0;
}
.nav a:hover { color: var(--rojo); text-decoration: none; }
.nav a.is-active { color: var(--rojo-ink); border-bottom-color: var(--naranja); }
.header-tools { display: flex; align-items: center; gap: .9rem; margin-left: auto; }

.brandband { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.brandband__inner { display: flex; justify-content: center; align-items: center; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 132px; width: auto; }
.brand:hover { text-decoration: none; }

/* Selector de idioma */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .35em; cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .45em .65em; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
}
.lang__btn:hover { border-color: var(--rojo); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); padding: .35rem; display: none;
}
.lang__menu.open { display: block; }
.lang__menu button {
  display: flex; width: 100%; gap: .5em; align-items: center; justify-content: space-between;
  background: none; border: 0; border-radius: 7px; padding: .5em .6em; font: inherit;
  font-size: .9rem; color: var(--ink); cursor: pointer; text-align: left;
}
.lang__menu button:hover { background: var(--bg-soft); }
.lang__menu button[aria-current="true"] { color: var(--rojo-ink); font-weight: 700; }
.lang__soon { font-size: .68rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 .4em; }

/* Hamburguesa */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.6rem, 6vw, 4.8rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 380px at 88% -8%, var(--amarillo-soft), transparent 70%),
    radial-gradient(520px 360px at 0% 110%, var(--rojo-soft), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: 1.24rem; color: var(--body); max-width: 38ch; margin-bottom: 1.6rem; }
.hero__art { width: 100%; height: auto; }

/* ---- Card / grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-card); height: 100%;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--body); margin-bottom: 0; font-size: .98rem; }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--rojo-soft); color: var(--rojo-ink);
}
.icon svg { width: 27px; height: 27px; }
.icon--alt { background: var(--naranja-soft); color: var(--naranja-ink); }
.icon--amar { background: var(--amarillo-soft); color: #8a6400; }

/* feature list (Por qué una agencia) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; margin-top: 1.5rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon { flex: 0 0 auto; margin-bottom: 0; width: 46px; height: 46px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.feature p { margin: 0; font-size: .96rem; color: var(--body); }

/* pullquote / narración */
.pullquote {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; color: var(--ink);
  letter-spacing: -.025em; line-height: 1.25; margin: 0 0 1.2rem; max-width: 26ch;
}

/* áreas de anuncio */
.area-card { position: relative; }
.area-card .tag { font-size: .78rem; font-weight: 600; color: var(--muted); }
.area-card.is-perimeter { border-style: dashed; border-color: var(--line-2); background: var(--bg-soft); box-shadow: none; }
.area-note { margin-top: 1.4rem; font-size: 1.05rem; color: var(--ink); font-weight: 700; }

/* steps (cómo funciona) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; padding-top: .5rem; }
.step__n {
  counter-increment: step; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad-fire-diag); color: #fff;
  font-weight: 800; font-family: var(--font-display); margin-bottom: .8rem;
}
.step__n::before { content: counter(step); }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---- Servicios (página agencia) -------------------------------------- */
.service { padding: 1.8rem; }
.service ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--body); font-size: .96rem; }
.service li { margin-bottom: .3rem; }

/* ejemplos del Cartel para imprimir */
.cartel-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0 .4rem; }
.cartel-examples figure { margin: 0; }
.cartel-examples img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); background: #fff; }
.cartel-examples figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .45rem; }
@media (max-width: 560px) { .cartel-examples { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* before/after slider */
.ba {
  position: relative; max-width: 640px; margin-inline: auto; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 2; user-select: none;
  box-shadow: var(--shadow-card); background: #000;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__label {
  position: absolute; top: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; background: rgba(27,20,24,.78); padding: .3em .6em;
  border-radius: 6px; pointer-events: none;
}
.ba__label--before { left: 10px; }
.ba__label--after { right: 10px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__divider { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 50%; transform: translateX(-1.5px); pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; pointer-events: none;
  display: flex; align-items: center; justify-content: center; color: var(--rojo-ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ba__handle svg { width: 22px; height: 22px; }
.ba__caption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* ---- Banda CTA -------------------------------------------------------- */
.cta-band { background: var(--grad-fire-diag); color: #fff; border-radius: 18px; padding: clamp(2.2rem, 5vw, 3.2rem); text-align: center; box-shadow: var(--shadow-loud); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; opacity: .95; max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; font-size: 1.12rem; }

/* ---- Notas / placeholder ---------------------------------------------- */
.notice {
  border: 1px dashed var(--line-2); background: var(--bg-soft); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--muted);
}
.notice strong { color: var(--ink); }
.flag-legal {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  color: var(--rojo-ink); background: var(--rojo-soft); border-radius: 5px; padding: .15em .5em;
}

/* placeholder página en construcción */
.coming { text-align: center; max-width: 600px; margin-inline: auto; padding-block: clamp(3rem, 9vw, 6rem); }
.coming .icon { margin-inline: auto; }
.coming .phase { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rojo-ink); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: #d8c9cc; margin-top: 3rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--grad-fire); }
.site-footer a { color: #d8c9cc; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.foot-brand img { height: 104px; width: auto; border-radius: 14px; }
.foot-brand p { margin-top: 1rem; font-size: .95rem; max-width: 32ch; }
.foot-legal-id { font-size: .85rem; color: #b29ba0; line-height: 1.6; }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #b29ba0;
}

/* ---- Configurador (Fase 2) ------------------------------------------- */
.cfg { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cfg__aside { position: sticky; top: 68px; }
.cstep { margin-bottom: 2.2rem; }
.cstep__title { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin-bottom: 1rem; }
.cstep__n { width: 30px; height: 30px; border-radius: 50%; background: var(--rojo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 800; flex: 0 0 auto; }
.cstep.is-locked { opacity: .5; pointer-events: none; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cat-btn { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; cursor: pointer; font: inherit; display: flex; gap: .85rem; align-items: center; transition: .12s ease; }
.cat-btn:hover { border-color: var(--rojo); }
.cat-btn.sel { border-color: var(--rojo); background: var(--rojo-soft); }
.cat-btn .icon { margin: 0; width: 44px; height: 44px; flex: 0 0 auto; }
.cat-btn b { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.portal { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow-card); background: #fff; }
.portal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.portal__name { font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: var(--ink); }
.portal__name a { color: var(--ink); }
.portal__ext { font-size: .8rem; color: var(--muted); }
.portal__intro { font-size: .9rem; color: var(--muted); margin: .35rem 0 1rem; }
.field { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.field > label { font-size: .9rem; color: var(--body); min-width: 86px; }
.cfg select { font: inherit; font-size: .95rem; padding: .5em .7em; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: .9rem; padding: .5em .95em; background: #fff; border: 0; border-right: 1px solid var(--line-2); cursor: pointer; color: var(--body); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--rojo); color: #fff; }
.price-tag { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--rojo-ink); font-size: 1.05rem; white-space: nowrap; }
.price-tag.muted { color: var(--muted); font-weight: 700; }
.quote-box { background: var(--naranja-soft); border: 1px solid #f6d9ad; border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; color: var(--naranja-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chip-quote { font-size: .7rem; font-weight: 800; background: var(--naranja-soft); color: var(--naranja-ink); border-radius: 5px; padding: .12em .5em; text-transform: uppercase; letter-spacing: .03em; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.svc { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; display: flex; gap: .6rem; align-items: flex-start; background: #fff; }
.svc input[type=checkbox] { margin-top: .3rem; width: 16px; height: 16px; flex: 0 0 auto; }
.svc .svc-main { flex: 1; min-width: 0; }
.svc b { font-size: .94rem; color: var(--ink); font-weight: 700; display: flex; gap: .4rem; align-items: baseline; justify-content: space-between; }
.svc small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.qty { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .85rem; color: var(--body); }
.qty input { width: 48px; text-align: center; padding: .3em; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); padding: 1.2rem 1.3rem; }
.summary h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: .3rem; }
.sum-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.sum-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.sum-list .l { color: var(--body); }
.sum-list .p { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sum-empty { color: var(--muted); font-size: .9rem; padding: .6rem 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; font-family: var(--font-display); }
.sum-total .t { font-weight: 900; font-size: 1.5rem; color: var(--ink); }
.sum-quote { margin-top: .9rem; font-size: .85rem; color: var(--naranja-ink); background: var(--naranja-soft); border-radius: 8px; padding: .65rem .85rem; }
.sum-quote ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.sum-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; line-height: 1.5; }
.summary .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.cart-flash { background: var(--rojo-soft); border: 1px solid #f3b9bf; border-radius: 8px; padding: .6rem .8rem; font-size: .88rem; color: var(--rojo-ink); margin-bottom: .9rem; }
.cart-flash a { font-weight: 700; }

/* ---- Carrito (Fase 3) ------------------------------------------------- */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; color: var(--ink); }
.cart-link:hover { background: var(--bg-soft); text-decoration: none; }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: .68rem; font-weight: 800; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; }
.cart-badge[hidden] { display: none; }
.cart-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-aside { position: sticky; top: 68px; }
.cart-group { margin-bottom: 1.4rem; }
.cart-group h3 { font-family: var(--font-display); font-size: .9rem; color: var(--muted); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { font-weight: 700; color: var(--ink); display: block; font-size: .98rem; }
.ci-main small { color: var(--muted); font-size: .85rem; }
.ci-qty { display: inline-flex; align-items: center; gap: .3rem; }
.ci-qty button { width: 30px; height: 30px; border: 1px solid var(--line-2); background: #fff; border-radius: 7px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.ci-qty button:hover { border-color: var(--rojo); }
.ci-qty input { width: 42px; text-align: center; padding: .35em; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; }
.ci-price { font-family: var(--font-display); font-weight: 800; color: var(--ink); min-width: 80px; text-align: right; }
.ci-remove { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.35rem; line-height: 1; padding: .15rem .45rem; border-radius: 6px; }
.ci-remove:hover { color: var(--rojo-ink); background: var(--rojo-soft); }
.cart-warn { background: var(--naranja-soft); border: 1px solid #f6d9ad; color: var(--naranja-ink); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); max-width: 460px; margin-inline: auto; }
.cart-empty .icon { margin-inline: auto; }
.cart-clear { background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; margin-top: .8rem; padding: 0; }
.cart-clear:hover { color: var(--rojo-ink); }

/* ---- Presupuesto compartible (Fase 4) -------------------------------- */
.quote-create { margin-top: 1rem; }
.quote-link { margin-top: .8rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; }
.quote-link[hidden] { display: none; }
.quote-link label { font-size: .78rem; color: var(--muted); display: block; margin-bottom: .35rem; }
.quote-link input { width: 100%; font: inherit; font-size: .8rem; padding: .5em; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; color: var(--ink); }
.ql-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.ql-actions button, .ql-actions .btn { flex: 1; width: auto; font-size: .85rem; padding: .55em .8em; margin: 0; justify-content: center; }
.ql-actions button { border: 1px solid var(--line-2); background: #fff; border-radius: 7px; cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ql-actions button:hover { border-color: var(--rojo); }
.ql-ref { font-size: .78rem; color: var(--muted); margin: .55rem 0 0; }
.quote-meta { background: var(--rojo-soft); border: 1px solid #f3b9bf; border-radius: 10px; padding: .85rem 1rem; font-size: .92rem; color: var(--rojo-ink); margin-bottom: 1.2rem; line-height: 1.5; }
.quote-expired { text-align: center; max-width: 540px; margin-inline: auto; padding: 2.5rem 1rem; }
.quote-expired .icon { margin-inline: auto; }

/* ---- Páginas legales / prose / contacto (Fase 5) --------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.12rem; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2rem; margin: .6rem 0 1rem; }
.prose li { margin-bottom: .4rem; }
.legal-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.legal-banner { background: var(--naranja-soft); border: 1px solid #f6d9ad; color: var(--naranja-ink); border-radius: 10px; padding: .85rem 1.1rem; font-size: .9rem; margin-bottom: 1.6rem; line-height: 1.5; }
.legal-banner strong { color: var(--naranja-ink); }
.id-table { width: 100%; border-collapse: collapse; max-width: 620px; margin: 1rem 0; }
.id-table th, .id-table td { text-align: left; padding: .7rem .2rem; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.id-table th { color: var(--muted); font-weight: 500; width: 40%; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow-card); background: #fff; }
.contact-card .icon { margin-bottom: .7rem; }
.contact-card b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: .15rem; font-family: var(--font-display); }
.contact-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.contact-card a { font-weight: 700; }
.hours-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; max-width: 420px; }
.hours-box .row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .95rem; }
.hours-box .row + .row { border-top: 1px solid var(--line); }

/* lista "solo a contacto" (otros portales — enlazable, fuera del checkout) */
.contacto-cat { margin-top: 2rem; }
.contacto-cat h3 { font-size: 1.08rem; color: var(--ink); }
.contacto-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .55rem; }
.contacto-list li { border: 1px solid var(--line); border-radius: 8px; padding: .65rem .85rem; background: var(--bg-soft); }
.contacto-list b { color: var(--ink); display: block; font-size: .94rem; font-weight: 700; }
.contacto-list .dom { color: var(--rojo-ink); font-size: .84rem; }
.contacto-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
/* nota neutra para categorías sensibles (regla general del sitio) */
.sensitive-note { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--naranja); border-radius: 8px; padding: .7rem .95rem; font-size: .88rem; color: var(--body); margin: 1rem 0; }

/* ---- Checkout + placeholder pago (Fase 6) ---------------------------- */
.field-row { margin-bottom: .9rem; }
.field-row label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.field-row input, .field-row textarea { width: 100%; font: inherit; font-size: .95rem; padding: .6em .7em; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px var(--rojo-soft); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .2rem 0 1.4rem; }
.pay-placeholder { border: 2px dashed var(--rojo); background: var(--rojo-soft); border-radius: 14px; padding: 1.8rem 1.4rem; text-align: center; color: var(--rojo-ink); margin-top: .5rem; }
.pay-placeholder .icon { margin: 0 auto .6rem; background: #fff; }
.pay-placeholder h3 { color: var(--rojo-ink); margin: 0 0 .3rem; }
.pay-placeholder p { font-size: .9rem; color: var(--rojo-ink); margin: 0 auto; max-width: 46ch; }
.pay-descriptor { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.checkout-success { text-align: center; max-width: 580px; margin-inline: auto; padding: 2.5rem 1rem; }
.checkout-success .icon { margin: 0 auto 1rem; width: 64px; height: 64px; }
.checkout-success .ref { display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--rojo-ink); background: var(--rojo-soft); border-radius: 8px; padding: .3em .8em; margin: .4rem 0 1rem; }

/* ---- Skip link & a11y ------------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6em 1em; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: auto; order: -1; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1rem; box-shadow: var(--shadow-card);
  }
  .site-header.open .nav a { padding: .85rem 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .header-tools .btn { display: none; }
  .brandband__inner { padding-block: 11px; }
  .brand img { height: 109px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand img { height: 95px; }
  .cat-grid, .svc-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 900px) {
  .cfg, .cart-wrap { grid-template-columns: 1fr; }
  .cfg__aside, .cart-aside { position: static; }
}
