/* =============================================================
   TOLDOS & CERRAMIENTOS MADRID — styles.css
   Arquetipo: Editorial Cream (adaptado) — cálido, arquitectónico,
   mediterráneo. Efecto firma: slider antes/después interactivo.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e7;   /* blanco roto / crema */
  --bg-2:      #ece2d0;   /* arena */
  --paper:     #fffdf9;
  --stone:     #ddd0b8;   /* beige piedra */
  --stone-2:   #cabd9d;
  --ink:       #2b2925;   /* grafito cálido */
  --ink-soft:  #46423c;
  --ink-mute:  #83796a;
  --accent:    #b5652f;   /* terracota */
  --accent-ink: #ffffff;
  --olive:     #5f6a4c;   /* verde oliva discreto */
  --line:      rgba(43, 41, 37, 0.12);
  --line-strong: rgba(43, 41, 37, 0.22);
  --whatsapp:  #3fa34d;
  --shadow-sm: 0 1px 2px rgba(43,41,37,0.06), 0 1px 1px rgba(43,41,37,0.04);
  --shadow-md: 0 12px 32px -12px rgba(43,41,37,0.28);
  --shadow-lg: 0 30px 60px -20px rgba(43,41,37,0.35);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1320px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

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

input, textarea, select {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--accent);
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 20px; height: 1.5px; background: var(--accent);
}

.section { padding-block: clamp(3rem, 6.5vw, 5.5rem); position: relative; }
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 0.6rem; }
.section-lede { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 42ch; }
.section-head.center .section-lede { margin-inline: auto; }

.demo-tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 0.3em 0.7em; border-radius: 999px;
}
.demo-tag::before { content: "●"; color: var(--accent); font-size: 0.6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary {
  background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark {
  background: var(--ink); color: var(--bg);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }
.btn-ghost-light {
  background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Reveal-on-scroll (micro — never gated by reduced-motion) */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive — see skill gotcha A.4.5 */

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; }
.nav-logo { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo strong {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 560;
  color: var(--ink);
}
.nav-logo span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.nav-links { display: none; align-items: center; gap: 1.6rem; flex-shrink: 0; white-space: nowrap; }
.nav-links a {
  position: relative; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding-block: 0.4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-phone {
  display: none; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); white-space: nowrap; flex: none;
}
.nav-phone svg { width: 1.05em; height: 1.05em; color: var(--accent); flex: none; }

.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 50%;
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: var(--bg);
  padding: 2rem clamp(1.25rem, 6vw, 3rem);
  display: flex; flex-direction: column; gap: 1.9rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  overflow-y: auto;
}
.mobile-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-panel a { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.mobile-panel .nav-cta-row { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-burger, .mobile-panel { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(20,17,12,0.82) 0%, rgba(20,17,12,0.42) 42%, rgba(20,17,12,0.12) 68%, rgba(20,17,12,0.28) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: clamp(6.5rem, 16vw, 9rem) clamp(3rem, 6vw, 4.5rem);
}
.hero .eyebrow { color: #f1e6d4; }
.hero .eyebrow::before { background: #f1e6d4; }
.hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  max-width: 16ch;
  margin-top: 0.7rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-sub {
  margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.92);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.1rem; }
.hero-trust li {
  display: flex; align-items: center; gap: 0.55em;
  font-size: 0.9rem; color: rgba(255,255,255,0.88); font-weight: 500;
}
.hero-trust svg { width: 1.1em; height: 1.1em; color: #f1e6d4; flex: none; }

/* =============================================================
   6. Servicios (bloques editoriales alternos)
   ============================================================= */
.service-row {
  display: grid; gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-md);
}
.service-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  filter: saturate(1.05);
}
.service-row:hover .service-figure img { transform: scale(1.055); filter: saturate(1.18); }
.service-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 0.55rem; }
.service-copy > p { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.service-bullets { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; }
.service-bullets li { display: flex; gap: 0.65em; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.service-bullets svg { width: 1.15em; height: 1.15em; color: var(--olive); flex: none; margin-top: 0.15em; }
.service-copy .btn { margin-top: 1.6rem; }

@media (min-width: 860px) {
  .service-row { grid-template-columns: 1.1fr 1fr; }
  .service-row[data-flip="true"] .service-figure { order: 2; }
  .service-row[data-flip="true"] .service-copy { order: 1; }
}

/* =============================================================
   7. Antes / Después (efecto firma)
   ============================================================= */
.ba-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.ba-tab {
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.25s var(--ease-out);
}
.ba-tab.is-active, .ba-tab:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.ba-slider {
  position: relative;
  width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  display: none;
}
.ba-slider.is-active { display: block; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { z-index: 1; }
.ba-before-wrap {
  position: absolute; inset: 0; z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-before-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 1rem; z-index: 3;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4em 0.85em; border-radius: 999px; color: #fff;
  background: rgba(20,17,12,0.55); backdrop-filter: blur(4px);
}
.ba-tag--before { left: 1rem; }
.ba-tag--after { right: 1rem; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--pos, 50%);
  pointer-events: none;
}
.ba-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2.5px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-grip {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}
.ba-grip svg { width: 20px; height: 20px; color: var(--ink); }
.ba-range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-caption { margin-top: 1.1rem; color: var(--ink-mute); font-size: 0.92rem; text-align: center; }

/* =============================================================
   8. Galería
   ============================================================= */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.gallery-filter {
  padding: 0.55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.25s var(--ease-out);
}
.gallery-filter[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery-filter:hover:not([aria-pressed="true"]) { border-color: var(--ink); color: var(--ink); }

.gallery-grid { columns: 2; column-gap: 1rem; }
@media (min-width: 720px) { .gallery-grid { columns: 3; column-gap: 1.25rem; } }
.gallery-item {
  break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow-sm);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); filter: saturate(1.05); }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.2); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(20,17,12,0.78), transparent);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-within .gallery-cap { opacity: 1; transform: none; }

/* =============================================================
   9. Prueba social
   ============================================================= */
.reviews-section { background: var(--bg-2); }
.reviews-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 0.5rem; }
.reviews-score {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper); border-radius: var(--radius-lg); padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.reviews-score-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--ink); }
.reviews-score-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.reviews-stars { color: var(--accent); font-size: 1rem; letter-spacing: 0.1em; }
.reviews-score-meta span { font-size: 0.82rem; color: var(--ink-mute); }

