/* ==========================================================================
   Ruta & Techo — estilos del sitio público
   (El panel /rt-admin usa su propio archivo: rt-admin/assets/admin.css)

   Índice:
     1. Variables (colores, sombras)
     2. Base y reset
     3. Header y navegación
     4. Layout general
     5. Hero de inicio
     6. Tipografía
     7. Botones
     8. Animación del carro (hero de inicio)
     9. Secciones de página (fondos, hero interno, tarjetas)
     10. Encabezados de sección
     11. Inventario público (buscador, filtros, tarjetas)
     12. Detalle de producto (producto.html)
     13. Techo / raíces y bloque de proceso
     14. Contacto y formulario
     15. Footer animado
     16. Burbuja flotante de WhatsApp
     16b. Contenido 2026-11 (textos nuevos, botones de contacto, opciones rápidas)
     17. Responsive: tablet (≤ 980px)
     18. Responsive: móvil (≤ 680px)
     19. Accesibilidad: movimiento reducido
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables (colores, sombras)
   -------------------------------------------------------------------------- */

:root {
  --black: #050505;
  --ink: #111111;
  --white: #ffffff;
  --paper: #f7f8f8;
  --line: #dfe7e5;
  --muted: #66706d;
  --trust: #00a5d2;
  --trust-dark: #006985;
  --trust-soft: #e4f7fc;
  --warm: #c76d4a;
  --warm-dark: #8f432a;
  --warm-soft: #f8ece6;
  --shadow: 0 18px 50px rgba(5, 5, 5, 0.12);
}

/* --------------------------------------------------------------------------
   2. Base y reset
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   3. Header y navegación
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 14px 36px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 0;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 202px;
  height: 42px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.nav-contact,
.footer-links a,
.footer-whatsapp {
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.main-nav a {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-contact {
  padding: 10px 16px;
  color: var(--black);
  background: var(--trust);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   4. Layout general
   -------------------------------------------------------------------------- */

.screen {
  scroll-margin-top: 74px;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. Hero de inicio
   -------------------------------------------------------------------------- */

.hero-screen {
  min-height: 92svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.88) 42%, rgba(5, 5, 5, 0.78)),
    var(--black);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   6. Tipografía
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--trust);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.warm {
  color: var(--warm);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 16px;
  font-size: 3rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.contact-copy p,
.focus-block p,
.process-list,
.footer-content p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   7. Botones
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: var(--black);
  background: var(--trust);
  border-color: var(--trust);
}

.button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
}

.button:hover,
.button:focus-visible,
.nav-contact:hover,
.nav-contact:focus-visible {
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   8. Animación del carro (hero de inicio)
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  min-width: 0;
}

.car-banner {
  width: 100%;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-banner svg {
  width: min(760px, 100%);
  height: auto;
}

@keyframes streamline {
  100% {
    stroke-dashoffset: 2000px;
  }
}

.car-banner #stream {
  stroke: rgba(0, 165, 210, 0.9);
  stroke-dasharray: 1000px;
  stroke-dashoffset: 0;
  animation: streamline 1.76s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.car-banner .rim-pattern {
  transform-origin: center center;
  transform-box: fill-box;
  animation: spin 0.82s linear infinite;
}

@keyframes streak {
  100% {
    d: path("m270.81 171.77 58.288 94.061h24.17l-68.056-94.061zm21.698 0 64.579 94.061h6.1955l-68.058-94.061z");
  }
}

.car-banner #streak {
  fill: var(--trust);
  animation: streak 1.18s linear infinite;
}

/* --------------------------------------------------------------------------
   9. Secciones de página (fondos, hero interno, tarjetas)
   -------------------------------------------------------------------------- */

.intro-screen,
.home-path-screen,
.contact-screen {
  padding: 112px 0;
  background: var(--paper);
}

.roots-screen {
  padding: 112px 0;
  color: var(--white);
  background: var(--black);
}

.page-hero {
  padding: 96px 0 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.84)),
    var(--black);
}

