/**
 * Cooperativa Arrabal 6 · Ceuta
 * site.css — hoja de estilos principal
 * Importa los tokens de marca y construye toda la interfaz.
 */
@import url("brand-tokens.css");

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  touch-action: manipulation;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  touch-action: manipulation;
}

/* Fondo atmosférico global — da profundidad al cristal */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 12% 8%, rgba(45, 107, 122, 0.16) 0%, transparent 60%),
    radial-gradient(40% 38% at 92% 16%, rgba(184, 107, 75, 0.16) 0%, transparent 62%),
    radial-gradient(46% 50% at 80% 88%, rgba(45, 107, 122, 0.14) 0%, transparent 60%),
    radial-gradient(42% 46% at 8% 84%, rgba(212, 165, 116, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #f5efe6 0%, #eef3f4 50%, #f3ece3 100%);
  background-attachment: fixed;
}

/* Film grain — atmósfera editorial */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -3%); }
  50% { transform: translate(3%, 1%); }
  75% { transform: translate(-1%, 4%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; opacity: 0.03; } }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-2 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 500;
  background: var(--color-primary); color: white;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { top: 0.5rem; outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Focus visible global */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Top bar ── */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.topbar strong { color: var(--color-sand-light); }
.topbar-icon { display: inline-flex; opacity: 0.85; }

/* ── Header ── */
.header {
  position: fixed; top: 2.15rem; left: 0; right: 0; z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, top 0.35s, box-shadow 0.4s, transform 0.35s ease;
}
.header--hidden {
  transform: translateY(-130%);
  pointer-events: none;
}
.header--scrolled {
  top: 0;
  background: rgba(249, 246, 241, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--glass-border-soft);
  box-shadow: 0 8px 32px rgba(18, 53, 62, 0.1);
}
.header--over-hero:not(.header--scrolled) .logo-text strong {
  color: white; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.header--over-hero:not(.header--scrolled) .logo-text span {
  color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.header--over-hero:not(.header--scrolled) .logo-mark {
  background: rgba(18, 53, 62, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.header--over-hero:not(.header--scrolled) .nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.header--over-hero:not(.header--scrolled) .nav a:not(.btn):hover {
  color: white; background: rgba(255, 255, 255, 0.1);
}
.header--over-hero:not(.header--scrolled) .btn-outline {
  border-color: rgba(255, 255, 255, 0.45); color: white;
}
.header--over-hero:not(.header--scrolled) .btn-outline:hover {
  background: white; color: var(--color-primary-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 46px; height: 46px;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: white; font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(26, 74, 86, 0.25);
}
.logo-text strong {
  display: block; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; line-height: 1.15;
  color: var(--color-primary-dark);
}
.logo-text span {
  font-size: 0.7rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.header--scrolled .nav-toggle {
  background: var(--glass-bg); border-color: var(--glass-border-soft); color: var(--color-primary-dark);
}
.header--over-hero:not(.header--scrolled) .nav-toggle { color: white; }
.nav a:not(.btn) {
  padding: 0.45rem 0.7rem; font-size: 0.875rem; font-weight: 500;
  color: var(--color-text-muted); border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}
.nav a:not(.btn):hover { color: var(--color-primary); background: rgba(26, 74, 86, 0.06); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--color-primary); color: white;
  box-shadow: 0 4px 16px rgba(26, 74, 86, 0.28);
}
.btn-primary:hover { background: var(--color-primary-dark); color: white; box-shadow: 0 6px 22px rgba(26, 74, 86, 0.35); }
.btn-accent {
  background: var(--color-accent); color: white;
  box-shadow: 0 4px 16px rgba(184, 107, 75, 0.3);
}
.btn-accent:hover { background: #a05a3d; color: white; }
.btn-outline {
  background: transparent; border-color: var(--color-primary); color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-ghost-light {
  background: transparent; border-color: rgba(255, 255, 255, 0.5); color: white;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: white; border-color: white; }
.btn-white { background: white; color: var(--color-primary-dark); }
.btn-white:hover { background: var(--color-sand-light); color: var(--color-primary-dark); }
.btn-whatsapp {
  background: #25d366; color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1ebe5a; color: white; box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }

/* ── Sections common ── */
section { padding: 5rem 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600; color: var(--color-primary-dark);
  line-height: 1.15; margin-bottom: 1rem;
}
.section-intro {
  font-size: 1.0625rem; color: var(--color-text-muted);
  max-width: 600px; line-height: 1.75;
}
.section-intro a { color: var(--color-primary); font-weight: 600; }
.section-intro a:hover { text-decoration: underline; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-inline: auto; }

/* ── Hero cinematográfico + parallax ── */
.hero--cinematic {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem clamp(1.5rem, 5vw, 3rem) 5rem;
  padding-left: max(clamp(1.5rem, 5vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 5vw, 3rem), env(safe-area-inset-right));
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero-parallax {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-parallax-bg {
  position: absolute; inset: -12% 0;
  will-change: transform;
}
.hero-parallax-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.08);
}
.hero-parallax-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 28, 33, 0.14) 0%,
      rgba(8, 28, 33, 0.04) 40%,
      rgba(8, 28, 33, 0.28) 80%,
      rgba(8, 28, 33, 0.41) 100%);
}
.hero-parallax-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  will-change: transform; pointer-events: none;
}
.hero-parallax-orb--1 {
  width: 420px; height: 420px; top: 8%; right: -8%;
  background: rgba(184, 107, 75, 0.35);
}
.hero-parallax-orb--2 {
  width: 320px; height: 320px; bottom: 18%; left: -5%;
  background: rgba(45, 107, 122, 0.45);
}
.hero-parallax-line {
  position: absolute; left: 8%; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 205, 176, 0.45), transparent);
  will-change: transform;
}
.hero-cinematic-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 780px;
  margin-inline: 0;
  padding-inline: clamp(0.5rem, 2vw, 1rem);
}
.hero--cinematic > .container.hero-cinematic-inner {
  width: 100%;
  max-width: 820px;
  margin-inline: 0;
}
.hero-copy {
  position: relative;
  display: inline-block;
  max-width: 620px;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
@media (max-width: 768px) {
  .hero-copy {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
  }
}
@media (max-width: 960px) {
  .hero-parallax-line { display: none; }
}
.hero-eyebrow--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-sand-light);
  backdrop-filter: blur(12px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 600; line-height: 1.04;
  color: white; margin-bottom: 1.35rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-title-line { display: block; }
.hero-title-line--accent em {
  font-style: italic; color: var(--color-sand-light); font-weight: 500;
}
.hero-lead.hero-lead--light {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: #ffffff;
  max-width: 38ch; margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero-trust { list-style: none; }
.hero-trust--light .trust-pill {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.5rem 0.85rem; border-radius: 999px;
}
.hero-trust--light .trust-pill svg { color: var(--color-sand-light); }

.hero-float-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  will-change: transform;
}
.hero-float-visual {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 10; margin-bottom: 1rem;
}
.hero-float-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-float-badge {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  background: rgba(18, 53, 62, 0.88); color: var(--color-sand-light);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero-float-card .hero-card-footer {
  margin-top: 0; padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.hero-float-btn { width: 100%; margin-top: 1rem; }

.hero-scroll {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.65);
  animation: hero-bob 2.5s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.8; }
@keyframes hero-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
@media (max-width: 960px) { .hero-scroll { display: none; } }

/* Parallax band — franja inmersiva */
.parallax-band {
  position: relative; min-height: 62vh;
  display: grid; place-items: center;
  overflow: hidden; color: white;
}
.parallax-band-bg {
  position: absolute; inset: -25% 0;
  will-change: transform;
}
.parallax-band-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.parallax-band-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(18, 53, 62, 0.9) 0%, rgba(18, 53, 62, 0.4) 50%, rgba(18, 53, 62, 0.88) 100%);
}
.parallax-band-content {
  position: relative; z-index: 2;
  text-align: center; padding: 4rem 0;
}
.parallax-band-eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--color-sand-light);
  margin-bottom: 1.25rem;
}
.parallax-band-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 500; font-style: italic;
  line-height: 1.2; max-width: 18ch; margin: 0 auto 1.25rem;
  text-wrap: balance;
}
.parallax-band-meta {
  font-size: 0.9375rem; opacity: 0.75; letter-spacing: 0.02em;
}

