/* =========================================================================
   Alquilando Eventos — estilos (mobile-first, sin dependencias)
   Identidad: azul #1B78D4 (único color de marca), blanco y tipografía Jost
   ========================================================================= */

/* ---------- Jost (autoalojada, licencia libre SIL OFL — ver assets/fonts/OFL-Jost.txt) ----------
   Alternativa gratuita a Futura. Se sirve desde la propia web: sin Google
   Fonts, sin cookies ni peticiones a terceros. Subconjunto latino
   (español, catalán y símbolos habituales). */
@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Color */
  --blue: #1B78D4;          /* azul de marca: único color de acento */
  --blue-soft: rgba(27, 120, 212, .06);  /* mismo azul, transparente (fondos hover) */
  --blue-ring: rgba(27, 120, 212, .2);   /* mismo azul, transparente (foco) */
  --ink: #1D2430;
  --muted: #5E6773;
  --line: #E4E8EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;

  /* Tipografía */
  --font-jost: "Jost", sans-serif;
  --font-display: var(--font-jost);
  --font-body: var(--font-jost);

  /* Espaciado y medidas */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font: 500 .95rem/1 var(--font-display); letter-spacing: .04em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { opacity: .88; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand__logo { width: 104px; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.site-header__actions .btn { display: none; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 2rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list a[aria-current="page"] { color: var(--blue); }
.nav__list a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.15rem; text-decoration: none;
}

/* ---------- Hero: carrusel a pantalla completa ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 560px;
  height: calc(100vh - var(--header-h));      /* respaldo */
  height: calc(100svh - var(--header-h));     /* móviles: sin saltos por la barra del navegador */
  background: #1D2430;
}
.hero__slides, .hero__shade { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;                           /* llena la pantalla sin deformar la imagen */
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
/* Capa de contraste: degradado oscuro hacia la zona del texto (abajo e izquierda) */
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 17, 26, .86) 0%, rgba(12, 17, 26, .72) 40%, rgba(12, 17, 26, .5) 62%, rgba(12, 17, 26, .22) 85%, rgba(12, 17, 26, .25) 100%);
}
.hero__inner { position: relative; width: 100%; padding-block: 3rem 6rem; }
.hero__copy { color: #fff; max-width: 640px; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
.hero h1 { font-size: clamp(2.2rem, 7.4vw, 4rem); color: #fff; }
@media (min-width: 640px) { .h1-line { display: block; white-space: nowrap; } }
.hero__lead { margin-top: 1.25rem; font-size: 1.08rem; color: rgba(255, 255, 255, .9); max-width: 48ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; text-shadow: none; }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 1.5rem;
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.hero__dots { display: flex; gap: .5rem; }
.hero__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 22px; height: 2px; background: rgba(255, 255, 255, .45); transition: background-color .3s; }
.hero__dot.is-active::before, .hero__dot:hover::before { background: #fff; }
.hero__pause { width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__pause::before { content: ""; width: 8px; height: 10px; border-inline: 2px solid #fff; box-sizing: border-box; }
.hero__pause[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.no-js .hero__controls { display: none; }

@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero__inner { padding-block: 4rem; }
  .hero__shade {
    background:
      /* zona oscura anclada al ancho del texto (no a % de pantalla): mismo contraste en tableta y escritorio */
      linear-gradient(90deg, rgba(12, 17, 26, .8) 0, rgba(12, 17, 26, .7) calc(50vw - 600px + 760px), rgba(12, 17, 26, .3) calc(50vw - 600px + 1000px), rgba(12, 17, 26, .06) calc(50vw - 600px + 1280px)),
      linear-gradient(to top, rgba(12, 17, 26, .35) 0%, rgba(12, 17, 26, 0) 30%);
  }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4.4rem); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(12, 17, 26, .8) 0, rgba(12, 17, 26, .72) 760px, rgba(12, 17, 26, .35) 980px, rgba(12, 17, 26, .15) 100%),
      linear-gradient(to top, rgba(12, 17, 26, .35) 0%, rgba(12, 17, 26, 0) 30%);
  }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__head h2 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); }
.section__head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }

/* ---------- Índice de categorías ---------- */
.categories { background: var(--bg-soft); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.25rem; background: #fff; text-decoration: none; transition: background-color .2s;
}
.cat-card:hover { background: var(--blue-soft); }
.cat-card__num { font-family: var(--font-display); font-size: 1.4rem; color: var(--blue); }
.cat-card img { width: 72%; margin: .75rem auto 1rem; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card__name { font-family: var(--font-display); font-size: 1.05rem; margin-top: auto; }
.cat-card__count { font-size: .8rem; color: var(--muted); }

/* ---------- Catálogo ---------- */
.catalog { padding-bottom: var(--section); }
.tabs {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
}
.tabs__inner { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tabs__item {
  flex: none; padding: 1.1rem 0 1rem; border-bottom: 2px solid transparent;
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .03em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item[aria-current="true"], .tabs__item[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

.catalog__group { padding-top: clamp(3rem, 7vw, 5rem); }
.js .catalog__group[hidden] { display: none; }
.catalog__head { display: grid; gap: .75rem; margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--blue); }
.catalog__head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--blue); text-transform: uppercase; letter-spacing: .02em; }
.catalog__head p { color: var(--muted); max-width: 52ch; }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
.product { display: flex; flex-direction: column; }
.product__media { background: #fff; border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.product__name { margin-top: 1rem; font-size: 1rem; font-weight: 500; letter-spacing: .01em; }
.product__specs { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.product__note { margin-top: .35rem; font-size: .78rem; color: var(--muted); font-style: italic; }
.variant { margin-top: .9rem; display: grid; gap: .3rem; }
.variant label { font-size: .78rem; color: var(--muted); }
.variant__select {
  height: 40px; padding: 0 2.2rem 0 .75rem; border: 1px solid #CBD2DB; border-radius: var(--radius);
  font: 400 .92rem/1 var(--font-body); color: var(--ink); appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231D2430' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .75rem center;
}
.variant__select:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.product.has-error .variant__select:invalid { border-color: #C0392B; }
.product__order { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #CBD2DB; border-radius: var(--radius); height: 40px; }
.qty__btn { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; font: 400 1.1rem/1 var(--font-body); color: var(--ink); }
.qty__btn:hover { color: var(--blue); }
.qty__input { width: 3.4rem; height: 100%; border: 0; border-inline: 1px solid var(--line); text-align: center; font: 500 .95rem/1 var(--font-body); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input::placeholder { color: var(--muted); font-weight: 400; font-size: .82rem; }
.qty__input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.product.has-error .qty { border-color: #C0392B; }
.product__error { margin-top: .4rem; font-size: .78rem; color: #B03A2E; }
.product__hint { margin-top: .45rem; font-size: .76rem; color: var(--muted); }
.product__hint.is-adjusted { color: var(--blue); }
.selection__pack { display: block; font-size: .78rem; color: var(--muted); }
.product__add {
  padding: .45rem 0; border: 0; background: none; cursor: pointer;
  font: 500 .85rem/1.2 var(--font-display); letter-spacing: .04em; color: var(--blue);
  border-bottom: 1px solid currentColor;
}
.product__add-on { display: none; }
.product__add[aria-pressed="true"] { color: var(--ink); border-bottom-color: transparent; }
.product__add[aria-pressed="true"] .product__add-off { display: none; }
.product__add[aria-pressed="true"] .product__add-on { display: inline; }
.no-js .product__order { display: none; }

.not-found { margin-top: clamp(4rem, 8vw, 6rem); text-align: center; display: grid; justify-items: center; gap: .75rem; }
.not-found__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--blue); }
.not-found p:not(.not-found__title) { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Galería ---------- */
.insp-intro { max-width: 70ch; color: var(--muted); margin-bottom: clamp(2rem, 5vw, 3rem); }
.insp-intro a { color: var(--blue); }
.gallery { columns: 1; column-gap: 1.25rem; }
.gallery__item { margin: 0 0 1.25rem; position: relative; overflow: hidden; break-inside: avoid; }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease); }

.gallery__item figcaption {
  position: absolute; left: 0; bottom: 0; padding: .6rem 1rem;
  background: #fff; font: 500 .78rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 2.5rem; counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step__num { font-family: var(--font-display); color: var(--blue); font-size: 1.1rem; }
.step h3 { font-size: 1.35rem; margin: .75rem 0 .5rem; }
.step p { color: var(--muted); max-width: 36ch; }

/* ---------- Presupuesto ---------- */
.quote { background: var(--bg-soft); }
.quote__inner { display: grid; gap: 3rem; }
.quote__intro h2 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); }
.quote__intro > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.contact-list { font-style: normal; margin-top: 2rem; display: grid; }
.contact-list a, .contact-list p {
  display: grid; gap: .1rem; padding: 1rem 0; border-top: 1px solid var(--line);
  text-decoration: none; font-family: var(--font-display); font-size: 1.1rem;
}
.contact-list a:hover { color: var(--blue); }
.contact-list__label { font: 400 .72rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.form { background: #fff; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); }
.form__grid { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid #CBD2DB; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231D2430' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.field__error { font-size: .8rem; color: #B03A2E; }
.field__hint { font-size: .8rem; color: var(--blue); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; margin: 1.5rem 0; }
.field--check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: .15rem; accent-color: var(--blue); appearance: auto; }
.field--check label { font-weight: 400; color: var(--muted); }
.field--check label span { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.form__status { margin-top: 1rem; font-size: .9rem; }
.form__status.is-error { color: #B03A2E; }
.form__legal { margin-top: 1rem; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Pie ---------- */
.site-footer { background: var(--blue); color: #fff; }
/* Banda de la ayuda pública: fondo blanco limpio, presente en todas las páginas */
.funding { background: #fff; color: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 2.75rem); }
.funding__inner { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.funding__text { font-style: italic; font-size: .95rem; line-height: 1.5; color: #3A4250; max-width: 72ch; }
.funding__logos, .funding__logos img { display: block; max-width: 100%; }
.funding__logos img { width: auto; height: auto; }  /* tamaño real de la imagen: nunca se amplía ni se deforma */
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding-block: clamp(3.5rem, 8vw, 5rem) 3rem; }
.site-footer__inner > :first-child { grid-column: 1 / -1; }
.site-footer__logo { width: 130px; margin-bottom: 1rem; }
.site-footer__title { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .9rem; opacity: .8; }
.site-footer li { padding: .2rem 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .8rem; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }


/* =========================================================================
   Breakpoints
   ========================================================================= */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 3rem 1.5rem; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .gallery { columns: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .site-footer__inner > :first-child { grid-column: auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 92px; }
  .brand__logo { width: 124px; }


  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); gap: 3.5rem 2rem; }
  .catalog__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .catalog__head p { justify-self: end; text-align: right; }

  .gallery { columns: 3; }

  .quote__inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .quote__intro { position: sticky; top: calc(var(--header-h) + 2rem); }

}

/* =========================================================================
   Componentes de la versión multipágina
   ========================================================================= */
.link { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 500; }
.link:hover { opacity: .8; }
.section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section__more { margin-top: clamp(2rem, 5vw, 3rem); }
.container--narrow { max-width: 820px; }

/* Cabecera de subpágina */
.page-hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 22ch; }
.page-hero__lead { margin-top: 1rem; color: var(--muted); max-width: 60ch; font-size: 1.06rem; }
.page-hero__note { display: block; margin-top: .5rem; font-size: .9rem; color: var(--blue); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }


/* Reseñas: cinta continua (marquee infinito, derecha → izquierda, sin pausa)
   - Solo CSS (transform: translate3d) → se ejecuta en la GPU, sin bloquear el hilo principal.
   - main.js duplica la lista una vez (copias con aria-hidden) y calcula la duración
     para mantener la misma velocidad sea cual sea el número de reseñas. */
.reviews {
  overflow: hidden; margin-inline: calc(50% - 50vw);   /* cinta de borde a borde de la pantalla */
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reviews-section { overflow-x: clip; }  /* evita scroll horizontal por el ancho de la barra de desplazamiento */
.reviews__track { display: flex; align-items: stretch; width: max-content; padding-block: .25rem; }
.reviews.is-running .reviews__track {
  animation: reviews-marquee var(--marquee-dur, 400s) linear infinite;
  will-change: transform;
}
@keyframes reviews-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }   /* -50% = exactamente una lista completa */
}
.reviews__item { flex: none; width: 320px; padding-right: 1.25rem; display: flex; } /* separación dentro del ítem: bucle sin salto */
.review {
  width: 100%; padding: 1.5rem; border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: .75rem;
}
.review__stars { color: var(--blue); letter-spacing: .12em; font-size: .95rem; }
.review__text { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.review__author { margin-top: auto; padding-top: .25rem; font-size: .9rem; }
.review__author cite { font-style: normal; font-weight: 500; }
.review__author span { color: var(--muted); }
.reviews__more { margin-top: 2.25rem; }
/* Sin JavaScript o con "reducir movimiento": lista estática desplazable con el dedo/ratón */
.no-js .reviews, .reviews:not(.is-running) { overflow-x: auto; -webkit-mask: none; mask: none; padding-inline: max(var(--gutter), calc(50vw - 600px + var(--gutter))); scrollbar-width: thin; }
.reviews-empty { display: grid; gap: 1.25rem; justify-items: start; color: var(--muted); max-width: 52ch; }

/* Preguntas frecuentes (acordeón) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--font-body); font-size: 1.08rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.faq__item summary:hover .faq__q { color: var(--blue); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--blue); transition: transform .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 68ch; }
.faq-section .faq { max-width: 880px; }
.faq__a a { color: var(--blue); }
.site-footer__address { display: inline-block; line-height: 1.5; }
.faq-page { padding-bottom: var(--section); }
.faq-page > * { max-width: 880px; }
.faq-group + .faq-group { margin-top: clamp(3rem, 7vw, 4.5rem); }
.faq-group h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--blue); margin-bottom: 1.25rem; }
.faq-page__more { margin-top: clamp(3.5rem, 8vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; justify-items: start; }
.faq-page__more p:not(.not-found__title) { color: var(--muted); }
.faq-page__more a:not(.btn) { color: var(--blue); }

/* Banda final de llamada a la acción */
.cta-band { background: var(--bg-soft); padding-block: clamp(4rem, 9vw, 6.5rem); text-align: center; }
.cta-band__inner { display: grid; justify-items: center; gap: 1rem; }
.cta-band h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.cta-band p { color: var(--muted); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; margin-top: 1rem; }

/* Blog */
.posts { display: grid; gap: 3rem 2rem; }
.post-card a { display: grid; gap: .9rem; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg-soft); }
.post-card h2 { font-size: 1.35rem; line-height: 1.25; }
.post-card p { color: var(--muted); }
.post-card a:hover h2 { color: var(--blue); }
.post .page-hero h1 { max-width: none; }
.post__byline { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.post__img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; background: var(--bg-soft); margin-bottom: 2.5rem; }
.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--blue); }
.prose mark { background: #FFF3C4; padding: 0 .2em; }
.legal { padding-bottom: var(--section); }
.legal > * { max-width: 760px; }
.post__more { margin-block: 3.5rem var(--section); padding-top: 2rem; border-top: 1px solid var(--line); }
.post__more-title { font-weight: 500; margin-bottom: .75rem; }
.post__more li { padding: .3rem 0; }
.post__more a { color: var(--blue); }

/* Barra de solicitud (catálogo y resto de páginas cuando hay selección) */
.quote-bar {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%); width: min(calc(100% - 2rem), 720px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem .75rem .75rem 1.25rem; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(29, 36, 48, .12);
}
.quote-bar[hidden] { display: none; }
.quote-bar__text { font-size: .9rem; line-height: 1.35; }
.quote-bar__text [data-quote-count] { font-weight: 600; color: var(--blue); }
.quote-bar__hint { display: block; font-size: .78rem; color: var(--muted); }
.quote-bar .btn { flex: none; }
body.has-quote { padding-bottom: 6rem; }

/* Selección dentro del formulario */
.selection { border: 0; padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); min-width: 0; }
.selection legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .75rem; }
.selection__list li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.selection__list li:last-child { border-bottom: 1px solid var(--line); }
.selection__name { flex: 1; font-size: .95rem; }
.selection__list .qty { height: 36px; }
.selection__remove { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.selection__remove:hover { color: #B03A2E; }
.selection__empty { color: var(--muted); font-size: .92rem; }
.selection__empty a { color: var(--blue); }
.quote__intro h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.quote__faq { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.quote__faq a { color: var(--blue); }

/* Gracias / 404 */
.thanks { padding-block: clamp(4rem, 12vw, 8rem); }
.thanks__inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.thanks h1 { font-size: clamp(2rem, 6vw, 3rem); }
.thanks p { color: var(--muted); max-width: 52ch; }
.thanks__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .posts { grid-template-columns: repeat(3, 1fr); }
}
/* Menú de escritorio: a partir de 1180 px (6 opciones + botón) */
@media (min-width: 1180px) {
  .site-header__actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; border: 0; background: none; margin-left: auto; }
  .nav__list { display: flex; gap: clamp(1.1rem, 1.9vw, 2rem); }
  .nav__list a { padding: .5rem 0; border: 0; font-size: .92rem; letter-spacing: .03em; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header__actions { margin-left: clamp(1.25rem, 2.5vw, 2.5rem); }
}
/* En tabletas el botón del menú y "Pedir presupuesto" conviven */
@media (min-width: 640px) and (max-width: 1179px) {
  .site-header__actions .btn { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
}

/* Banner de cookies */
.cookie {
  position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(29, 36, 48, .16); display: grid; gap: .9rem;
}
.cookie[hidden] { display: none; }
.cookie__title { font-weight: 600; }
.cookie__text { font-size: .9rem; color: var(--muted); }
.cookie__text a { color: var(--blue); }
.cookie__prefs { display: grid; gap: .75rem; padding-block: .25rem; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .86rem; color: var(--muted); cursor: pointer; }
.cookie__opt input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--blue); }
.cookie__opt strong { display: block; color: var(--ink); font-weight: 600; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__actions [hidden] { display: none; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.post-card__date { font-size: .82rem; color: var(--muted); }
@media (min-width: 640px) { .cookie { left: 1.5rem; bottom: 1.5rem; right: auto; } }

/* =========================================================================
   Elementos gráficos de apoyo (manual de marca) — SVG decorativos, aria-hidden
   ========================================================================= */
/* Portada: isotipo blanco sobre el título */
.hero__mark { display: block; width: clamp(56px, 6vw, 76px); height: auto; margin-bottom: 1.25rem; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .25)); }

/* Pasos: pictograma + número */
.step__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.step__icon { height: 40px; width: auto; }

/* Banda final: banderas a los lados (solo pantallas anchas) */
.cta-band { position: relative; overflow: hidden; }
.cta-band__flag { display: none; position: absolute; bottom: 0; height: 78%; width: auto; }
.cta-band__flag--left { left: max(2rem, calc(50% - 560px)); }
.cta-band__flag--right { right: max(2rem, calc(50% - 560px)); }
@media (min-width: 900px) { .cta-band__flag { display: block; } }

/* Cabecera de subpágina: pictograma a la derecha (solo pantallas anchas) */
.page-hero__grid { display: grid; gap: 2rem; align-items: end; }
.page-hero__ornament { display: none; align-items: flex-end; gap: .35rem; }
.page-hero__pict { height: 72px; width: auto; }
.page-hero__pict[src$="mesa-logo.svg"] { height: 46px; }  /* pictograma ancho: más bajo para igualar peso visual */
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .page-hero__ornament { display: flex; }
}

/* Gracias y 404: isotipo azul */
.thanks__mark { width: 96px; height: auto; margin-bottom: .5rem; }

/* Descarga del catálogo en PDF */
.page-hero__actions { margin-top: 1.5rem; }
.btn--download svg { flex: none; }
.btn__meta { font: 400 .8rem/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.btn--download:hover .btn__meta { color: rgba(255, 255, 255, .8); }
.not-found__pdf { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.not-found__pdf a { color: var(--blue); }

/* Índice del catálogo: una tarjeta por categoría (enlaza a su página) */
.catalog-hub { padding-top: clamp(2.5rem, 6vw, 4rem); }
.cat-tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
.cat-tile { display: grid; grid-template-columns: 104px 1fr; gap: 1.25rem; align-items: center; height: 100%; padding: 1.25rem; background: #fff; text-decoration: none; transition: background-color .2s; }
.cat-tile:hover { background: var(--blue-soft); }
.cat-tile img { width: 104px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.cat-tile__body { display: grid; gap: .35rem; }
.cat-tile__name { font-size: 1.15rem; line-height: 1.25; }
.cat-tile__text { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cat-tile__more { font: 500 .85rem/1.2 var(--font-display); color: var(--blue); margin-top: .25rem; }
@media (min-width: 760px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Página de categoría: "Completa tu evento" */
.related { padding-top: clamp(3.5rem, 8vw, 5.5rem); }
.related h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.related > p { margin: .75rem 0 2rem; color: var(--muted); max-width: 70ch; }
.related > p a { color: var(--blue); }
.cat-grid--related { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid--related { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Aviso legal: datos identificativos del titular */
.legal-data { list-style: none; padding: 1.25rem 1.5rem; border: 1px solid var(--line); margin-top: 1rem; }
.legal-data li + li { margin-top: .45rem; }
.legal-data a { color: var(--blue); }

/* Auditoría: los campos del formulario alinean arriba aunque uno tenga texto de ayuda */
.field { align-content: start; }
/* Móvil y tableta: el formulario va antes que la información de contacto (menos scroll hasta convertir) */
@media (max-width: 1023px) { .quote__inner > .form { order: -1; } }

/* Portada: bloque de SEO local (zona de servicio) */
.local-section__inner { display: grid; gap: 1.5rem; }
.local-section h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); max-width: 22ch; }
.local-section__text { color: var(--muted); max-width: 68ch; }
.local-section__text > * + * { margin-top: 1rem; }
.local-section__text a { color: var(--blue); }
@media (min-width: 1024px) { .local-section__inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.local-section { padding-top: 0; }
.local-section__inner { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }

/* Selector de idioma ES | CA (cabecera y menú móvil) */
.nav__lang { display: flex; align-items: center; gap: .5rem; padding: .9rem 0; font-size: .85rem; letter-spacing: .08em; }
.nav__list .nav__lang a { display: inline-block; padding: .25rem .1rem; border: 0; font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.nav__list .nav__lang a[aria-current="true"] { color: var(--blue); font-weight: 600; }
.nav__list .nav__lang a:hover { color: var(--blue); }
.nav__lang-sep { color: var(--line); }
@media (min-width: 1180px) {
  .nav__lang { padding: 0; margin-left: .25rem; padding-left: clamp(1rem, 1.6vw, 1.5rem); border-left: 1px solid var(--line); }
  .nav__list .nav__lang a { padding: .5rem 0; font-size: .78rem; }
  .nav__list .nav__lang a::after { display: none; }
}

/* Portada: pictograma de la casita en la esquina inferior derecha (antes, encima del título) */
.hero__corner {
  position: absolute; left: 0; right: 0; bottom: 1.5rem; pointer-events: none;
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; justify-content: flex-end; align-items: flex-end;
}
.hero__corner .hero__mark { margin: 0; width: clamp(52px, 5.5vw, 76px); opacity: .9; }
/* Ajuste pedido: 1,5 cm más arriba y 1,5 cm más a la derecha (sin salirse de la pantalla: mínimo 12 px de margen) */
@media (min-width: 1024px) {   /* en móvil y tableta se queda junto a los controles para no tapar los botones */
  .hero__corner .hero__mark {
    transform: translate(min(1.5cm, calc(max(0px, (100vw - var(--container)) / 2) + var(--gutter) - 12px)), -1.5cm);
  }
}

/* Formulario: desplegable obligatorio sin elegir → texto de sugerencia en gris (p. ej. «Vídeo y fotografía») */
.field select:required:invalid { color: #9aa3ad; }
.field select option { color: var(--ink); }
.field select option[disabled] { color: #9aa3ad; }