.page-hero.warm-hero {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(143, 67, 42, 0.72)),
    var(--black);
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: end;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.page-hero .eyebrow,
.section-heading .eyebrow,
.roots-screen .eyebrow {
  color: var(--trust);
}

.page-hero .eyebrow.warm,
.section-heading .eyebrow.warm,
.roots-screen .eyebrow.warm {
  color: var(--warm);
}

.intro-screen .eyebrow:not(.warm),
.home-path-screen .eyebrow:not(.warm),
.contact-screen .eyebrow:not(.warm),
.live-inventory-screen .eyebrow:not(.warm),
.split-screen .eyebrow:not(.warm),
.detail-description-block .eyebrow {
  color: var(--trust-dark);
}

.hero-stat-grid,
.intro-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-stat,
.intro-panel,
.path-card {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.hero-stat {
  min-height: 140px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-panel,
.path-card {
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-panel,
.warm-card {
  border-color: rgba(199, 109, 74, 0.28);
  background: var(--warm-soft);
}

.path-card {
  color: var(--ink);
  min-height: 250px;
}

.path-card:hover,
.path-card:focus-visible {
  border-color: var(--trust);
  transform: translateY(-2px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.split-screen {
  padding: 112px 0;
  background: var(--white);
}

.split-screen .hero-lede {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
  border-left: 4px solid var(--trust);
  background: var(--paper);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   10. Encabezados de sección
   -------------------------------------------------------------------------- */

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  font-size: 1.05rem;
}

.roots-screen .section-heading p,
.roots-screen .focus-block p,
.process-list {
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   11. Inventario público (buscador, filtros, tarjetas)
   -------------------------------------------------------------------------- */

.live-inventory-screen {
  padding: 112px 0;
  background: var(--white);
}

.property-live-inventory {
  background: var(--paper);
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.38fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-live-inventory .inventory-toolbar {
  background: var(--white);
}

.inventory-toolbar[hidden] {
  display: none;
}

.inventory-search {
  position: relative;
  display: block;
}

.inventory-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--trust-dark);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.inventory-search input,
.inventory-category select {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.inventory-search input {
  padding: 0 16px 0 48px;
}

.inventory-category {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.inventory-category select {
  padding: 0 38px 0 14px;
}

.inventory-search input:focus,
.inventory-category select:focus {
  border-color: var(--trust);
  box-shadow: 0 0 0 4px rgba(0, 165, 210, 0.18);
}

.inventory-result-count {
  min-width: 92px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  color: var(--trust-dark);
  background: var(--trust-soft);
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.public-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  justify-items: center;
}

.public-product-card {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-product-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--black);
  overflow: hidden;
}

.public-gallery-stage {
  width: 100%;
  height: 100%;
}

.public-product-gallery img,
.public-product-gallery video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-button.prev {
  left: 12px;
}

.gallery-button.next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.62);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.public-product-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.public-product-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--trust-dark);
  background: var(--trust-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-pill.warm {
  color: var(--warm-dark);
  background: var(--warm-soft);
}

.public-product-body h3 {
  margin-bottom: 0;
}

.public-product-title:hover,
.public-product-title:focus-visible {
  color: var(--trust-dark);
}

.product-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-description {
  display: -webkit-box;
  min-height: 78px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.public-product-actions {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.product-whatsapp,
.product-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.product-whatsapp {
  color: var(--black);
  background: var(--trust);
}

.product-detail-button {
  color: var(--trust-dark);
  background: var(--trust-soft);
  border: 1px solid rgba(0, 105, 133, 0.2);
}

.product-whatsapp:hover,
.product-whatsapp:focus-visible,
.product-detail-button:hover,
.product-detail-button:focus-visible {
  filter: brightness(1.05);
}

.public-empty-state {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.public-empty-state[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   12. Detalle de producto (producto.html)
   -------------------------------------------------------------------------- */

.product-detail-screen {
  min-height: 72svh;
  padding: 64px 0 112px;
  background: var(--paper);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--trust-dark);
  font-weight: 900;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-unavailable {
  max-width: 720px;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.detail-unavailable h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.detail-unavailable p {
  color: var(--muted);
  line-height: 1.7;
}

.button.secondary-light {
  color: var(--trust-dark);
  background: var(--white);
  border-color: var(--line);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 42px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 104px;
  min-width: 0;
  overflow: hidden;
  background: var(--black);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.detail-media-stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-media-stage img,
.detail-media-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.detail-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: 9px;
  padding: 12px;
  overflow-x: auto;
  background: #111;
}

.detail-thumbnail {
  width: 88px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #1c1c1c;
  border: 2px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.detail-thumbnail.is-active {
  border-color: var(--trust);
}

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

.detail-video-label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-detail-copy {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.product-detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.detail-price {
  margin: 0;
  color: var(--trust-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.detail-description-block {
  margin: 30px 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.detail-whatsapp {
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. Techo / raíces y bloque de proceso
   -------------------------------------------------------------------------- */

.roots-layout {
  display: grid;
  gap: 36px;
}

.roots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.focus-block {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.block-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  color: var(--black);
  background: var(--trust);
  border-radius: 8px;
  font-weight: 900;
}

.warm-card .block-number,
.trust-panel .block-number {
  background: var(--warm);
}

.process-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 30px;
  background: rgba(0, 165, 210, 0.12);
  border: 1px solid rgba(0, 165, 210, 0.38);
  border-radius: 8px;
}

.process-band.warm-process {
  background: rgba(199, 109, 74, 0.14);
  border-color: rgba(199, 109, 74, 0.4);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   14. Contacto y formulario
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 104px;
}

.contact-number {
  display: inline-flex;
  margin-top: 20px;
  color: var(--black);
  font-size: 2rem;
  font-weight: 900;
  border-bottom: 4px solid var(--trust);
}

.contact-options {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-option {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--trust);
  box-shadow: 0 0 0 4px rgba(0, 165, 210, 0.18);
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* --------------------------------------------------------------------------
   15. Footer animado
   -------------------------------------------------------------------------- */

.animated-footer {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.animated-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.72)),
    linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.34));
}

.footer-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.footer-line {
  stroke: var(--trust);
  stroke-linecap: round;
  stroke-dasharray: 520 840;
  stroke-dashoffset: 0;
  filter: url(#footer-glow);
  animation: footerWave 4.8s linear infinite;
}

.footer-line:nth-of-type(3n) {
  stroke: hsl(17, 56%, 60%);
}

.line-thick {
  stroke-width: 9;
  opacity: 0.52;
}

.line-mid {
  stroke-width: 6;
  opacity: 0.74;
}

.line-thin {
  stroke-width: 4;
  opacity: 0.94;
}

.delay-a {
  animation-delay: -1.2s;
}

.delay-b {
  animation-delay: -2.4s;
}

.delay-c {
  animation-delay: -3.2s;
}

@keyframes footerWave {
  100% {
    stroke-dashoffset: -1380;
  }
}

.footer-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.75fr) minmax(190px, 0.9fr) minmax(150px, 0.7fr);
  align-items: start;
  gap: 32px;
  padding: 92px 0 34px;
}

.footer-logo {
  display: block;
  width: 250px;
  height: 54px;
  margin-bottom: 16px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.footer-content h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.animated-footer .footer-content p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover,
.footer-whatsapp:hover,
.footer-links a:focus-visible,
.footer-whatsapp:focus-visible {
  color: var(--white);
  background: rgba(0, 165, 210, 0.28);
}

.footer-whatsapp {
  color: var(--black);
  background: var(--trust);
  font-weight: 900;
  white-space: nowrap;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  list-style: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   16. Burbuja flotante de WhatsApp
   -------------------------------------------------------------------------- */

.whatsapp-bubble {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    #25d366;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow:
    0 18px 44px rgba(5, 5, 5, 0.28),
    0 0 0 8px rgba(37, 211, 102, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
}

.whatsapp-bubble::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 2px solid rgba(37, 211, 102, 0.5);
  border-radius: inherit;
  animation: whatsappPulse 1.9s ease-out infinite;
}

.whatsapp-bubble::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 12px;
  height: 12px;
  background: #ffbf47;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 191, 71, 0.22);
}

.whatsapp-bubble img {
  display: block;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(5, 5, 5, 0.18));
}

.whatsapp-bubble:hover,
.whatsapp-bubble:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 22px 56px rgba(5, 5, 5, 0.34),
    0 0 0 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-bubble:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

@keyframes whatsappPulse {
  0% {
    opacity: 0.85;
    transform: scale(0.92);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

/* --------------------------------------------------------------------------
   16b. Contenido 2026-11 (textos nuevos, botones de contacto, opciones rápidas)
   -------------------------------------------------------------------------- */

/* Frase destacada bajo un título (Inicio: "Qué hacemos", "Confianza"; Contáctanos) */
.intro-panel .intro-lead,
.contact-copy .intro-lead {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

/* Subtítulo ligero y en cursiva bajo los títulos de inventario */
.section-heading .section-subtitle {
  color: var(--muted);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 300;
}

/* Inicio: "¿Qué quieres consultar hoy?" */
.consult-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
  list-style: none;
}

.consult-list strong {
  color: var(--ink);
}

/* Techo: título largo del hero */
.page-hero h1.h1-long {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1.04;
}

.hero-stat-block .eyebrow {
  margin-bottom: 12px;
}

/* Contáctanos: tarjetas del hero como botones */
.hero-stat-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-actions .hero-stat strong {
  margin-bottom: 4px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.hero-stat-link .hero-stat-cta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--trust);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-stat-link:hover,
.hero-stat-link:focus-visible {
  border-color: var(--trust);
  background: rgba(0, 165, 210, 0.16);
  transform: translateY(-3px);
}

.hero-stat-link:focus-visible {
  outline: 3px solid var(--trust);
  outline-offset: 3px;
}

/* Contáctanos: opciones rápidas para armar el mensaje */
.message-helper {
  display: grid;
  gap: 14px;
}

.message-helper-hint {
  margin: 0;
  color: var(--trust-dark);
  font-weight: 800;
}

.helper-group {
  padding: 16px 18px;
  border-left: 4px solid var(--trust);
  background: var(--paper);
  border-radius: 8px;
}

.helper-title {
  margin: 0 0 10px;
}

.helper-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-chip {
  min-height: 38px;
  padding: 0 14px;
  color: var(--trust-dark);
  background: var(--white);
  border: 1px solid rgba(0, 105, 133, 0.28);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.helper-chip:hover,
.helper-chip:focus-visible {
  border-color: var(--trust);
  background: var(--trust-soft);
}

.helper-chip[aria-pressed="true"] {
  color: var(--black);
  background: var(--trust);
  border-color: var(--trust);
}

.helper-chip[aria-pressed="true"]::before {
  content: "✓ ";
}

.helper-summary {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  background: var(--trust-soft);
  border: 1px solid rgba(0, 105, 133, 0.2);
  border-radius: 8px;
}

.helper-summary[hidden] {
  display: none;
}

.helper-summary p {
  margin: 0;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   16c. Accesibilidad, legales, cookies y formulario (2026-11-16)
   -------------------------------------------------------------------------- */

:root {
  /* Terracota legible sobre fondos claros (contraste ≥ 4.9:1, WCAG AA) */
  --warm-text: #a24f2d;
}

.intro-screen .eyebrow.warm,
.home-path-screen .eyebrow.warm,
.contact-screen .eyebrow.warm,
.live-inventory-screen .eyebrow.warm,
.split-screen .eyebrow.warm,
.legal-page .eyebrow.warm {
  color: var(--warm-text);
}

/* Enlace "Saltar al contenido": visible solo al navegar con teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--black);
  background: var(--trust);
  border-radius: 8px;
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

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

/* Pie: enlaces legales */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal a,
.footer-cookie-button {
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--white);
}

/* Páginas legales */
.legal-page {
  padding: 72px 0 112px;
  background: var(--paper);
}

.legal-layout {
  max-width: 820px;
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.legal-layout h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
}

.legal-layout h2 {
  margin: 34px 0 10px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.legal-layout p,
.legal-layout li {
  color: #3f4744;
  line-height: 1.75;
}

.legal-layout ul {
  padding-left: 22px;
}

.legal-layout a {
  color: var(--trust-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-links {
  margin-top: 34px;
}

/* Página de error */
.error-screen .detail-unavailable {
  margin: 0 auto;
}

.error-home a {
  color: var(--trust-dark);
  font-weight: 900;
  text-decoration: underline;
}

/* Formulario: errores, privacidad y trampa antispam */
.field-error {
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 800;
}

.field-error[hidden] {
  display: none;
}

.contact-form [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-privacy a {
  color: var(--trust-dark);
  font-weight: 800;
  text-decoration: underline;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--trust-dark);
  font-weight: 800;
  text-align: center;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Aviso de cookies */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(5, 5, 5, 0.28);
}

.cookie-banner p {
  flex: 1 1 420px;
  margin: 0;
  color: #3f4744;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--trust-dark);
  font-weight: 800;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 44px;
}

/* Con el aviso visible, la burbuja de WhatsApp sube para no quedar tapada */
.has-cookie-banner .whatsapp-bubble {
  bottom: 150px;
}

/* --------------------------------------------------------------------------
   17. Responsive: tablet (≤ 980px)
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 20px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-layout,
  .page-hero-layout,
  .contact-layout,
  .process-band,
  .split-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: relative;
    top: auto;
  }

  .hero-layout {
    padding-top: 54px;
  }

  .hero-visual {
    order: -1;
  }

  .car-banner {
    min-height: 230px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .roots-grid,
  .hero-stat-grid,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy {
    position: static;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-content > div:first-child,
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive: móvil (≤ 680px)
   -------------------------------------------------------------------------- */

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
  }

  .main-nav a {
    flex: 1 1 auto;
    padding: 8px 10px;
    text-align: center;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-logo {
    width: 166px;
    height: 36px;
  }

  .nav-contact {
    padding: 9px 12px;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-screen {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-layout {
    gap: 16px;
    padding: 26px 0 40px;
  }

  .car-banner {
    min-height: 180px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .roots-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .live-inventory-screen,
  .roots-screen,
  .contact-screen,
  .intro-screen,
  .home-path-screen,
  .split-screen,
  .page-hero {
    padding: 78px 0;
  }

  .intro-grid,
  .hero-stat-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .inventory-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .inventory-result-count {
    justify-content: flex-start;
  }

  .public-product-actions {
    grid-template-columns: 1fr;
  }

  .product-detail-screen {
    padding: 42px 0 78px;
  }

  .product-detail-copy {
    padding: 22px;
  }

  .contact-number {
    font-size: 1.55rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  .footer-content > div:first-child,
  .footer-bottom {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp-bubble {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-width: 2px;
  }

  .whatsapp-bubble img {
    width: 32px;
    height: 32px;
  }

  .whatsapp-bubble::after {
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
  }

  .legal-page {
    padding: 36px 0 72px;
  }

  .legal-layout {
    padding: 24px 20px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .button {
    flex: 1 1 0;
  }

  .has-cookie-banner .whatsapp-bubble {
    bottom: 230px;
  }

  .footer-bottom {
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   19. Accesibilidad: movimiento reducido
   -------------------------------------------------------------------------- */

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

  .car-banner #stream,
  .car-banner .rim-pattern,
  .car-banner #streak,
  .footer-line,
  .whatsapp-bubble::before {
    animation: none;
  }
}