/* Hero legacy (otras páginas) */
.hero {
  position: relative;
  padding: 3.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(184, 107, 75, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(26, 74, 86, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #faf7f2 0%, #f3ece4 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--color-accent);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--color-accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  font-weight: 600; line-height: 1.08;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.hero--cinematic h1,
.hero--cinematic .hero-title { font-size: clamp(2.75rem, 7vw, 4.5rem); color: white; letter-spacing: -0.03em; }
.hero--cinematic h1 em { color: var(--color-sand-light); }
.hero-lead {
  font-size: 1.2rem; color: var(--color-text-muted);
  max-width: 36ch; margin-bottom: 2rem; line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.25rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.trust-pill {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary-dark);
}
.trust-pill svg { flex-shrink: 0; color: var(--color-primary); }

/* Hero visual card */
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(26, 74, 86, 0.12);
  border: 1px solid rgba(226, 221, 212, 0.8);
}
.hero-visual {
  width: 100%; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  aspect-ratio: 12 / 7;
}
.hero-visual svg, .hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-card-footer {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.mini-stat { text-align: center; }
.mini-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; color: var(--color-primary);
}
.mini-stat span { font-size: 0.7rem; color: var(--color-text-muted); line-height: 1.3; }
.hero-card-cta { margin-top: 1rem; display: flex; gap: 0.5rem; }
.hero-card-cta .btn { flex: 1; }

/* ── Trust bar ── */
.trust-bar {
  padding: 1.25rem 0;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border-bottom: 1px solid var(--glass-border-soft);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--color-text-muted);
}
.trust-item svg { flex-shrink: 0; color: var(--color-primary); }
.trust-item strong { color: var(--color-primary-dark); }
@media (max-width: 900px) { .trust-bar-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-bar-inner { grid-template-columns: 1fr; } }

/* ── Precios preview ── */
.precios-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; min-height: 280px; padding: 2rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center; color: var(--color-primary-dark);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.precios-preview svg { color: var(--color-primary); opacity: 0.7; }
.precios-preview:hover { box-shadow: var(--glass-shadow-hover); border-color: var(--color-primary-light); }
.precios-preview .typo-pdf-hint { position: static; background: var(--color-primary); }

/* ── Mapa ── */
.loc-map {
  margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  aspect-ratio: 16 / 7;
}
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── CTA final simplificado ── */
.final-cta-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn { width: 100%; }
}

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 250;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: white;
  display: grid; place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); color: white; }

