/* =========================================================================
   NERALIA OUTDOOR — styles.css (v2)
   Landing demo — pérgolas bioclimáticas a medida — Málaga y Costa del Sol
   Fuente única de verdad para todo el CSS del proyecto.
   v2: titulares H1/H2/H3 centrados en todos los componentes; diálogo demo
   migrado a <dialog> nativo con ::backdrop.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. VARIABLES CSS
   ------------------------------------------------------------------------- */
:root {
  /* Colores */
  --c-ink: #22262a;              /* grafito profundo — texto principal */
  --c-ink-soft: #3a3f44;         /* texto secundario */
  --c-ink-60: rgba(34, 38, 42, 0.6);
  --c-paper: #fbf8f3;            /* blanco cálido */
  --c-paper-2: #ffffff;
  --c-stone: #ede6da;            /* piedra clara */
  --c-stone-line: #ddd0ba;       /* líneas / bordes sobre piedra */
  --c-bronze: #a8794f;           /* arena / bronce — acentos, grandes, UI */
  --c-bronze-deep: #8a6239;      /* bronce con contraste seguro para texto */
  --c-blue: #2c5871;             /* azul mediterráneo controlado */
  --c-whatsapp: #0e6b5d;         /* verde exclusivo para WhatsApp */
  --c-whatsapp-dark: #0a5245;
  --c-error: #a32a2a;
  --c-focus: #2c5871;

  /* Tipografía */
  --font-base: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.3125rem;
  --lh-tight: 1.03;
  --lh-heading: 1.15;
  --lh-body: 1.6;

  /* Espaciado */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  /* Sombra sutil (arquitectónica, no decorativa pesada) */
  --shadow-sm: 0 1px 2px rgba(34, 38, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(34, 38, 42, 0.12);

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;

  /* Z-index */
  --z-header: 40;
  --z-mobile-bar: 45;
  --z-dialog: 100;
  --z-toast: 110;

  /* Altura reservada para la barra móvil fija */
  --mobile-bar-height: 68px;
}

@media (min-width: 768px) {
  :root {
    --h1-size: 3.375rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --h1-size: 4.125rem;
    --h2-size: 3.375rem;
    --h3-size: 1.625rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --h1-size: 5.25rem;
    --h2-size: 3.625rem;
    --h3-size: 1.75rem;
  }
}

/* -------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
}

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 750;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

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

/* -------------------------------------------------------------------------
   3. UTILIDADES DE LAYOUT
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

.title-line {
  display: block;
}

.section-title {
  text-align: center;
  font-size: var(--h2-size);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

.section-intro {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  color: var(--c-ink-soft);
  font-size: 1.0625rem;
}

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-bronze-deep);
  margin-bottom: var(--space-sm);
}

section {
  padding-block: var(--space-2xl);
}

.bg-stone {
  background: var(--c-stone);
}

.bg-paper {
  background: var(--c-paper);
}

/* -------------------------------------------------------------------------
   4. BOTONES
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
  min-height: 48px;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
}

.btn--primary:hover {
  background: #383e44;
}

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn--outline:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}

.btn--outline-light {
  background: rgba(251, 248, 243, 0.08);
  color: var(--c-paper);
  border-color: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(2px);
}

.btn--outline-light:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-stone-line);
}

.btn--ghost:hover {
  border-color: var(--c-ink);
}

.btn--whatsapp {
  background: var(--c-whatsapp);
  color: #ffffff;
}

.btn--whatsapp:hover {
  background: var(--c-whatsapp-dark);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   5. AVISO DE DEMOSTRACIÓN
   ------------------------------------------------------------------------- */
.demo-strip {
  background: var(--c-ink);
  color: var(--c-paper);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem var(--container-pad);
}

/* -------------------------------------------------------------------------
   6. HEADER
   ------------------------------------------------------------------------- */
.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-stone-line);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__name span {
  color: var(--c-bronze-deep);
}

