/* ==========================================================================
   +M2 Trasteros Urbanos — Sistema de Diseño v1 (ADN Figtree + #E71615)
   Mobile-first · WCAG 2.2 AA · Cero desbordamiento horizontal · CLS = 0
   ========================================================================== */

/* Si se depositan los archivos locales WOFF2 de Figtree en /assets/fonts/,
   se activan automáticamente sin llamadas externas a Google Fonts. */
@font-face {
  font-family: 'Figtree Local';
  src: local('Figtree'), local('Figtree-Regular'), url('/assets/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --m2-red: #E71615;
  --m2-red-hover: #C4100F;
  --m2-red-text: #CE1110; /* >= 4.8:1 sobre #F8F9FA y #FFFFFF para textos pequeños WCAG AA */
  --m2-red-soft: #FEF2F2;
  --m2-red-border: #FECACA;

  --m2-ink: #111827;
  --m2-ink-secondary: #374151;
  --m2-muted: #4B5563;
  --m2-bg: #FFFFFF;
  --m2-bg-alt: #F8F9FA;
  --m2-border: #E5E7EB;
  --m2-border-strong: #D1D5DB;

  --m2-green-bg: #ECFDF5;
  --m2-green-text: #065F46;
  --m2-amber-bg: #FFFBEB;
  --m2-amber-text: #92400E;
  --m2-slate-bg: #F3F4F6;
  --m2-slate-text: #374151;

  --font-sans: 'Figtree Local', 'Figtree', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Avenir Next', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.12);

  --container-max: 1200px;
  --header-h: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--m2-ink);
  background: var(--m2-bg);
  overflow-x: clip;
  padding-bottom: 78px; /* Espacio para barra CTA móvil fija */
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--m2-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--m2-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Tipografía bicolor característica +M2 */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--m2-ink);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.45rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  font-weight: 700;
}

.accent-red {
  color: var(--m2-red-text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m2-red-text);
  background: var(--m2-red-soft);
  border: 1px solid var(--m2-red-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.03rem, 1.8vw, 1.2rem);
  color: var(--m2-ink-secondary);
  max-width: 64ch;
  margin: 0 0 1.5rem;
}

/* Secciones alternas blanco / gris perla #F8F9FA */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-alt {
  background: var(--m2-bg-alt);
  border-top: 1px solid var(--m2-border);
  border-bottom: 1px solid var(--m2-border);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}
.section-header.centered .lead {
  margin-inline: auto;
}

/* Botones en píldora +M2 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--m2-red);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--m2-red-hover);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--m2-ink);
  border-color: var(--m2-ink);
}
.btn-secondary:hover {
  background: var(--m2-ink);
  color: #FFFFFF;
}

.btn-ghost {
  background: var(--m2-bg-alt);
  color: var(--m2-ink);
  border-color: var(--m2-border-strong);
}
.btn-ghost:hover {
  border-color: var(--m2-ink);
  background: #FFFFFF;
}

.btn-waitlist {
  background: var(--m2-ink);
  color: #FFFFFF;
}
.btn-waitlist:hover {
  background: #1F2937;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* Cabecera fija limpia */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--m2-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.desktop-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  color: var(--m2-ink-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--m2-ink);
  border-bottom-color: var(--m2-red);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--m2-border-strong);
  background: #FFFFFF;
  color: var(--m2-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

@media (min-width: 1040px) {
  .desktop-nav { display: flex; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--m2-border);
  padding: 16px;
}
.mobile-drawer.is-open {
  display: block;
}
.mobile-drawer nav {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}
.mobile-drawer nav a {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--m2-ink);
}
.mobile-drawer nav a[aria-current="page"],
.mobile-drawer nav a:hover {
  background: var(--m2-red-soft);
  color: var(--m2-red-text);
}
.mobile-drawer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Hero con fotografía real y buscador directo */
.hero {
  padding-block: clamp(32px, 6vw, 72px);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
  border-bottom: 1px solid var(--m2-border);
}

.hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--m2-ink);
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.quick-finder {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 24px);
  box-shadow: var(--shadow-md);
}

.quick-finder-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.finder-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .finder-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .finder-row > button {
    grid-column: 1 / -1;
  }
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--m2-border);
  background: var(--m2-bg-alt);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-floating-card {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

/* Badges de estado de disponibilidad */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-available {
  background: var(--m2-green-bg);
  color: var(--m2-green-text);
}

.status-low, .status-urgent {
  background: var(--m2-amber-bg);
  color: var(--m2-amber-text);
}

.status-full {
  background: var(--m2-slate-bg);
  color: var(--m2-slate-text);
}

/* Tarjetas y cuadrículas */
.cards-grid-4 {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.cards-grid-3 {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.cards-grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.center-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.center-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.center-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--m2-bg-alt);
  overflow: hidden;
}

.center-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-card-city {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.86);
  color: #FFFFFF;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.center-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.center-card-title {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.center-card-title a {
  text-decoration: none;
}
.center-card-title a:hover {
  color: var(--m2-red-text);
}