.plazas { background: transparent; }
.plazas-stats-panel--full { margin-bottom: 2.5rem; }

.plazas-stats-panel {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--glass-shadow);
}
.plazas-stats-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.plazas-stats-head h3 {
  font-family: var(--font-display); font-size: 1.125rem;
  color: var(--color-primary-dark);
}
.plazas-stats-tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text-muted);
  background: var(--color-bg-alt); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.plazas-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 520px) { .plazas-stats-grid { grid-template-columns: 1fr; } }

.stat-block {
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; text-align: center;
}
.stat-block-main {
  background: linear-gradient(160deg, rgba(45, 107, 122, 0.16) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-color: rgba(26, 74, 86, 0.45);
}
.stat-skeleton { opacity: 0.6; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 700; color: var(--color-primary);
  line-height: 1;
}
.stat-lbl {
  display: block; margin-top: 0.35rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text-muted);
}
.disp-error {
  grid-column: 1 / -1; color: var(--color-accent); font-weight: 600;
  text-align: center; padding: 1rem;
}
.disp-error a { color: var(--color-primary); font-weight: 700; }

.disp-tipologias {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 1rem;
}
.tipo-summary {
  padding: 1rem 0; border-bottom: 1px solid var(--color-border);
}
.tipo-summary:last-child { border-bottom: none; padding-bottom: 0; }
.tipo-summary-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; margin-bottom: 0.5rem;
}
.tipo-summary h4 {
  font-family: var(--font-display); font-size: 0.9375rem;
  color: var(--color-primary-dark);
}
.tipo-count {
  font-size: 0.875rem; color: var(--color-text-muted); white-space: nowrap;
}
.tipo-count strong { font-size: 1.125rem; color: var(--color-primary); }
.tipo-bar {
  height: 6px; background: var(--color-bg-alt); border-radius: 999px; overflow: hidden;
}
.tipo-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 999px; transition: width 0.4s ease;
}
.tipo-bar-fill--full { background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%); }
.tipo-tramite { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.35rem; }

.disp-updated-note {
  font-size: 0.75rem; color: var(--color-text-muted);
  line-height: 1.55; padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.disp-note {
  max-width: 760px; margin: 0 auto;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.7;
}
.disp-note strong { color: var(--color-primary-dark); }

/* ── Relación de precios ── */
.precios { background: transparent; }
.precios-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  margin-bottom: 1.5rem;
}
.precios-pdf-wrap {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.doc-icon-accent { background: var(--color-accent); }

/* ── Compare ── */
.compare { background: transparent; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
}
.compare-card.bad { background: rgba(245, 243, 240, 0.4); }
.compare-card.good {
  background: linear-gradient(160deg, rgba(45, 107, 122, 0.14) 0%, var(--glass-bg-strong) 100%);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: rgba(26, 74, 86, 0.4);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.compare-card.good::before {
  content: "Tu opción"; position: absolute; top: -12px; right: 1.25rem;
  background: var(--color-primary); color: white;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.3rem 0.75rem; border-radius: 999px;
}
.compare-card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-bottom: 1.25rem; color: var(--color-primary-dark);
}
.compare-list { list-style: none; }
.compare-list li {
  padding: 0.7rem 0; font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
  display: flex; gap: 0.65rem; align-items: flex-start;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list svg { flex-shrink: 0; margin-top: 2px; }
.icon-no { color: #c0392b; }
.icon-yes { color: #27ae60; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.3s;
}
.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-bg-strong);
}
.benefit-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(45, 107, 122, 0.2), rgba(184, 107, 75, 0.18));
  border: 1px solid var(--glass-border-soft);
  color: var(--color-primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.benefit h3 {
  font-family: var(--font-display); font-size: 1.0625rem;
  margin-bottom: 0.5rem; color: var(--color-primary-dark);
}
.benefit p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.65; }

