/* ==========================================================================
   Casas Santiago — estilos del sitio
   Se apoya en los tokens de tema.css y en los componentes de shadcn-html
   (que viven en @layer components; estas reglas sin capa tienen prioridad).
   ========================================================================== */

/* -- Base (en capa, para que los componentes de shadcn-html la sobrescriban) -- */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

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

  h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--brand-navy-deep);
  }
  h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    font-optical-sizing: auto;
  }
  h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.85rem); }
  h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; }
  p { margin: 0; text-wrap: pretty; }

  a { color: inherit; }
  main a:not([class]) { color: var(--brand-navy); text-underline-offset: 0.2em; }

  :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.75rem 1rem; border-radius: var(--radius-md); text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* -- Ajustes a componentes ------------------------------------------------ */
.btn { text-decoration: none; }
.btn .icon { width: 1rem; height: 1rem; }
.btn-lg, .btn[data-size="lg"] { height: 2.875rem; padding-inline: 1.375rem; font-size: 0.9375rem; }
.btn-xl { height: 3.25rem; padding-inline: 1.75rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-lg); }
.btn-sm { height: 2rem; padding-inline: 0.75rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.btn[data-variant="default"] { box-shadow: var(--shadow-sm); }
.btn[data-variant="link"] { padding-inline: 0; height: auto; color: var(--brand-navy); font-weight: 600; }

.btn-glass {
  background: oklch(1 0 0 / 0.12);
  color: #fff;
  border: 1px solid oklch(1 0 0 / 0.45);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: oklch(1 0 0 / 0.22); }
.btn-light { background: #fff; color: var(--brand-navy-deep); }
.btn-light:hover { background: var(--brand-stone); }
.btn-wa { background: var(--whatsapp); color: oklch(0.2 0.05 150); font-weight: 600; }
.btn-wa:hover { background: color-mix(in oklch, var(--whatsapp) 88%, black); }

.input, .select, .textarea { width: 100%; font-family: var(--font-sans); }
.input, .select { height: 2.75rem; font-size: 0.9375rem; }
.textarea { font-size: 0.9375rem; }
.input[aria-invalid="true"] { border-color: var(--destructive); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 0.875rem;
}
.eyebrow-light { color: oklch(0.86 0.09 140); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: color-mix(in oklch, var(--brand-green) 14%, white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6a1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}
.check-list-light li { color: oklch(0.92 0.01 280); }
.check-list-light li::before {
  background-color: oklch(1 0 0 / 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9e3a8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* -- Barra superior ------------------------------------------------------- */
.topbar {
  background: var(--brand-navy-deep);
  color: oklch(0.9 0.01 280);
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 2.5rem;
}
.topbar ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar li { display: inline-flex; align-items: center; gap: 0.375rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.375rem; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 0.9375rem; height: 0.9375rem; opacity: 0.85; }
.topbar-social { gap: 0.25rem !important; }
.topbar-social a { padding: 0.25rem; }

/* -- Cabecera ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(1 0 0 / 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 4.75rem;
}
.brand img { height: 3.25rem; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--foreground);
}
.main-nav a:hover { background: var(--accent); color: var(--brand-navy); }
.main-nav a[aria-current="page"] { color: var(--brand-navy); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: flex; align-items: center; gap: 0.625rem;
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--brand-navy-deep);
  white-space: nowrap;
}
.header-phone small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.2; }
.header-phone-icon {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: var(--brand-navy);
}
.header-phone-icon .icon { width: 1rem; height: 1rem; }
.nav-toggle { display: none; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 760px) { .topbar .hide-md { display: none; } }
@media (max-width: 560px) {
  .topbar .hide-sm { display: none; }
  .header-inner { height: 4rem; }
  .brand img { height: 2.625rem; }
  .header-actions .btn[data-variant="default"] { display: none; }
}

/* Menú móvil */
.mobile-menu { width: min(22rem, 88vw); }
.mobile-nav { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; }
.mobile-nav a {
  display: block; padding: 0.875rem 0; border-bottom: 1px solid var(--border);
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.mobile-contact { display: grid; gap: 0.625rem; }

/* -- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center;
  min-height: calc(100svh - 7.25rem);
  min-height: max(36rem, calc(100svh - 7.25rem));
  color: #fff;
  overflow: hidden;
  background: var(--brand-navy-deep) url("../img/hero.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, oklch(0.2 0.06 280 / 0.86) 0%, oklch(0.2 0.06 280 / 0.62) 45%, oklch(0.2 0.06 280 / 0.1) 100%),
    linear-gradient(0deg, oklch(0.18 0.05 280 / 0.55) 0%, transparent 40%);
}
.hero-content { padding-block: 5rem 6rem; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  line-height: 1.04;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-highlight { display: block; color: oklch(0.88 0.1 140); font-style: italic; font-weight: 500; }
.hero-lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  max-width: 38rem;
  color: oklch(0.94 0.01 280);
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.75rem; }
.hero-actions .btn[data-variant="default"] { background: #fff; color: var(--brand-navy-deep); }
.hero-actions .btn[data-variant="default"]:hover { background: var(--brand-stone); opacity: 1; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid oklch(1 0 0 / 0.2);
  max-width: 44rem;
  font-size: 0.9375rem; font-weight: 500;
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust .icon { color: oklch(0.86 0.09 140); }
.hero-video-toggle {
  position: absolute; left: clamp(1rem, 4vw, 2rem); bottom: 1.5rem;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: 1px solid oklch(1 0 0 / 0.4);
  background: oklch(0 0 0 / 0.25); color: #fff; cursor: pointer;
}
.hero-video-toggle .icon { width: 0.875rem; height: 0.875rem; }
.hero-video-toggle .icon-play, .hero-video-toggle[data-paused="true"] .icon-pause { display: none; }
.hero-video-toggle[data-paused="true"] .icon-play { display: block; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: #fff; opacity: 0.8;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { translate: -50% 6px; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 6.5rem); align-items: flex-end; }
  .hero-overlay { background: linear-gradient(0deg, oklch(0.2 0.06 280 / 0.92) 0%, oklch(0.2 0.06 280 / 0.65) 60%, oklch(0.2 0.06 280 / 0.35) 100%); }
  .hero-content { padding-block: 3rem 4.5rem; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }
}

/* -- Secciones ------------------------------------------------------------ */
.section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.section-stone { background: var(--brand-stone); }
.section-head { margin-bottom: clamp(2.25rem, 2rem + 2vw, 3.5rem); max-width: 46rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-split {
  max-width: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end;
}
.section-head-split h2 { margin-bottom: 0; }
.section-lead { font-size: 1.0625rem; color: var(--muted-foreground); }
@media (max-width: 760px) { .section-head-split { grid-template-columns: 1fr; } }

/* -- Pilares (características) -------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  position: relative;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: translate 200ms ease, box-shadow 200ms ease;
}
.pillar:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.pillar h3 { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; margin-bottom: 0.75rem; }
.pillar > p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.pillar-icon {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--accent); color: var(--brand-navy);
}
.pillar-icon .icon { width: 1.625rem; height: 1.625rem; }
.pillar-featured { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.pillar-featured h3 { color: #fff; }
.pillar-featured > p { color: oklch(0.88 0.02 280); }
.pillar-featured .pillar-icon { background: oklch(1 0 0 / 0.12); color: #fff; }
.pillar-featured .check-list li::before {
  background-color: oklch(1 0 0 / 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9e3a8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .pillar, .model-card { transition: none; } }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* -- Cifras --------------------------------------------------------------- */
.stats-band { background: var(--brand-navy-deep); color: #fff; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 2.75rem;
}
.stat { text-align: center; padding: 0.5rem 1rem; }
.stat + .stat { border-left: 1px solid oklch(1 0 0 / 0.14); }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1.05;
  color: #fff;
}
.stat span { font-size: 0.9375rem; color: oklch(0.85 0.02 280); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
}

/* -- Catálogo ------------------------------------------------------------- */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.catalog-filters { overflow-x: auto; padding: 0.25rem; margin: -0.25rem; scrollbar-width: none; min-width: 0; }
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-filters .tab-list { background: #fff; border: 1px solid var(--border); padding: 0.3125rem; }
.catalog-filters .tab-trigger { padding: 0.5rem 1rem; font-size: 0.9375rem; }
.catalog-filters .tab-trigger[aria-selected="true"] { background: var(--brand-navy); color: #fff; box-shadow: none; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.5rem; }

/* Carrusel del catálogo: desplazamiento nativo con scroll-snap */
.carousel-arrows { display: flex; gap: 0.5rem; flex-shrink: 0; }
.carousel-arrows .btn { background: #fff; border-radius: 50%; }
.carousel-arrows .btn:disabled { opacity: 0.35; }
.icon-flip { scale: -1 1; }
.catalog-track {
  --gap: 1.5rem;
  --por-vista: 3;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--por-vista) - 1) * var(--gap)) / var(--por-vista));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* espacio para la sombra y el desplazamiento al pasar el cursor */
  padding-block: 0.5rem 1.5rem;
  margin-block: -0.5rem -1.5rem;
}
.catalog-track::-webkit-scrollbar { display: none; }
.catalog-track:focus-visible { outline-offset: 4px; }
.catalog-track .model-card { scroll-snap-align: start; }
.carousel-footer {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-top: 1.75rem;
}
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dots[hidden] { display: none; }
.carousel-dots button {
  width: 0.5rem; height: 0.5rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in oklch, var(--brand-navy) 25%, transparent);
  transition: width 200ms ease, background 200ms ease;
}
.carousel-dots button[aria-current="true"] { width: 1.5rem; background: var(--brand-navy); }
/* Área táctil más grande sin agrandar el punto */
.carousel-dots button { position: relative; }
.carousel-dots button::after { content: ""; position: absolute; inset: -0.75rem -0.25rem; }
.carousel-count { font-size: 0.875rem; color: var(--muted-foreground); }
.carousel-footer .btn { margin-top: 0.5rem; background: #fff; }
@media (prefers-reduced-motion: reduce) { .carousel-dots button { transition: none; } }
@media (max-width: 960px) { .catalog-track { --por-vista: 2; } }
@media (max-width: 640px) {
  .carousel-arrows { display: none; }
  /* La pista llega al borde de la pantalla y se asoma la tarjeta siguiente */
  .catalog-track {
    --gap: 0.875rem;
    grid-auto-columns: 84%;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding-inline: clamp(1rem, 4vw, 2rem);
    scroll-padding-inline: clamp(1rem, 4vw, 2rem);
  }
  .catalog-toolbar { margin-bottom: 1rem; }
  .catalog-filters { flex: 1; }
  .catalog-filters .tab-list { display: flex; width: 100%; }
  .catalog-filters .tab-trigger { flex: 1; padding: 0.5rem 0.25rem; font-size: 0.8125rem; }
  .carousel-footer { margin-top: 1.25rem; }
  .carousel-footer .btn { width: 100%; }
  /* Tarjeta compacta */
  .catalog-track .model-card-media { aspect-ratio: 16 / 10; }
  .catalog-track .media-placeholder-icon { width: 2rem !important; height: 2rem !important; }
  .catalog-track .media-placeholder-m2 { font-size: 1.5rem; }
  .catalog-track .model-card-body { padding: 1rem 1.125rem 1.125rem; }
  .catalog-track .model-card-title { margin-bottom: 0.625rem; }
  .catalog-track .model-card-facts { margin-bottom: 0.875rem; }
  .catalog-track .model-card-price { padding-top: 0.75rem; margin-bottom: 0.875rem; }
}

/* Tabla comparativa */
.compare-dialog { overflow: auto; overscroll-behavior: contain; }
.compare-table { font-size: 0.875rem; }
.compare-table-wrap { overflow: visible; }
.compare-table thead th { position: sticky; top: 0; z-index: 1; }
.compare-table th[scope="row"] { font-weight: 500; text-align: left; }
.compare-table th[scope="row"] a { color: var(--brand-navy); text-underline-offset: 0.2em; }
.compare-table td, .compare-table thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-table td:last-child { font-weight: 600; color: var(--brand-navy-deep); }
.compare-group th {
  background: var(--brand-stone); color: var(--muted-foreground);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-align: left;
}
.compare-table abbr { text-decoration: none; }
@media (max-width: 480px) {
  .compare-dialog .dialog-content { padding: 1.25rem 0.75rem; }
  .compare-dialog .dialog-header { padding-inline: 0.5rem; padding-right: 2.5rem; }
  .compare-table { font-size: 0.8125rem; }
  .compare-table :is(th, td) { padding-inline: 0.375rem; }
}

.catalog-loading { grid-column: 1 / -1; text-align: center; color: var(--muted-foreground); padding: 3rem 0; }

.model-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: translate 200ms ease, box-shadow 200ms ease;
}
.model-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.model-card[hidden] { display: none; }
.model-card-media { position: relative; display: block; aspect-ratio: 4 / 3; }
.model-card-media img { width: 100%; height: 100%; object-fit: cover; }
.model-card-discount {
  position: absolute; top: 0.875rem; left: 0.875rem;
  background: var(--brand-green) !important; color: #fff !important;
  font-size: 0.75rem !important; font-weight: 700 !important; padding-inline: 0.625rem;
}
.model-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.375rem 1.375rem; }
.model-card-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); margin-bottom: 0.375rem; }
.model-card-title { font-size: 1.1875rem; margin-bottom: 0.875rem; }
.model-card-title a { text-decoration: none; }
.model-card-title a:hover { color: var(--brand-navy); text-decoration: underline; text-underline-offset: 0.2em; }
.model-card-facts {
  display: flex; flex-wrap: wrap; gap: 0.375rem 1rem;
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.model-card-facts li { display: inline-flex; align-items: center; gap: 0.375rem; }
.model-card-facts .icon { width: 1rem; height: 1rem; color: var(--brand-navy); }
.model-card-price {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.625rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border);
  margin-bottom: 1.125rem;
}
.price-old { color: var(--muted-foreground); text-decoration: line-through; font-size: 0.875rem; grid-column: 1 / -1; }
.price-now { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-navy-deep); line-height: 1.2; }
.price-note { font-size: 0.8125rem; color: var(--muted-foreground); }
.model-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }

