/* ==========================================================================
   Papelería Mr. López — styles.css
   Sistema de diseño "El taller del papel"
   Paleta: Azul papelería #1976D2 · Verde menta #00BFA5 · Blanco #FFFFFF
   ========================================================================== */

/* ---------- Fuentes locales (OFL) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --azul: #1976d2;
  --azul-600: #1565c0;
  --azul-800: #0d47a1;
  --azul-050: #e3f2fd;
  --menta: #00bfa5;
  --menta-700: #00997f;
  --menta-050: #dff7f2;
  --tinta: #102a43;
  --tinta-2: #33475b;
  --tinta-3: #5b6b7c;
  --papel: #f6f9fc;
  --blanco: #ffffff;
  --lapiz: #ffc53d;
  --linea: #dce7f3;
  --error: #c62828;
  --ok: #15803d;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(16, 42, 67, 0.07), 0 2px 8px rgba(16, 42, 67, 0.06);
  --shadow-m: 0 4px 14px rgba(16, 42, 67, 0.1), 0 12px 32px rgba(16, 42, 67, 0.09);
  --shadow-l: 0 10px 28px rgba(16, 42, 67, 0.16), 0 24px 64px rgba(16, 42, 67, 0.14);

  --header-h: 72px;
  --wrap: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--azul-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--tinta);
  margin: 0 0 0.55em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }
small { font-size: 0.85rem; }
hr { border: 0; border-top: 1px solid var(--linea); margin: 2rem 0; }
::selection { background: var(--menta); color: var(--tinta); }

/* Foco visible accesible */
:focus-visible {
  outline: 3px solid var(--menta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  background: var(--tinta);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4.5vw, 3.5rem) 0; }