.brand__descriptor {
  display: none;
  font-size: 0.75rem;
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__location {
  display: none;
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .brand__descriptor {
    display: block;
  }
}

@media (min-width: 900px) {
  .site-header__location {
    display: inline-block;
  }
}

/* -------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 941 / 1672;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .hero {
    aspect-ratio: 1672 / 941;
    min-height: 620px;
  }
}

@media (min-width: 1440px) {
  .hero {
    max-height: 860px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

@media (min-width: 768px) {
  .hero__img {
    object-position: center 32%;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 24, 0.74) 0%, rgba(20, 22, 24, 0.42) 38%, rgba(20, 22, 24, 0.18) 62%, rgba(20, 22, 24, 0.12) 100%);
}

@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(to top, rgba(20, 22, 24, 0.64) 0%, rgba(20, 22, 24, 0.28) 46%, rgba(20, 22, 24, 0.14) 72%, rgba(20, 22, 24, 0.1) 100%);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-xl) var(--space-lg);
  color: var(--c-paper);
  text-align: center;
}

@media (min-width: 768px) {
  .hero__content {
    padding-block: var(--space-2xl) var(--space-xl);
  }
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: rgba(251, 248, 243, 0.92);
  text-shadow: 0 1px 10px rgba(15, 16, 18, 0.55);
}

.hero__title {
  font-size: var(--h1-size);
  line-height: var(--lh-tight);
  font-weight: 800;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(10, 11, 12, 0.55), 0 1px 4px rgba(10, 11, 12, 0.8);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.25rem);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  color: rgba(251, 248, 243, 0.95);
  text-shadow: 0 1px 14px rgba(10, 11, 12, 0.55), 0 1px 3px rgba(10, 11, 12, 0.7);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero__note {
  font-size: 0.75rem;
  color: rgba(251, 248, 243, 0.85);
  max-width: 40ch;
  margin-inline: auto;
  text-shadow: 0 1px 8px rgba(10, 11, 12, 0.6);
}

/* -------------------------------------------------------------------------
   8. FRANJA DE CONFIANZA
   ------------------------------------------------------------------------- */
.trust {
  padding-block: var(--space-xl);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-stone-line);
}

.trust__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust__item {
  text-align: center;
  padding-inline: var(--space-sm);
  position: relative;
}

@media (min-width: 768px) {
  .trust__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: calc(var(--space-lg) / -2);
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--c-stone-line);
  }
}

.trust__item h3 {
  font-size: var(--h3-size);
  margin-bottom: 0.5rem;
}

.trust__item p {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
   9. BENEFICIOS — composición editorial
   ------------------------------------------------------------------------- */
.benefits__layout {
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .benefits__layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
}

.benefit-feature {
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.benefit-feature__lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.benefit-feature h3 {
  font-size: var(--h3-size);
  margin-bottom: 0.5rem;
  position: relative;
  text-align: center;
}

.benefit-feature p {
  color: rgba(251, 248, 243, 0.82);
  max-width: 40ch;
  position: relative;
}

.benefits__list {
  display: grid;
  gap: 1px;
  background: var(--c-stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.benefit-row {
  background: var(--c-paper);
  padding: var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.benefit-row__mark {
  width: 30px;
  height: 30px;
  color: var(--c-bronze);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.benefit-row h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
  text-align: center;
}

.benefit-row p {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
   10. SOLUCIÓN A MEDIDA — filas horizontales editoriales
   ------------------------------------------------------------------------- */
.solution {
  background: var(--c-stone);
}

.solution__grid {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
}

.solution-row {
  display: grid;
  gap: var(--space-sm) var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--c-stone-line);
  grid-template-columns: 1fr;
}

.solution-row:last-child {
  border-bottom: 1px solid var(--c-stone-line);
}

@media (min-width: 768px) {
  .solution-row {
    grid-template-columns: 2.5rem 1fr 1.4fr;
    align-items: baseline;
  }

  .solution-row:nth-child(even) {
    grid-template-columns: 2.5rem 1.4fr 1fr;
  }

  .solution-row:nth-child(even) .solution-row__desc {
    order: 2;
  }

  .solution-row:nth-child(even) .solution-row__title {
    order: 1;
  }
}

.solution-row__num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-bronze-deep);
}

.solution-row__title {
  font-size: 1.25rem;
  font-weight: 750;
  text-align: center;
}

.solution-row__desc {
  color: var(--c-ink-soft);
}

.solution__cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* -------------------------------------------------------------------------
   11. FORMULARIO
   ------------------------------------------------------------------------- */
.form-section {
  background: var(--c-paper);
}

.form-section__layout {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 960px) {
  .form-section__layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .form-section__intro {
    position: sticky;
    top: calc(var(--space-lg) + 60px);
  }
}

.form-section__note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
  background: var(--c-stone);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--c-bronze);
}

.form-card {
  background: var(--c-paper-2);
  border: 1px solid var(--c-stone-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field .optional-tag {
  font-weight: 400;
  color: var(--c-ink-soft);
  font-size: 0.8125rem;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--c-stone-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--c-paper);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-ink);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-error);
}

.field__error {
  font-size: 0.8125rem;
  color: var(--c-error);
  display: none;
}

.field__error.is-visible {
  display: block;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.field-checkbox input {
  width: 20px;
  height: 20px;
  min-height: auto;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--c-ink);
}

.field-checkbox a {
  color: var(--c-blue);
  text-decoration: underline;
}