/* Placeholder de foto y plano */
.media-placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 20% 0%, oklch(0.42 0.09 280) 0%, transparent 60%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: oklch(0.95 0.01 280);
  overflow: hidden;
}
.media-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.media-placeholder-plano {
  background: #fbfaf7;
  color: var(--brand-navy);
}
.media-placeholder-plano::after {
  background-image:
    linear-gradient(oklch(0.31 0.087 280 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.31 0.087 280 / 0.07) 1px, transparent 1px);
}
.media-placeholder-icon { width: 2.75rem !important; height: 2.75rem !important; opacity: 0.85; stroke-width: 1.4; }
.media-placeholder-m2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.media-placeholder-text { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

/* -- Banda calculadora ---------------------------------------------------- */
.calc-band {
  background:
    radial-gradient(80% 120% at 100% 0%, oklch(0.4 0.1 280 / 0.6) 0%, transparent 60%),
    var(--brand-navy);
  color: #fff;
}
.calc-band-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.calc-band h2 { color: #fff; margin-bottom: 1.25rem; }
.calc-band-text > p:not(.eyebrow) { color: oklch(0.9 0.015 280); font-size: 1.0625rem; margin-bottom: 1.75rem; max-width: 36rem; }
.calc-band .check-list { margin-bottom: 2.25rem; }
.receipt {
  background: #fff; color: var(--foreground);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-2xl);
  rotate: 1.5deg;
  max-width: 26rem; justify-self: center; width: 100%;
}
.receipt-title { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 600; }
.receipt-model { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--brand-navy-deep); margin: 0.25rem 0 1.25rem; }
.receipt-lines { margin: 0; display: grid; gap: 0.625rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); }
.receipt-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.receipt-lines dt { color: var(--muted-foreground); }
.receipt-lines dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; }
.receipt-total span { font-weight: 600; }
.receipt-total strong { font-size: 1.75rem; color: var(--brand-navy-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.receipt-note { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }
@media (max-width: 900px) {
  .calc-band-inner { grid-template-columns: 1fr; }
  .receipt { rotate: 0deg; }
}

/* -- Testimonios ---------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: var(--card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.testimonial-media {
  position: relative; display: grid; place-items: center; width: 100%;
  aspect-ratio: 4 / 5; border: 0; padding: 0; cursor: pointer;
  background:
    linear-gradient(0deg, oklch(0.2 0.06 280 / 0.75), oklch(0.2 0.06 280 / 0.15)),
    url("../img/hero.jpg") center / cover;
  color: #fff;
}
.testimonial:nth-child(2) .testimonial-media { background-position: center, 70% center; }
.testimonial:nth-child(3) .testimonial-media { background-position: center, 30% center; }
.testimonial-play {
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: oklch(1 0 0 / 0.92); color: var(--brand-navy);
  box-shadow: 0 0 0 10px oklch(1 0 0 / 0.18);
  transition: scale 200ms ease;
}
.testimonial-play .icon { width: 1.5rem; height: 1.5rem; margin-left: 3px; fill: currentColor; }
.testimonial-media:hover .testimonial-play { scale: 1.08; }
.testimonial-pending {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: oklch(0 0 0 / 0.35); padding: 0.25rem 0.625rem; border-radius: 999px;
}
.testimonial figcaption { padding: 1.5rem; }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.45; color: var(--brand-navy-deep); }
.testimonial-name { font-weight: 600; }
.testimonial-meta { font-size: 0.875rem; color: var(--muted-foreground); }
@media (max-width: 900px) {
  .testimonials { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 20rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .testimonial { scroll-snap-align: start; }
}

.video-dialog { max-width: 52rem !important; }
.video-dialog .dialog-content { padding: 0; background: #000; }
.video-frame video { width: 100%; max-height: 80vh; }
.video-pending { display: grid; place-items: center; gap: 1rem; text-align: center; padding: 4rem 2rem; color: #fff; background: var(--brand-navy-deep); }
.video-pending .icon { width: 2.5rem; height: 2.5rem; opacity: 0.7; }

/* -- Bloques de texto + imagen -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.split-text h2 { margin-bottom: 1.25rem; }
.split-text > p:not(.eyebrow) { color: var(--muted-foreground); font-size: 1.0625rem; margin-bottom: 1rem; }
.feature-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; }
.feature-list li { display: flex; gap: 1rem; }
.feature-list .icon {
  width: 2.75rem; height: 2.75rem; padding: 0.6875rem; border-radius: var(--radius-lg);
  background: var(--accent); color: var(--brand-navy);
}
.feature-list strong { display: block; color: var(--brand-navy-deep); }
.feature-list span { color: var(--muted-foreground); font-size: 0.9375rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.mv-card { padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.mv-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.mv-card p { font-size: 0.9375rem; color: var(--muted-foreground); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .mv-grid { grid-template-columns: 1fr; } }

/* -- Preguntas frecuentes ------------------------------------------------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .accordion-trigger { font-size: 1.0625rem; font-weight: 600; padding-block: 1.25rem; color: var(--brand-navy-deep); }
.faq .accordion-content p { color: var(--muted-foreground); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* -- Contacto ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.channel {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 1rem 1.125rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border);
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--brand-navy-deep);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  min-width: 0;
}
.channel span { min-width: 0; overflow-wrap: anywhere; }
button.channel { width: 100%; font-family: inherit; text-align: left; cursor: pointer; }
.channel:hover { border-color: var(--brand-navy); box-shadow: var(--shadow-sm); }
.channel small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.channel .icon {
  width: 2.5rem; height: 2.5rem; padding: 0.625rem; border-radius: 50%;
  background: var(--accent); color: var(--brand-navy);
}
.channel-wa .icon { background: color-mix(in oklch, var(--whatsapp) 20%, white); color: oklch(0.45 0.13 150); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.branch { padding: 1.25rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.branch h3 { margin-bottom: 0.75rem; }
.branch p { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.branch p .icon { width: 1rem; height: 1rem; margin-top: 0.2em; color: var(--brand-navy); }
.visit-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 1.125rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--accent); border: 1px solid color-mix(in oklch, var(--brand-navy) 12%, transparent);
}
.visit-cta p { font-size: 0.9375rem; color: var(--muted-foreground); }
.visit-cta strong { display: block; color: var(--brand-navy-deep); }
.visit-cta .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .visit-cta { flex-direction: column; align-items: stretch; }
  .visit-cta .btn { width: 100%; }
}
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--muted); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-form-card { box-shadow: var(--shadow-lg); }
.contact-form-card .card-title { font-family: var(--font-display); font-size: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .form-field { margin-bottom: 1rem; }
.form-row .form-field { margin-bottom: 0; }
.form-row { margin-bottom: 1rem; }
.req { color: var(--destructive); }
.form-error { color: var(--destructive); font-size: 0.875rem; margin-bottom: 1rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact-channels, .branches, .form-row { grid-template-columns: 1fr; }
  .form-row .form-field + .form-field { margin-top: 1rem; }
}

/* -- Pie de página -------------------------------------------------------- */
.site-footer { background: var(--brand-navy-deep); color: oklch(0.85 0.015 280); font-size: 0.9375rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.footer-brand img { height: 3.5rem; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 20rem; margin-bottom: 1.25rem; }
.footer-col h2 { font-family: var(--font-sans); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 1rem; }
.footer-col ul, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a, .footer-social a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.2);
}
.footer-social a:hover { background: oklch(1 0 0 / 0.1); color: #fff; }
.footer-bottom p + p { margin-top: 0.25rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 6rem;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  font-size: 0.8125rem; color: oklch(0.72 0.02 280);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* -- WhatsApp flotante ---------------------------------------------------- */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 50;
  display: inline-flex; align-items: center; gap: 0.625rem;
  height: 3.5rem; padding: 0 1.375rem 0 1.125rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--whatsapp); color: oklch(0.2 0.05 150);
  font: 600 0.9375rem/1 var(--font-sans);
  box-shadow: 0 10px 30px -6px oklch(0.5 0.15 150 / 0.55), var(--shadow-md);
  transition: translate 150ms ease, box-shadow 150ms ease;
}
.wa-fab:hover { translate: 0 -2px; }
.wa-fab .icon { width: 1.625rem; height: 1.625rem; }
@media (max-width: 640px) {
  .wa-fab { width: 3.5rem; padding: 0; justify-content: center; }
  .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.dialog-close-x {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); cursor: pointer;
}
.dialog-close-x:hover { background: var(--muted); color: var(--foreground); }
.video-dialog .dialog-close-x { color: #fff; background: oklch(0 0 0 / 0.4); }

.wa-dialog { max-width: 24rem !important; text-align: center; }
.wa-dialog .dialog-content { padding: 2.25rem 1.75rem 1.75rem; }
.wa-person { position: relative; width: 6.5rem; margin: 0 auto 1.25rem; }
.wa-photo { width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border); }
.wa-online { position: absolute; right: 0.375rem; bottom: 0.375rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 3px #fff; }
.wa-dialog .dialog-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-navy-deep); margin-bottom: 0.5rem; }
.wa-dialog .dialog-description { margin-bottom: 1.5rem; font-size: 0.9375rem; }
.wa-context {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: fit-content; max-width: 100%; margin: -0.5rem auto 1.25rem;
  padding: 0.5rem 0.875rem; border-radius: 1rem;
  background: var(--accent); color: var(--brand-navy-deep);
  font-size: 0.875rem; font-weight: 600; line-height: 1.35; text-align: left;
}
.wa-context[hidden] { display: none; }
.wa-context .icon { width: 1rem; height: 1rem; color: var(--brand-navy); }
.wa-hours { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 1rem; text-wrap: balance; }