.section--papel {
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(25, 118, 210, 0.045) 30px 31px),
    var(--papel);
}
.section--azul {
  background: linear-gradient(135deg, var(--azul-800) 0%, var(--azul-600) 60%, var(--azul) 100%);
  color: #eaf3fe;
}
.section--azul h1, .section--azul h2, .section--azul h3, .section--azul h4 { color: #fff; }
.section--azul a { color: #b2e9de; }
.section--menta { background: linear-gradient(135deg, #00796b 0%, var(--menta-700) 100%); color: #eafffb; }
.section--menta h1, .section--menta h2, .section--menta h3 { color: #fff; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--tinta-2); max-width: 62ch; }
.section--azul .lead, .section--menta .lead { color: #d9ecff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--menta-700);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--menta);
}
.section--azul .eyebrow, .section--menta .eyebrow { color: #9df0e0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: 0 0 auto; }
.btn--primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.35);
}
.btn--primary:hover { background: var(--azul-600); color: #fff; box-shadow: 0 10px 26px rgba(25, 118, 210, 0.42); }
.btn--menta {
  background: var(--menta);
  color: var(--tinta);
  box-shadow: 0 6px 18px rgba(0, 191, 165, 0.35);
}
.btn--menta:hover { background: #0fd3b7; color: var(--tinta); }
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: #1fb959; color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}
.btn--outline:hover { background: var(--azul-050); color: var(--azul-600); }
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--tinta);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.brand__name small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--azul);
  text-transform: uppercase;
}
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tinta-2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--azul-050); color: var(--azul-600); }
.main-nav a[aria-current="page"] { background: var(--azul); color: #fff; }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--tinta);
  border-radius: 2px;
  margin: 5px 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--shadow-m);
    padding: 0.8rem 1.25rem 1.4rem;
    transform: translateY(-115%);
    transition: transform 0.25s ease;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-nav a { padding: 0.85rem 1rem; border-radius: var(--radius-s); font-size: 1.05rem; }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(0, 191, 165, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(25, 118, 210, 0.12), transparent 55%),
    var(--papel);
}
.hero__grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl {
  color: var(--azul);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.32em;
  background: var(--menta);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.4rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.92rem;
  color: var(--tinta-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { color: var(--menta-700); flex: 0 0 auto; }

.hero__media { position: relative; }
.hero__media .photo {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l);
  transform: rotate(1.6deg);
  border: 6px solid #fff;
}
.hero__media .photo img { border-radius: calc(var(--radius-xl) - 8px); }
.hero__sticker {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: var(--lapiz);
  color: var(--tinta);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  transform: rotate(-4deg);
  max-width: 210px;
}
.hero__sticker small { display: block; font-weight: 600; font-size: 0.78rem; }
@media (max-width: 560px) {
  .hero__sticker { left: 6px; bottom: 12px; max-width: 180px; font-size: 0.85rem; }
}

/* Marquee de confianza */
.trustbar { background: var(--tinta); color: #cfe0f2; }
.trustbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.trustbar li { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.trustbar svg { color: var(--menta); }

/* ---------- Composición editorial alternada ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.2rem; }
  .split--media-left > .split__media { order: -1; }
}
.split__media { position: relative; }
.split__media .photo {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}
.split__media .photo--tilt-r { transform: rotate(1.4deg); }
.split__media .photo--tilt-l { transform: rotate(-1.4deg); }
.split__media .tape {
  position: absolute;
  top: -14px;
  left: 42px;
  width: 110px;
  height: 30px;
  background: rgba(255, 197, 61, 0.75);
  transform: rotate(-5deg);
  border-radius: 3px;
  box-shadow: var(--shadow-s);
}
.split__media figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--tinta-3);
}

.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--tinta-2);
}
.checklist svg { flex: 0 0 auto; margin-top: 0.2rem; color: var(--menta-700); }

/* ---------- Tarjetas ---------- */
.cards {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  padding: 1.6rem;
  box-shadow: var(--shadow-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: #bfd8f2;
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--azul-050);
  color: var(--azul);
  margin-bottom: 1.05rem;
}
.card--menta .card__icon { background: var(--menta-050); color: var(--menta-700); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--tinta-2); font-size: 0.96rem; flex: 1; }
.card .precio {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--azul-600);
  font-size: 1.28rem;
  margin: 0.5rem 0 0.9rem;
}
.card .precio small { font-size: 0.78rem; font-weight: 600; color: var(--tinta-3); }
.card__link { margin-top: auto; }

/* ---------- Categorías (composición asimétrica) ---------- */
.cats { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cats > *:nth-child(1) { grid-column: span 3; }
  .cats > *:nth-child(2) { grid-column: span 3; }
  .cats > *:nth-child(3) { grid-column: span 2; }
  .cats > *:nth-child(4) { grid-column: span 2; }
  .cats > *:nth-child(5) { grid-column: span 2; }
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  border-radius: var(--radius-l);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-m);
  isolation: isolate;
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: -1;
}
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 67, 0) 30%, rgba(16, 42, 67, 0.86) 100%);
  z-index: -1;
}
.cat:hover img { transform: scale(1.05); }
.cat__body { padding: 1.3rem 1.4rem; }
.cat__body h3 { color: #fff; margin-bottom: 0.15rem; }
.cat__body p { margin: 0; font-size: 0.9rem; color: #d7e6f7; }
.cat__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--azul-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Tablas de precios ---------- */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-l); box-shadow: var(--shadow-s); border: 1px solid var(--linea); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table caption {
  text-align: left;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tinta);
  background: var(--azul-050);
  caption-side: top;
}
.price-table th, .price-table td { padding: 0.85rem 1.3rem; text-align: left; }
.price-table thead th {
  background: var(--tinta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.price-table tbody tr:nth-child(even) { background: var(--papel); }
.price-table tbody tr:hover { background: var(--azul-050); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .p {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--azul-600);
}
.note-prices {
  font-size: 0.85rem;
  color: var(--tinta-3);
  margin-top: 0.9rem;
}

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: paso; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: paso;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-s);
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--menta);
  display: block;
  margin-bottom: 0.4rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--tinta-2); font-size: 0.95rem; }