/* ── Typologies ── */
.typologies { background: transparent; }
.typo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .typo-grid { grid-template-columns: 1fr; } }
.typo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.typo:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--glass-shadow-hover); }
.typo.featured { border: 2px solid var(--color-accent); }
.typo-visual {
  height: 140px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; color: white; position: relative;
}
.typo.featured .typo-visual {
  background: linear-gradient(135deg, #8b4a2f 0%, var(--color-accent) 100%);
}
.typo-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.typo-visual h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.typo-visual p { font-size: 0.8125rem; opacity: 0.9; margin-top: 0.15rem; }
.typo-pdf-wrap {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.typo-plano-thumb {
  width: 100%; height: 100%; object-fit: contain;
  object-position: center; display: block;
  background: #fff;
}
.typo-pdf-wrap--placeholder { background: var(--color-bg-alt); }
.typo-plano-doc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: var(--color-primary);
  font-size: 0.85rem; font-weight: 600; text-align: center; padding: 1rem;
}
.typo-plano-doc svg { opacity: 0.65; }
.typo-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.typo-price {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--color-primary); margin-bottom: 0.35rem;
}
.typo-price-note { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.typo-specs { list-style: none; margin-bottom: 1.25rem; flex: 1; }
.typo-specs li {
  font-size: 0.875rem; color: var(--color-text-muted);
  padding: 0.35rem 0; display: flex; gap: 0.5rem; align-items: flex-start;
}
.typo-specs svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
.typo-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Steps sign ── */
.sign-flow { background: transparent; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
@media (max-width: 768px) { .steps-row { grid-template-columns: 1fr; gap: 1.5rem; } }
.step-card {
  text-align: center; padding: 2rem 1.5rem; position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.step-card--primary {
  background: linear-gradient(180deg, rgba(184, 107, 75, 0.16) 0%, var(--glass-bg-strong) 100%);
  border: 2px solid var(--color-accent);
  box-shadow: 0 16px 44px rgba(184, 107, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.step-card--primary .step-primary-btn { margin-top: 1rem; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  background: var(--color-primary); color: white;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(26, 74, 86, 0.25);
}
.step-num--primary {
  background: var(--color-accent);
  box-shadow: 0 4px 16px rgba(184, 107, 75, 0.3);
}
.step-card h3 {
  font-family: var(--font-display); font-size: 1.125rem;
  margin-bottom: 0.5rem; color: var(--color-primary-dark);
}
.step-card p { font-size: 0.9375rem; color: var(--color-text-muted); max-width: 30ch; margin-inline: auto; }
.zero-risk {
  margin-top: 2.5rem; text-align: center;
  background: linear-gradient(160deg, rgba(46, 125, 50, 0.14), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(46, 125, 50, 0.28);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  max-width: 640px; margin-inline: auto;
  box-shadow: 0 10px 32px rgba(46, 125, 50, 0.12);
}
.zero-risk strong {
  display: block; font-family: var(--font-display);
  font-size: 1.2rem; color: #2e7d32; margin-bottom: 0.35rem;
}
.zero-risk p { font-size: 0.9375rem; color: var(--color-text-muted); }

/* ── Timeline ── */
.timeline { background: transparent; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .timeline-grid { grid-template-columns: 1fr; } }
.tl-item {
  padding: 1.5rem; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.tl-item:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.tl-phase {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-accent); margin-bottom: 0.35rem;
}
.tl-item h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.35rem; color: var(--color-primary-dark); }
.tl-item p { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0; }

/* ── Location ── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .location-grid { grid-template-columns: 1fr; } }
.loc-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.loc-card .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--color-bg-alt); padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs); color: var(--color-primary); margin-bottom: 0.75rem;
}
.loc-card h3 {
  font-family: var(--font-display); font-size: 1.125rem;
  margin-bottom: 0.5rem; color: var(--color-primary-dark);
}
.loc-card p { color: var(--color-text-muted); font-size: 0.9375rem; }
.loc-card a { color: var(--color-primary); font-weight: 600; }
.loc-card a:hover { text-decoration: underline; }

/* ── Documents ── */
.docs { background: transparent; }
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .docs-grid { grid-template-columns: 1fr; } }
.doc {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-soft); border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.doc:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-light);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover);
}
.doc-icon {
  width: 44px; height: 44px; background: var(--color-primary);
  color: white; border-radius: var(--radius-sm);
  display: grid; place-items: center; flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-info h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.1rem; }
.doc-info p { font-size: 0.8125rem; color: var(--color-text-muted); }
.legal-note {
  margin-top: 2rem; padding: 1rem 1.25rem;
  background: linear-gradient(160deg, rgba(240, 224, 160, 0.32), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(240, 224, 160, 0.7);
  border-radius: var(--radius-md); font-size: 0.8125rem; color: #6b5a1a; line-height: 1.65;
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.faq-item[open] {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.faq-item summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1rem; color: var(--color-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--color-accent); line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item p { margin-top: 0.85rem; color: var(--color-text-muted); font-size: 0.9375rem; padding-right: 2rem; line-height: 1.7; }

/* ── Final CTA ── */
.final-cta {
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, #0f2830 50%, var(--color-primary) 100%);
  color: white; padding: 5rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.final-cta-parallax {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.final-cta-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  will-change: transform;
}
.final-cta-orb--1 {
  width: 500px; height: 500px; top: -20%; right: -10%;
  background: rgba(184, 107, 75, 0.25);
}
.final-cta-orb--2 {
  width: 400px; height: 400px; bottom: -25%; left: -8%;
  background: rgba(232, 205, 176, 0.12);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(184, 107, 75, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600; line-height: 1.15; margin-bottom: 1rem;
}
.final-cta .lead {
  font-size: 1.125rem; opacity: 0.9; max-width: 540px;
  margin: 0 auto 2.5rem; line-height: 1.75;
}

/* ── Manifestación: vía principal + alternativas ── */
.manifest-paths {
  max-width: 680px; margin: 0 auto 2rem; text-align: left;
}
.plazas .manifest-paths { max-width: 720px; margin-bottom: 2rem; }
.final-cta .manifest-paths { margin-inline: auto; }

.manifest-primary {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--glass-shadow);
}
.manifest-eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-accent); margin-bottom: 0.45rem;
}
.manifest-primary-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600; color: var(--color-primary-dark); line-height: 1.2;
  margin-bottom: 0.5rem;
}
.manifest-primary-lead {
  font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.65;
  max-width: 42ch;
}
.manifest-flow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none; margin: 1.5rem 0 1.75rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 560px) { .manifest-flow { grid-template-columns: 1fr; } }
.manifest-flow li {
  padding: 0.9rem 1rem; font-size: 0.8125rem; color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.35); border-right: 1px solid var(--glass-border-soft);
  line-height: 1.45;
}
@media (max-width: 560px) {
  .manifest-flow li { border-right: none; border-bottom: 1px solid var(--color-border); }
  .manifest-flow li:last-child { border-bottom: none; }
}
.manifest-flow li:last-child { border-right: none; }
.manifest-flow li strong {
  display: block; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; color: var(--color-primary);
  margin-bottom: 0.1rem;
}
.manifest-primary-btn { width: 100%; }