.reviews-grid { margin-top: 1.75rem; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.review-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--stone-2); line-height: 1; }
.review-card p.quote { margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.98rem; }
.review-card .who { margin-top: 1.25rem; display: flex; flex-direction: column; }
.review-card .who strong { font-size: 0.95rem; }
.review-card .who span { font-size: 0.82rem; color: var(--ink-mute); }

/* =============================================================
   10. Proceso
   ============================================================= */
.process-grid {
  display: grid; gap: 1.5rem 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: none;
}
@media (min-width: 780px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-item { position: relative; padding-top: 0.5rem; }
.process-num {
  font-family: var(--font-display); font-size: 2.75rem; color: var(--stone-2);
  line-height: 1;
}
.process-item h3 { font-size: 1.15rem; margin-top: 0.6rem; }
.process-item p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.94rem; }
@media (min-width: 780px) {
  .process-item:not(:last-child)::after {
    content: ""; position: absolute; top: 1.6rem; left: calc(100% + 0.75rem);
    width: calc(100% - 1.5rem); height: 1px; background: var(--line-strong);
  }
}

/* =============================================================
   11. Wizard — presupuesto rápido
   ============================================================= */
.wizard-section { background: var(--ink); color: var(--bg); }
.wizard-section .eyebrow { color: #d8c6a8; }
.wizard-section .eyebrow::before { background: #d8c6a8; }
.wizard-section .section-title { color: #fff; }
.wizard-section .section-lede { color: rgba(246,241,231,0.75); }

.wizard-card {
  background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  max-width: 44rem; margin-inline: auto;
}
.wizard-progress { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.wizard-progress i {
  flex: 1; height: 4px; border-radius: 999px; background: var(--line);
  overflow: hidden;
}
.wizard-progress i::after {
  content: ""; display: block; height: 100%; width: 0%; background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.wizard-progress i.is-done::after, .wizard-progress i.is-current::after { width: 100%; }

.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: wizardIn 0.45s var(--ease-out); }
@keyframes wizardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wizard-step h3 { font-size: 1.5rem; }
.wizard-step .wizard-hint { margin-top: 0.4rem; color: var(--ink-mute); font-size: 0.92rem; }

.wizard-options { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.wizard-opt {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 1rem 0.9rem; text-align: left; font-weight: 600; font-size: 0.94rem;
  transition: all 0.2s var(--ease-out); background: var(--paper);
}
.wizard-opt:hover { border-color: var(--ink); }
.wizard-opt[aria-pressed="true"] { border-color: var(--accent); background: #fbf1e8; color: var(--accent); }

.wizard-fields { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .wizard-fields.two-col { grid-template-columns: 1fr 1fr; } }
.wizard-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-soft); }
.wizard-field .opt { font-weight: 400; color: var(--ink-mute); }


.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.wizard-nav .spacer { flex: 1; }

.wizard-success { text-align: center; padding-block: 1rem; }
.wizard-success svg { width: 56px; height: 56px; color: var(--whatsapp); margin-inline: auto; }
.wizard-success h3 { margin-top: 1.1rem; font-size: 1.5rem; }
.wizard-success p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }
.wizard-success .btn { margin-top: 1.6rem; }

/* =============================================================
   12. Confianza
   ============================================================= */
.trust-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.trust-item svg { width: 1.7rem; height: 1.7rem; color: var(--accent); }
.trust-item h3 { font-size: 1.1rem; margin-top: 0.9rem; }
.trust-item p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq-list { max-width: 48rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.05rem; font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.faq-item summary .plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-item summary .plus::after { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item .faq-a { padding-bottom: 1.4rem; color: var(--ink-soft); max-width: 60ch; }

/* =============================================================
   14. Contacto
   ============================================================= */
.contact-section {
  position: relative; color: #fff; overflow: clip;
}
.contact-media { position: absolute; inset: 0; z-index: 0; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,12,0.82); }
.contact-inner { position: relative; z-index: 1; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact-inner { grid-template-columns: 1.1fr 0.9fr; } }
.contact-section .eyebrow { color: #d8c6a8; }
.contact-section .eyebrow::before { background: #d8c6a8; }
.contact-title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.6rem; max-width: 16ch; }
.contact-lede { margin-top: 1rem; color: rgba(246,241,231,0.8); max-width: 42ch; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.contact-meta { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-meta-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-meta-item svg { width: 1.3rem; height: 1.3rem; color: #d8c6a8; flex: none; margin-top: 0.15rem; }
.contact-meta-item strong { display: block; font-size: 0.95rem; }
.contact-meta-item span, .contact-meta-item p { color: rgba(246,241,231,0.75); font-size: 0.9rem; }

.contact-form-card {
  background: var(--paper); color: var(--ink); border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-lg);
}
.contact-form-card h3 { font-size: 1.3rem; }
.contact-form-card .wizard-fields { margin-top: 1.3rem; }
.contact-form-card .btn { margin-top: 1.4rem; }
.contact-form-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-mute); }

/* =============================================================
   15. Footer
   ============================================================= */
.site-footer { background: #201d18; color: #cfc7b6; padding-block: 3.5rem 2rem; }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; } }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.3rem; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; max-width: 32ch; color: #a89f8c; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a453b;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease-out);
}
.footer-social a:hover { background: #34302a; }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8f866f; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col span { font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid #383327;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: #8f866f;
}
.footer-demo-notice {
  margin-top: 1.4rem; font-size: 0.78rem; color: #8f866f; max-width: 62ch; line-height: 1.6;
  padding: 0.9rem 1.1rem; border: 1px dashed #4a453b; border-radius: 8px;
}

/* =============================================================
   16. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(63,163,77,0.55);
  transition: transform 0.3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); opacity: 0.55;
  animation: waPulse 2.6s var(--ease-soft) infinite;
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { opacity: 0; }
}

/* =============================================================
   17. Responsive niceties
   ============================================================= */
@media (max-width: 539px) {
  .hero-ctas .btn, .contact-ctas .btn { width: 100%; }
  .wizard-nav { flex-wrap: wrap; }
}