/* ---------- CTA banda ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0, 191, 165, 0.35), transparent 55%),
    linear-gradient(120deg, var(--azul-800), var(--azul-600));
  color: #eaf3fe;
  padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-l);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.08);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #cfe6ff; max-width: 60ch; }
.cta-band .btn { margin-top: 0.6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-m);
  margin-bottom: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tinta);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--azul);
  border-bottom: 2.5px solid var(--azul);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details[open] summary { color: var(--azul-600); }
.faq details > div {
  padding: 0 1.3rem 1.2rem;
  color: var(--tinta-2);
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-s);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(16, 42, 67, 0.85));
  text-align: left;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 8 / 3; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 24, 40, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(100%, 1060px); }
.lightbox img {
  max-height: 78dvh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
}
.lightbox figcaption { color: #cfe0f2; text-align: center; padding: 0.9rem 0 0; font-size: 0.92rem; }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--menta-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.post-card h3 { margin-bottom: 0.4rem; }
.post-card h3 a { color: var(--tinta); text-decoration: none; }
.post-card p { color: var(--tinta-2); font-size: 0.94rem; flex: 1; }
.post-card .more {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--azul);
  font-size: 0.92rem;
  margin-top: 0.7rem;
}

.article { max-width: 780px; margin-inline: auto; }
.article > img { border-radius: var(--radius-l); box-shadow: var(--shadow-m); margin: 1.4rem 0 1.8rem; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.8rem; }
.article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  color: var(--tinta-3);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; gap: 1.05rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.field label .req { color: var(--error); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--tinta);
  background: #fff;
  border: 1.5px solid #c4d6ea;
  border-radius: var(--radius-s);
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}
.field .hint { font-size: 0.8rem; color: var(--tinta-3); margin-top: 0.3rem; }
.field .error-msg {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--error);
  margin-top: 0.3rem;
}
.field.has-error .error-msg { display: block; }
.form__privacy {
  font-size: 0.85rem;
  color: var(--tinta-2);
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
}
.form__status {
  display: none;
  border-radius: var(--radius-s);
  padding: 1rem 1.2rem;
  font-weight: 600;
}
.form__status.is-ok { display: block; background: #e6f6ec; color: var(--ok); border: 1px solid #b9e6c7; }
.form__status.is-error { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c6c2; }

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--tinta-2);
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); }

/* ---------- Contacto layout ---------- */
.contact-grid { display: grid; gap: 2.2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.info-list li { display: flex; gap: 0.85rem; margin-bottom: 1.05rem; align-items: flex-start; }
.info-list svg { flex: 0 0 auto; color: var(--azul); margin-top: 0.15rem; }
.info-list strong { display: block; font-family: var(--font-display); }
.info-list span { color: var(--tinta-2); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px dashed var(--linea); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--tinta-2); }
.map-frame {
  width: 100%;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Cotizador ---------- */
.quote {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--linea);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.quote__head {
  background: linear-gradient(120deg, var(--azul-600), var(--azul));
  color: #fff;
  padding: 1.4rem 1.6rem;
}
.quote__head h2, .quote__head h3 { color: #fff; margin: 0; }
.quote__head p { margin: 0.3rem 0 0; color: #d3e8ff; font-size: 0.92rem; }
.quote__body { padding: 1.5rem 1.6rem; display: grid; gap: 1.2rem; }
@media (min-width: 880px) { .quote__body { grid-template-columns: 1.15fr 0.85fr; } }
.quote__items { display: grid; gap: 0.65rem; }
.q-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  align-items: center;
  background: var(--papel);
  border: 1.5px solid var(--linea);
  border-radius: var(--radius-m);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-item:hover { border-color: #b6cfe9; }
.q-item__name { font-weight: 600; font-size: 0.95rem; }
.q-item__name small { display: block; font-weight: 500; color: var(--tinta-3); font-size: 0.8rem; }
.q-item__price { font-family: var(--font-display); font-weight: 700; color: var(--azul-600); font-size: 0.92rem; text-align: right; }
.q-item__qty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid #c4d6ea;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.qty-btn:hover { background: var(--azul-050); border-color: var(--azul); }
.q-item__qty input {
  width: 74px;
  text-align: center;
  font: inherit;
  font-weight: 700;
  border: 1.5px solid #c4d6ea;
  border-radius: 10px;
  padding: 0.35rem 0.4rem;
}
.q-item__qty input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15); }
.q-item__sub { margin-left: auto; font-weight: 700; color: var(--tinta-2); font-size: 0.92rem; min-width: 74px; text-align: right; }

.quote__summary {
  background: var(--tinta);
  color: #dbe9f8;
  border-radius: var(--radius-l);
  padding: 1.3rem 1.4rem;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.quote__summary h3 { color: #fff; }
.quote__lines { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 260px; overflow-y: auto; }
.quote__lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; margin-bottom: 0.45rem; }
.quote__lines li span:last-child { font-weight: 700; white-space: nowrap; }
.quote__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  padding-top: 0.9rem;
  margin-bottom: 1.1rem;
}
.quote__total strong { font-family: var(--font-display); font-size: 1.05rem; }
.quote__total .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--menta); }
.quote__empty { font-size: 0.9rem; color: #9fb6cf; font-style: italic; }
.quote__note { font-size: 0.78rem; color: #9fb6cf; margin-top: 0.8rem; }

/* ---------- Catálogo: buscador y filtros ---------- */
.catalog-tools { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
@media (min-width: 860px) { .catalog-tools { grid-template-columns: 1fr auto; align-items: center; } }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  font: inherit;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border: 1.5px solid #c4d6ea;
  border-radius: 999px;
  background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15); }
.search-box svg {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tinta-3);
  pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #c4d6ea;
  background: #fff;
  color: var(--tinta-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.catalog-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.prod {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  padding: 1.4rem;
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.prod__cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--menta-700);
  margin-bottom: 0.4rem;
}
.prod h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.prod p { font-size: 0.9rem; color: var(--tinta-2); flex: 1; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.9rem; }
.prod__price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--azul-600); }
.prod__price small { font-size: 0.75rem; color: var(--tinta-3); font-weight: 600; }
.catalog-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tinta-3);
}
.catalog-empty.is-visible { display: block; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--tinta-3); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.3rem; }
.crumbs li:not(:last-child)::after { content: "›"; color: #9fb6cf; }
.crumbs a { color: var(--tinta-3); }
.crumbs [aria-current] { color: var(--tinta); font-weight: 600; }

/* ---------- Feature strip (nosotros valores) ---------- */
.values { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value {
  text-align: center;
  padding: 1.8rem 1.3rem;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.value svg { color: var(--azul); margin-bottom: 0.8rem; }
.value h3 { font-size: 1.05rem; }
.value p { font-size: 0.9rem; color: var(--tinta-2); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 640px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--azul), var(--menta));
}
.timeline li { position: relative; padding: 0 0 1.6rem 3.2rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--azul);
}
.timeline h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--tinta-2); font-size: 0.94rem; }
.timeline .year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--menta-700);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tinta);
  color: #b9cadb;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.site-footer a { color: #d6e6f7; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding: clamp(2.6rem, 5vw, 4rem) 0 2rem;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h2, .footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: 0.2rem; color: var(--menta); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.cookie-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #d6e6f7;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cookie-link:hover { color: #fff; }