.manifest-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0 1.25rem;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--color-text-muted);
}
.manifest-divider::before,
.manifest-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--color-border);
}

.manifest-alternatives {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
@media (max-width: 560px) { .manifest-alternatives { grid-template-columns: 1fr; } }
.manifest-alt {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.manifest-alt:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-hover); }
.manifest-alt h4 {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 600; color: var(--color-primary-dark); margin-bottom: 0.35rem;
}
.manifest-alt p {
  font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.55;
}
.manifest-alt p a { color: var(--color-primary); font-weight: 600; }
.manifest-alt-actions {
  margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
}
.manifest-alt-actions a {
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary);
  text-decoration: underline; text-underline-offset: 2px;
}
.manifest-alt-actions a:hover { color: var(--color-accent); }

/* Variante sobre fondo oscuro (CTA final) */
.manifest-paths--inverse .manifest-primary {
  background: rgba(255, 255, 255, 0.97);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.manifest-paths--inverse .manifest-divider { color: rgba(255, 255, 255, 0.55); }
.manifest-paths--inverse .manifest-divider::before,
.manifest-paths--inverse .manifest-divider::after { background: rgba(255, 255, 255, 0.18); }
.manifest-paths--inverse .manifest-alt {
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border-color: var(--glass-dark-border);
  box-shadow: var(--glass-dark-shadow);
}
.manifest-paths--inverse .manifest-alt:hover { background: var(--glass-dark-bg-strong); }
.manifest-paths--inverse .manifest-alt h4 { color: white; }
.manifest-paths--inverse .manifest-alt p { color: rgba(255, 255, 255, 0.78); }
.manifest-paths--inverse .manifest-alt p a,
.manifest-paths--inverse .manifest-alt-actions a { color: var(--color-sand-light); }
.manifest-paths--inverse .manifest-alt-actions a:hover { color: white; }
.manifest-docs-link {
  font-size: 0.875rem; opacity: 0.72; margin-bottom: 2.5rem;
}
.manifest-docs-link a { text-decoration: underline; text-underline-offset: 2px; }
.manifest-docs-link a:hover { opacity: 1; }
.contact-notice {
  max-width: 760px; margin: 0 auto 2rem;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  font-size: 0.875rem; opacity: 0.95; line-height: 1.65; text-align: left;
  box-shadow: var(--glass-dark-shadow);
}
.contact-notice strong { display: block; margin-bottom: 0.25rem; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-md); padding: 1.5rem;
  text-align: left; font-size: 0.875rem;
}
.contact-grid span { display: block; opacity: 0.65; font-size: 0.75rem; margin-bottom: 0.15rem; }
.contact-grid a { color: var(--color-sand-light); }
.contact-grid a:hover { color: white; }