.form-footer {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-feedback {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-stone);
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

/* -------------------------------------------------------------------------
   12. PROCESO
   ------------------------------------------------------------------------- */
.process {
  background: var(--c-ink);
  color: var(--c-paper);
}

.process .section-title {
  color: var(--c-paper);
}

.process__line {
  margin-top: var(--space-2xl);
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(251, 248, 243, 0.18);
}

@media (min-width: 800px) {
  .process__line {
    grid-template-columns: repeat(4, 1fr);
    border-top: none;
    position: relative;
  }

  .process__line::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(251, 248, 243, 0.18);
  }
}

.process__step {
  padding-block: var(--space-lg);
  border-bottom: 1px solid rgba(251, 248, 243, 0.18);
  position: relative;
}

@media (min-width: 800px) {
  .process__step {
    border-bottom: none;
    padding-inline-end: var(--space-md);
  }
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--c-bronze);
  color: var(--c-bronze);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
  background: var(--c-ink);
  position: relative;
  z-index: 1;
}

.process__step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.process__step p {
  color: rgba(251, 248, 243, 0.78);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
   13. GALERÍA DE INSPIRACIÓN
   ------------------------------------------------------------------------- */
.gallery__grid {
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 860px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-stone-line);
  background: var(--c-paper-2);
}

.gallery-item__media {
  aspect-ratio: 4 / 3;
  background: var(--c-stone);
  overflow: hidden;
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item__body {
  padding: var(--space-md);
}

.gallery-item__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-bronze-deep);
  margin-bottom: 0.5rem;
}

.gallery-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.gallery-item p {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}

.gallery__disclaimer {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
  max-width: 60ch;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------- */
.faq {
  background: var(--c-stone);
}

.faq__list {
  margin-top: var(--space-2xl);
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--c-paper-2);
  border: 1px solid var(--c-stone-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-bronze-deep);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--c-ink-soft);
}

/* -------------------------------------------------------------------------
   15. CIERRE
   ------------------------------------------------------------------------- */
.closing {
  background: var(--c-ink);
  color: var(--c-paper);
  text-align: center;
}

.closing .section-title {
  color: var(--c-paper);
  max-width: 26ch;
}

.closing p.section-intro {
  color: rgba(251, 248, 243, 0.82);
}

.closing .btn--primary {
  background: var(--c-paper);
  color: var(--c-ink);
}

.closing .btn--primary:hover {
  background: var(--c-bronze);
  color: var(--c-paper);
}

.closing__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .closing__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.closing__note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(251, 248, 243, 0.7);
}

/* -------------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-paper);
  border-top: 1px solid var(--c-stone-line);
  padding-block: var(--space-lg);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer nav {
  display: flex;
  gap: var(--space-md);
}

.site-footer nav a {
  text-decoration: none;
  color: var(--c-ink-soft);
}

.site-footer nav a:hover {
  color: var(--c-ink);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   17. BARRA MÓVIL FIJA
   ------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-bar);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-stone-line);
  border-top: 1px solid var(--c-stone-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(0);
  transition: transform var(--transition-base);
}

.mobile-bar.is-hidden {
  transform: translateY(100%);
}

.mobile-bar__btn {
  background: var(--c-paper-2);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.9375rem;
  min-height: 60px;
  border-radius: 0;
}

.mobile-bar__btn--whatsapp {
  background: var(--c-whatsapp);
  color: #ffffff;
}

.mobile-bar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* -------------------------------------------------------------------------
   18. DIÁLOGO ACCESIBLE (elemento <dialog> nativo)
   ------------------------------------------------------------------------- */
.demo-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  background: var(--c-paper);
  color: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: min(420px, calc(100vw - 2 * var(--space-md)));
  max-height: calc(100vh - 2 * var(--space-md));
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  text-align: left;
  z-index: var(--z-dialog);
}

.demo-dialog::backdrop {
  background: rgba(20, 22, 24, 0.55);
}

.demo-dialog h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.demo-dialog p {
  color: var(--c-ink-soft);
  margin-bottom: var(--space-md);
}

.demo-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

/* -------------------------------------------------------------------------
   19. VARIOS
   ------------------------------------------------------------------------- */
.js-inline-svg {
  color: var(--c-bronze);
}

@media (max-width: 899.98px) {
  body.has-mobile-bar {
    padding-bottom: var(--mobile-bar-height);
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Evita cualquier desbordamiento horizontal accidental */
body {
  overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   20. PÁGINAS LEGALES
   ------------------------------------------------------------------------- */
.legal-main {
  padding-block: var(--space-2xl);
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h1 {
  font-size: var(--h2-size);
  text-align: center;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.legal-content p {
  color: var(--c-ink-soft);
  margin-bottom: var(--space-md);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-back {
  display: inline-block;
  margin-top: var(--space-lg);
  color: var(--c-blue);
  text-decoration: underline;
  font-size: 0.9375rem;
}