/* -- Encabezado de páginas interiores ------------------------------------- */
.page-head { background: var(--brand-stone); padding-block: 2rem 2.5rem; border-bottom: 1px solid var(--border); }
.page-head-compact { padding-block: 1rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin-top: 0.75rem; }
.page-head .section-lead { margin-top: 0.75rem; max-width: 46rem; }
.breadcrumb-link { text-decoration: none; }

/* -- Ficha de modelo ------------------------------------------------------ */
.product {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "gallery buy" "details buy";
  column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: 2.5rem 5rem;
}
.product-gallery { grid-area: gallery; }
.product-details { grid-area: details; }
.buy-box { grid-area: buy; }
.product-gallery .tab-list { margin-bottom: 0; }
.product-gallery .tab-trigger .icon { width: 1rem; height: 1rem; }
.product-media { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .media-placeholder-icon { width: 4rem !important; height: 4rem !important; }
.product-media .media-placeholder-m2 { font-size: 2.75rem; }
.product-block { margin-top: 2.5rem; }
.product-block h2 { font-size: 1.625rem; margin-bottom: 1rem; }
.room-table { width: 100%; }
.room-table td:last-child, .room-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.kit-group { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.kit-group h3 { font-size: 1rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.kit-group h3 .icon { color: var(--brand-navy); }

.buy-box {
  position: sticky; top: 6.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.75rem; background: #fff; box-shadow: var(--shadow-lg);
}
.buy-box h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); margin-block: 0.75rem 1rem; }
.buy-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.buy-facts li {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--muted);
  font-size: 0.875rem; font-weight: 500;
}
.buy-facts .icon { width: 1rem; height: 1rem; color: var(--brand-navy); }
.buy-price { padding: 1.25rem; border: 0; border-radius: var(--radius-lg); background: var(--brand-stone); margin: 0 0 1.5rem; }
.buy-price .price-now { font-size: 2.125rem; }
.buy-saving { grid-column: 1 / -1; display: inline-flex; margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--brand-green); }
.buy-options-title { font-size: 1rem; margin-bottom: 0.25rem; }
.buy-options-help { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.875rem; }
.option-list { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 150ms ease, background 150ms ease;
}
.option:hover { border-color: color-mix(in oklch, var(--brand-navy) 40%, var(--border)); }
.option:has(input:checked) { border-color: var(--brand-navy); background: var(--accent); }
.option-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.option-desc { display: block; font-size: 0.8125rem; color: var(--muted-foreground); font-weight: 400; }
.option-price { font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding-block: 1rem; border-top: 1px solid var(--border); margin-bottom: 1rem; }
.buy-total span { font-weight: 600; }
.buy-total output { font-size: 1.625rem; font-weight: 700; color: var(--brand-navy-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.buy-actions { display: grid; gap: 0.625rem; }
.buy-note { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 1rem; display: flex; gap: 0.5rem; }
.buy-note .icon { width: 1rem; height: 1rem; margin-top: 0.15em; }
@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; grid-template-areas: "gallery" "buy" "details"; row-gap: 2rem; }
  .buy-box { position: static; }
}