/* ── Footer ── */
.footer {
  background: #0a1f25; color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem; font-size: 0.875rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: white; font-family: var(--font-display); margin-bottom: 0.75rem; font-size: 0.9375rem; }
.footer p { margin-bottom: 0.4rem; }
.footer a { color: var(--color-sand-light); }
.footer a:hover { color: white; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem; font-size: 0.72rem; opacity: 0.65; line-height: 1.75;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(88vw, 320px); z-index: 400;
    flex-direction: column; align-items: stretch;
    padding: 6.75rem 1.25rem 2rem;
    background: rgba(249, 246, 241, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -12px 0 40px rgba(18, 53, 62, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 0.25rem;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a:not(.btn) {
    padding: 0.75rem 0.85rem; font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
  html.nav-open { overflow: hidden; }
  html.nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 350;
    background: rgba(8, 24, 28, 0.5);
  }
  html.nav-open .header {
    top: 0;
    background: rgba(249, 246, 241, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border-soft);
    box-shadow: 0 8px 32px rgba(18, 53, 62, 0.1);
  }
  html.nav-open .logo-text strong { color: var(--color-primary-dark); text-shadow: none; }
  html.nav-open .logo-text span { color: var(--color-text-muted); text-shadow: none; }
  html.nav-open .logo-mark {
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none; box-shadow: 0 4px 14px rgba(26, 74, 86, 0.25);
  }
  html.nav-open .nav-toggle { color: var(--color-primary-dark); background: var(--glass-bg); border-color: var(--glass-border-soft); }
}

/* ── Responsive móvil ── */
@media (max-width: 768px) {
  html { scroll-padding-top: 6.75rem; }
  section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .topbar {
    font-size: 0.72rem;
    flex-wrap: wrap;
    line-height: 1.4;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-left));
  }

  .hero--cinematic {
    min-height: auto;
    min-height: max(88svh, 34rem);
    overflow-x: clip;
    overflow-y: visible;
    padding: calc(6.25rem + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2.75rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    align-items: flex-end;
  }
  .hero-cinematic-inner { padding-inline: 0; width: 100%; }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-parallax-bg img { object-position: center 28%; }
  .hero-eyebrow--light { font-size: 0.72rem; margin-bottom: 1rem; }
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3.1rem);
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
  }
  .hero-lead.hero-lead--light {
    font-size: 1.02rem; line-height: 1.55;
    max-width: none; margin-bottom: 1.6rem;
  }
  .hero-ctas {
    flex-direction: column; align-items: stretch;
    gap: 0.6rem; margin-bottom: 1.5rem;
  }
  .hero-ctas .btn { width: 100%; }
  .hero-trust--light { gap: 0.5rem; }
  .hero-trust--light .trust-pill { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
  .hero-parallax-orb--1 { width: 280px; height: 280px; }
  .hero-parallax-orb--2 { width: 220px; height: 220px; }

  .parallax-band { min-height: 48vh; }
  .parallax-band-content { padding: 3rem 0; }
  .parallax-band-quote { max-width: none; padding-inline: 0.5rem; }

  main#main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  body::before { background-attachment: scroll; }

  .btn { white-space: normal; text-wrap: balance; }
  .precios-actions .btn,
  .typo-actions .btn,
  .final-cta-actions .btn,
  .step-primary-btn,
  .manifest-primary-btn { width: 100%; }

  .tipo-summary-head { flex-wrap: wrap; align-items: flex-start; }
  .tipo-count { white-space: normal; text-align: right; }
  .faq-item summary { flex-wrap: wrap; row-gap: 0.35rem; }
  .faq-item p { padding-right: 0; }

  .final-cta { padding: 3.5rem 0 max(3rem, env(safe-area-inset-bottom)); }
  .manifest-primary { padding: 1.5rem 1.25rem 1.35rem; }
  .zero-risk { padding: 1.5rem 1.25rem; }
  .legal-note, .disp-note { padding: 1rem 1.15rem; }

  .wa-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
  }

  .mf-wrap {
    padding: 6.5rem max(1rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
  .mf-form { padding: 1.25rem; }
  .mf-steps { font-size: 0.68rem; gap: 0.2rem; margin-bottom: 1.5rem; }
  .mf-step { line-height: 1.25; hyphens: auto; word-break: break-word; padding-inline: 0.15rem; }

  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 480px) {
  section { padding: 2.75rem 0; }
  .hero--cinematic {
    min-height: max(82svh, 32rem);
    padding-top: calc(5.75rem + env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
  .hero-title { font-size: clamp(1.95rem, 10vw, 2.75rem); }
  .hero-copy { padding: 1.5rem 1.15rem; }
  .hero-eyebrow--light { font-size: 0.68rem; padding: 0.3rem 0.7rem; }
  .hero-trust--light { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .hero-trust--light .trust-pill { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { padding: 0.9rem 1.4rem; font-size: 1rem; }
  .header-inner { padding: 0.7rem 0; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text strong { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .manifest-primary { padding: 1.5rem 1.25rem; }
  .plazas-stats-panel { padding: 1.25rem; }
  .contact-grid { padding: 1.15rem; }
  .mf-field-row { flex-direction: column; }
  .mf-field-row .btn { width: 100%; }
  .mf-steps { font-size: 0.62rem; }
  .mf-resumen-vivienda div { grid-template-columns: 1fr; gap: 0.1rem; }
  .mf-resumen-vivienda dd { margin-bottom: 0.4rem; }
  .mf-option-card { padding: 0.85rem 0.9rem; }
  .mf-planta-pill { flex: 1 1 calc(50% - 0.5rem); justify-content: center; text-align: center; }
}

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Manifestación online (firmar/) ── */
.mf-page { background: var(--color-bg); min-height: 100vh; }
.mf-wrap { max-width: 640px; padding: 7rem 1rem 4rem; }
.mf-head { text-align: center; margin-bottom: 2rem; }
.mf-head h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.5rem; }
.mf-head p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.6; }
.mf-progress-wrap {
  height: 4px; background: var(--color-border); border-radius: 999px;
  margin-bottom: 1.25rem; overflow: hidden;
}
.mf-progress-bar { height: 100%; width: 25%; background: var(--color-accent); transition: width 0.3s; border-radius: 999px; }
.mf-steps {
  display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 2rem;
  font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted);
}
.mf-step { flex: 1; text-align: center; position: relative; padding-top: 0.5rem; }
.mf-step::before {
  content: ''; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-border); margin: 0 auto 0.35rem;
}
.mf-step.active { color: var(--color-accent); }
.mf-step.active::before, .mf-step.done::before { background: var(--color-accent); }
.mf-form { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; }
.mf-panel h2 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 1rem; }
.mf-hint { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.mf-field-note { display: block; font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.35rem; line-height: 1.4; }
.mf-field-note--inline { margin-top: 0; margin-bottom: 0.5rem; }
.mf-draft-notice {
  margin-bottom: 1.25rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: #eef6f4; border: 1px solid #c5e0da; font-size: 0.875rem; line-height: 1.5;
}
.mf-draft-clear {
  display: inline; margin-left: 0.35rem; padding: 0; border: 0; background: none;
  color: var(--color-primary); font-weight: 600; cursor: pointer; text-decoration: underline;
}
.mf-tipo-detail {
  margin-top: 0.75rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: var(--color-sand-light); border: 1px solid var(--color-border);
  font-size: 0.875rem; line-height: 1.55;
}
.mf-resumen-vivienda {
  display: grid; gap: 0.5rem; margin: 0;
}
.mf-resumen-vivienda div {
  display: grid; grid-template-columns: minmax(5.5rem, 38%) 1fr;
  gap: 0.35rem 0.65rem; align-items: baseline;
}
.mf-resumen-vivienda dt {
  margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--color-text-muted);
}
.mf-resumen-vivienda dd { margin: 0; font-weight: 600; color: var(--color-primary-dark); }

/* Selector vivienda — tarjetas y pastillas (móvil primero) */
.mf-vivienda-grid { gap: 1.25rem; }
.mf-option-cards {
  display: grid; gap: 0.65rem; margin-top: 0.15rem;
}
.mf-option-card {
  display: block; width: 100%; text-align: left;
  padding: 0.9rem 1rem; min-height: 44px;
  border: 2px solid var(--color-border); border-radius: 12px;
  background: #fff; cursor: pointer;
  font: inherit; color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mf-option-card:hover { border-color: var(--color-primary-light); }
.mf-option-card.is-selected {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, #fef9f6 0%, #fff 100%);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.mf-option-card-title {
  display: block; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}
.mf-option-card-meta {
  display: grid; gap: 0.2rem;
  font-size: 0.875rem; line-height: 1.4; color: var(--color-text-muted);
}
.mf-option-card-meta span { display: block; }
.mf-option-card-sub { font-size: 0.8125rem; opacity: 0.9; }

.mf-planta-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem;
}
.mf-planta-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--color-border); border-radius: 999px;
  background: #fff; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  color: var(--color-primary-dark);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mf-planta-pill:hover { border-color: var(--color-primary); }
.mf-planta-pill.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary); color: #fff;
}
.mf-planta-hint {
  font-size: 0.875rem; color: var(--color-text-muted);
  padding: 0.65rem 0; margin: 0; line-height: 1.45;
}
.mf-field--planta.mf-field--disabled .mf-planta-pills { opacity: 0.55; pointer-events: none; }
.mf-field--error .mf-option-card,
.mf-field--error .mf-planta-pill { border-color: #b42318; }
.mf-field-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch; }
.mf-field-row input { flex: 1; min-width: 12rem; }
.mf-field-row .btn { flex-shrink: 0; align-self: stretch; }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .mf-grid { grid-template-columns: 1fr; } }
.mf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.mf-field-full { grid-column: 1 / -1; }
.mf-field span { font-size: 0.8125rem; font-weight: 600; }
.mf-field input, .mf-field select, .mf-field textarea {
  padding: 0.65rem 0.75rem; border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; font-size: max(16px, 0.9375rem); background: white;
}
/* ── Formulario firma: errores inline ── */
.mf-error {
  font-size: 0.78rem; color: #b42318; margin-top: 0.35rem;
}
.mf-error--global { margin-bottom: 1rem; padding: 0.75rem; background: #fef2f2; border-radius: var(--radius-sm); }
.mf-field--error input, .mf-field--error select, .mf-field--error textarea {
  border-color: #b42318;
}
.mf-field input:focus, .mf-field select:focus, .mf-field textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent);
}
.mf-checks { display: flex; flex-direction: column; gap: 0.85rem; }
.mf-check {
  display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; cursor: pointer;
}
.mf-check input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--color-accent); }
.mf-signature-wrap { margin-bottom: 1rem; width: 100%; }
.mf-signature-pad {
  position: relative; width: 100%;
  border: 2px dashed var(--color-border); border-radius: 12px;
  background: #fff; overflow: hidden;
}
#mf-signature {
  display: block; width: 100%; min-height: 220px;
  cursor: crosshair; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.mf-signature-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; font-size: 0.9rem; color: var(--color-text-muted);
  pointer-events: none; transition: opacity 0.2s;
}
.mf-signature-pad.has-signature .mf-signature-hint { opacity: 0; }
.mf-signature-wrap .btn { margin-top: 0.75rem; }
.mf-legal-note { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 1rem; line-height: 1.5; }
.mf-nav { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; flex-wrap: wrap; }
.mf-nav #mf-prev[hidden],
.mf-nav #mf-next[hidden],
.mf-nav #mf-submit[hidden] { display: none !important; }
.mf-nav--final { justify-content: space-between; }
.mf-nav--final #mf-submit { flex: 1; min-width: min(100%, 20rem); }
.mf-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
.mf-result { background: white; border-radius: 14px; padding: 2rem; border: 1px solid var(--color-border); text-align: center; }
.mf-success h2, .mf-warn h2 { font-family: var(--font-display); margin-bottom: 0.75rem; }
.mf-success p, .mf-warn p { margin-bottom: 1rem; line-height: 1.6; }
.mf-warn { color: var(--color-text); }