/* ---------- Botones flotantes ---------- */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fab-wa:hover { transform: scale(1.07); color: #fff; }
.fab-wa::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Chatbot ---------- */
.chat-toggle {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: var(--azul);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(25, 118, 210, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chat-toggle:hover { transform: translateY(-2px); background: var(--azul-600); }
.chat-toggle svg { flex: 0 0 auto; }
.chat-toggle .close-ic { display: none; }
.chat-toggle[aria-expanded="true"] .open-ic { display: none; }
.chat-toggle[aria-expanded="true"] .close-ic { display: block; }
.chat-toggle .label-full { display: none; }
@media (min-width: 560px) { .chat-toggle .label-full { display: inline; } }

.chat-panel {
  position: fixed;
  z-index: 160;
  right: 12px;
  bottom: 12px;
  left: 12px;
  top: auto;
  height: min(600px, calc(100dvh - 110px));
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--linea);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
@media (min-width: 560px) {
  .chat-panel {
    left: auto;
    right: 18px;
    bottom: 158px;
    width: 392px;
    height: min(620px, calc(100dvh - 190px));
  }
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-panel__head {
  background: linear-gradient(120deg, var(--azul-600), var(--azul));
  color: #fff;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-panel__head img { width: 42px; height: 42px; border-radius: 12px; background: #fff; padding: 3px; }
.chat-panel__head .who { line-height: 1.25; }
.chat-panel__head .who strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.chat-panel__head .who small { font-size: 0.76rem; color: #c8e4ff; }
.chat-panel__head .who .st { display: inline-flex; align-items: center; gap: 0.3rem; }
.chat-panel__head .who .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-restart {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.chat-restart:hover { background: rgba(255, 255, 255, 0.28); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem 0.6rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(25, 118, 210, 0.05) 26px 27px),
    var(--papel);
}
.msg { display: flex; gap: 0.55rem; margin-bottom: 0.85rem; max-width: 92%; }
.msg__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--azul);
  display: grid;
  place-items: center;
  color: #fff;
  margin-top: 2px;
}
.msg__bubble {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 4px 16px 16px 16px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  color: var(--tinta);
  box-shadow: var(--shadow-s);
}
.msg__bubble a { font-weight: 600; }
.msg--user { margin-left: auto; flex-direction: row-reverse; }
.msg--user .msg__bubble {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
  border-radius: 16px 4px 16px 16px;
}
.msg--user .msg__avatar { background: var(--menta-700); }
.msg--sys .msg__bubble { background: var(--menta-050); border-color: #b9ece2; }
.chat-typing { display: inline-flex; gap: 4px; padding: 0.4rem 0.2rem; }
.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fb6cf;
  animation: blink 1.2s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.3; } 35% { opacity: 1; } }

.chat-quick {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.9rem;
  background: var(--papel);
  border-top: 1px solid var(--linea);
}
.chat-quick button {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--azul);
  background: #fff;
  border: 1.5px solid #c4d6ea;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-quick button:hover { border-color: var(--azul); background: var(--azul-050); }

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border-top: 1px solid var(--linea);
}
.chat-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-form input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  border: 1.5px solid #c4d6ea;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}
.chat-form input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15); }
.chat-form button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--azul);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.chat-form button:hover { background: var(--azul-600); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  z-index: 180;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 1.2rem 1.3rem;
  display: none;
}
@media (min-width: 720px) { .cookie-banner { left: 24px; right: auto; max-width: 480px; bottom: 24px; } }
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.cookie-banner p { font-size: 0.86rem; color: var(--tinta-2); margin-bottom: 0.9rem; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner .btn { flex: 1 1 130px; }

/* ---------- Página 404 ---------- */
.e404 { text-align: center; padding: clamp(3.5rem, 9vw, 7rem) 0; }
.e404 .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--azul);
  position: relative;
  display: inline-block;
}
.e404 .code span { color: var(--menta); }
.e404 p { color: var(--tinta-2); max-width: 46ch; margin: 0.6rem auto 1.6rem; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.maxw-60 { max-width: 60ch; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: var(--menta-050);
  color: var(--menta-700);
}
.badge--azul { background: var(--azul-050); color: var(--azul-600); }
.badge--lapiz { background: #fff4d6; color: #92610a; }
.grid-2 { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.grid-3 { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.img-rounded { border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.tag-list li { margin: 0; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fab-wa::after { animation: none; display: none; }
}

/* ---------- Animación entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.is-in { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .fab-wa, .chat-toggle, .chat-panel, .cookie-banner, .hero__actions { display: none !important; }
  body { color: #000; }
}