.related { padding-block: 4rem 5rem; background: var(--brand-stone); }
.related h2 { margin-bottom: 2rem; }

.not-found { text-align: center; padding-block: 6rem; }
.not-found h1 { margin-bottom: 1rem; }
.not-found p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* -- Calculadora ---------------------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: start; padding-block: 2.5rem 5rem; }
.calc-step { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2rem); background: #fff; margin: 0 0 1.25rem; min-width: 0; }
.calc-step > legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; }
.calc-step > legend + * { clear: both; }
.calc-step-head { display: flex; align-items: center; gap: 0.875rem; }
.calc-step-num {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--brand-navy); color: #fff; font-weight: 700; font-size: 0.9375rem;
}
.calc-step-head h2 { font-family: var(--font-sans); font-size: 1.1875rem; font-weight: 600; }
.calc-step-head p { font-size: 0.875rem; color: var(--muted-foreground); }
.model-preview { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: center; margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--brand-stone); }
.model-preview-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; }
.model-preview-media .media-placeholder-icon { width: 1.75rem !important; height: 1.75rem !important; }
.model-preview-media .media-placeholder-m2 { font-size: 1.25rem; }
.model-preview-media .media-placeholder-text { display: none; }
.model-preview h3 { margin-bottom: 0.375rem; }
.model-preview .model-card-facts { margin-bottom: 0.5rem; }
.model-preview a { font-size: 0.875rem; font-weight: 600; color: var(--brand-navy); }
.zone-info { display: flex; gap: 0.75rem; margin-top: 1rem; padding: 0.875rem 1rem; border-radius: var(--radius-md); background: var(--accent); font-size: 0.9375rem; }
.zone-info .icon { color: var(--brand-navy); margin-top: 0.15em; }
.zone-table { width: 100%; margin-top: 1.25rem; font-size: 0.875rem; }
.zone-table td:last-child, .zone-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.zone-table tr[data-activa="true"] td { font-weight: 600; color: var(--brand-navy-deep); background: var(--accent); }