/* ── Aviso "ampliar plano" sobre la vista previa ── */
.typo-pdf-wrap { cursor: pointer; }
.typo-pdf-hint {
  position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(18, 53, 62, 0.82); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.35rem 0.65rem; border-radius: var(--radius-pill);
  pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.typo-pdf-hint svg { flex-shrink: 0; }
.typo-pdf-wrap:hover .typo-pdf-hint { background: var(--color-accent); }

@media (max-width: 768px) {
  .typo-pdf-hint {
    position: absolute; bottom: 0.6rem; right: 0.6rem;
    font-size: 0.72rem; padding: 0.35rem 0.65rem;
    background: rgba(18, 53, 62, 0.82);
  }
}

/* ── Visor de planos (modal con zoom y desplazamiento) ── */
.plano-viewer {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  background: rgba(8, 24, 28, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.plano-viewer.is-open { display: flex; }
html.pv-lock, html.pv-lock body { overflow: hidden; }
.plano-viewer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; color: #fff;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}
.plano-viewer-title {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plano-viewer-tools { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.pv-btn:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.pv-btn--label { width: auto; padding: 0 0.9rem; font-size: 0.8rem; font-weight: 600; }
.plano-viewer-stage {
  position: relative; flex: 1; overflow: hidden;
  touch-action: none; cursor: grab;
}
.plano-viewer-stage.is-grabbing { cursor: grabbing; }
.plano-viewer-pages {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0; will-change: transform;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pv-page { display: block; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.plano-viewer-loading {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; text-align: center;
}
.plano-viewer-loading a { color: var(--color-sand-light); text-decoration: underline; }
.plano-viewer-help {
  text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.75rem;
  padding: 0.6rem 1rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
@media (max-width: 480px) {
  .pv-btn { width: 38px; height: 38px; }
  .plano-viewer-title { font-size: 0.82rem; }
}