.center-card-address {
  font-size: 0.92rem;
  color: var(--m2-muted);
  margin: 0 0 14px;
}

.center-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--m2-border);
  margin-bottom: 14px;
}

.price-tag strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--m2-ink);
}

.price-tag span {
  font-size: 0.85rem;
  color: var(--m2-muted);
}

.center-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* Tarjetas informativas genéricas */
.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--m2-red-soft);
  color: var(--m2-red-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* Tablas de tamaños y precios adaptables a móvil */
.table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 540px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--m2-border);
  vertical-align: middle;
}

.data-table th {
  background: var(--m2-bg-alt);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m2-ink-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr.row-full td {
  color: var(--m2-muted);
  background: #FAFAFB;
}

@media (max-width: 640px) {
  .data-table-stack {
    min-width: 100%;
  }
  .data-table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .data-table-stack tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--m2-border);
  }
  .data-table-stack td {
    padding: 0;
    border: none;
  }
  .data-table-stack td[data-full-row="true"] {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
}

/* Mapa visual interactivo del Baix Llobregat (Viladecans + Gavà) */
.map-panel {
  display: grid;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 920px) {
  .map-panel {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: center;
  }
}

.svg-map-box {
  background: #F1F5F9;
  border-radius: var(--radius-md);
  border: 1px solid var(--m2-border);
  overflow: hidden;
}

.map-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--m2-border-strong);
  background: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--m2-ink);
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  background: var(--m2-red);
  border-color: var(--m2-red);
  color: #FFFFFF;
}

/* Galería de fotos reales */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--m2-border);
  background: var(--m2-bg-alt);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 9px 12px;
  font-size: 0.84rem;
  color: var(--m2-muted);
  background: #FFFFFF;
}

/* Calculadora interactiva de tamaños */
.calc-layout {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .calc-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.calc-items-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.calc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-md);
}

.calc-item-label strong {
  display: block;
  font-size: 0.95rem;
}
.calc-item-label small {
  color: var(--m2-muted);
  font-size: 0.8rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--m2-border-strong);
  background: var(--m2-bg-alt);
  color: var(--m2-ink);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.stepper button:hover {
  border-color: var(--m2-red);
  color: var(--m2-red-text);
}
.stepper output {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.calc-result-box {
  position: sticky;
  top: 96px;
  background: #FFFFFF;
  border: 2px solid var(--m2-ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.calc-big-m2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--m2-red-text);
  line-height: 1.05;
}

/* Formularios accesibles */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 680px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--m2-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--m2-border-strong);
  background: #FFFFFF;
  color: var(--m2-ink);
  font-family: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--m2-red);
  box-shadow: 0 0 0 3px rgba(231, 22, 21, 0.16);
}

.field-hint {
  font-size: 0.83rem;
  color: var(--m2-muted);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--m2-ink-secondary);
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--m2-red);
  flex-shrink: 0;
}

/* Campo trampa antispam invisible para humanos y lectores de pantalla */
.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.alert-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--m2-border);
  background: var(--m2-bg-alt);
  font-size: 0.94rem;
}

.alert-waitlist {
  background: var(--m2-amber-bg);
  border-color: #FCD34D;
  color: var(--m2-amber-text);
}

.alert-success {
  background: var(--m2-green-bg);
  border-color: #6EE7B7;
  color: var(--m2-green-text);
}

/* Acordeones nativos FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--m2-red-text);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--m2-ink-secondary);
  border-top: 1px solid var(--m2-bg-alt);
}

/* Pasos numerados */
.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--m2-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--m2-red);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Pie de página */
.site-footer {
  background: var(--m2-ink);
  color: #E5E7EB;
  padding-block: 56px 36px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.site-footer h3, .site-footer h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.93rem;
}
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #9CA3AF;
}

.footer-bottom a {
  color: #D1D5DB;
}

/* Barra CTA fija en móvil (Requisito §3 Inicio) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--m2-border);
  box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
}

@media (min-width: 900px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Gestor único de consentimiento de cookies (sustituye al doble banner actual) */
.cookie-banner {
  position: fixed;
  bottom: 84px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  z-index: 110;
  background: #FFFFFF;
  border: 1.5px solid var(--m2-ink);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .cookie-banner {
    bottom: 20px;
    left: 20px;
  }
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Migas de pan y textos legales */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--m2-muted);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--m2-ink-secondary);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 78ch;
}
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}
.prose p, .prose li {
  color: var(--m2-ink-secondary);
}