.summary { position: sticky; top: 6.5rem; }
.summary-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--border); background: #fff; }
.summary-head { background: var(--brand-navy); color: #fff; padding: 1.5rem 1.75rem; }
.summary-head p { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; font-weight: 600; }
.summary-head h2 { color: #fff; font-size: 1.5rem; margin-top: 0.25rem; }
.summary-body { padding: 1.5rem 1.75rem 1.75rem; }
.summary-lines { margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.summary-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.summary-lines dt { color: var(--muted-foreground); }
.summary-lines dt small { display: block; font-size: 0.75rem; }
.summary-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-lines .is-pending dd { color: var(--muted-foreground); font-weight: 400; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 2px solid var(--brand-navy); margin-bottom: 0.25rem; }
.summary-total span { font-weight: 700; }
.summary-total output { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; color: var(--brand-navy-deep); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.summary-saving { font-size: 0.8125rem; color: var(--brand-green); font-weight: 600; margin-bottom: 1.5rem; }
.summary-actions { display: grid; gap: 0.625rem; }
.summary-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.summary-note { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 1.25rem; display: flex; gap: 0.5rem; }
.summary-note .icon { width: 1rem; height: 1rem; margin-top: 0.15em; }
.copy-status { font-size: 0.8125rem; color: var(--brand-green); text-align: center; min-height: 1.25rem; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .model-preview { grid-template-columns: 6.5rem 1fr; gap: 0.875rem; }
  .model-preview-media .media-placeholder-m2 { font-size: 1rem; }
  .option { grid-template-columns: auto 1fr; }
  .option-price { grid-column: 2; }
}

/* Barra fija con el total (solo móvil) */
.calc-sticky { display: none; }
@media (max-width: 960px) {
  .calc-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem clamp(1rem, 4vw, 2rem) calc(0.75rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px oklch(0.25 0.07 280 / 0.25);
  }
  .calc-sticky[hidden] { display: none; }
  .calc-sticky small { display: block; font-size: 0.75rem; color: var(--muted-foreground); }
  .calc-sticky strong { font-size: 1.375rem; color: var(--brand-navy-deep); font-variant-numeric: tabular-nums; }
  body:has(.calc-sticky) .wa-fab { bottom: 5.5rem; }
  body:has(.calc-sticky) .site-footer { padding-bottom: 4.5rem; }
}
@media (max-width: 560px) { .zone-table .option-desc { display: none; } }

/* -- Impresión: solo la cotización, con membrete --------------------------- */
.print-header, .print-title, .print-footer { display: none; }
@media print {
  @page { margin: 14mm 14mm 16mm; }
  body { background: #fff; color: #000; }
  .topbar, .site-header, .site-footer, .wa-fab, .calc-sticky, .page-head, .calc-form,
  .summary-actions, .copy-status, .related, .skip-link, dialog { display: none !important; }

  .print-header {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--brand-navy);
  }
  .print-header img { height: 3.5rem; width: auto; }
  .print-header div { text-align: right; font-size: 0.8125rem; line-height: 1.5; color: #333; }
  .print-brand { font-weight: 700; font-size: 0.9375rem; color: var(--brand-navy-deep); }
  .print-title {
    display: block; margin-bottom: 1rem;
    font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--brand-navy-deep);
  }

  .calc { display: block; padding: 0; }
  .summary { position: static; }
  .summary-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .summary-head { background: none; color: #000; padding-bottom: 0.75rem; border-bottom: 1px solid #ccc; }
  .summary-head h2 { color: #000; }
  .summary-note { display: none; }

  .print-footer {
    display: block; margin-top: 1.5rem; padding-top: 0.875rem; border-top: 1px solid #ccc;
    font-size: 0.75rem; line-height: 1.5; color: #444;
    break-inside: avoid;
  }
  .print-footer span[data-print-enlace] { word-break: break-all; }
  .print-footer p + p { margin-top: 0.25rem; }
}
