/**
 * css/styles.css
 * Rediseño Arquitectónico, Cuadrado y Luminoso — Talleres de Reparación Marquesat (Catadau, Valencia)
 * Basado en las directrices de "redesign-existing-projects" & "scroll-world"
 *
 * Directrices de geometría y estilo:
 * - Geometría limpia: esquinas cuadradas con micro-bisel técnico (radius 0px a máx 3px en puntas)
 * - Barra superior completa (full width) suspendida con cristal translúcido y bordes rectos
 * - Eliminación de formas redondeadas/píldoras (en navbar, tarjetas, badges y botones)
 * - Botón WhatsApp oficial flotante en la esquina inferior derecha con su color verde característico
 * - Asistente técnico (Chatbot) totalmente operativo en la esquina inferior izquierda con diseño sobrio sin emojis
 * - Mayor luminosidad y protagonismo de fotos reales sin viñetas oscuras invasivas
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Paleta Luminosa / Taller Técnico Moderno */
  --bg-page: #F6F8FA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F9FAFB;
  --bg-subtle: #EEF2F6;
  
  /* Textos de alto contraste */
  --ink-primary: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --ink-faint: #94A3B8;

  /* Cristal Translúcido para Cabecera */
  --glass-header-bg: rgba(255, 255, 255, 0.88);
  --glass-header-border: rgba(15, 23, 42, 0.1);
  --glass-header-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);

  /* Cristal AHUMADO FINO para Overlays de Visita Virtual */
  --card-glass-bg: rgba(15, 23, 42, 0.78);
  --card-glass-border: rgba(255, 255, 255, 0.16);
  --card-glass-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);

  /* Acentos Técnicos */
  --accent-gold: #D99B26;
  --accent-gold-hover: #C5881C;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1EBE5D;

  /* Tipografías */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Geometría Técnica Cuadrada (máximo 2px o 0px en esquinas para eliminar el look circular/píldora) */
  --radius-sharp: 0px;
  --radius-micro: 2px;
  --radius-card: 4px;

  /* Easing */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-smooth: all 0.25s var(--ease-spring);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-secondary);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-sans);
  color: var(--ink-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Barra superior de progreso */
#top-scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gold);
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   CABECERA FLOTANTE COMPLETA (Full Width, Cristal Translúcido, Bordes Cuadrados)
   ========================================================================== */

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  background: var(--glass-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-header-border);
  box-shadow: var(--glass-header-shadow);
  padding: 0.85rem 2rem;
  transition: var(--transition-smooth);
}

.site-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  background: var(--ink-primary);
  color: #FFFFFF;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--ink-primary);
  text-transform: uppercase;
  line-height: 1;
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover {
  color: var(--ink-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botón Hamburguesa Técnico Cuadrado */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-micro);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.nav-mobile-toggle:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: var(--ink-primary);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   BOTONES CUADRADOS TÉCNICOS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-micro);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

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

.btn-primary {
  background: var(--ink-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-accent {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-gold-hover);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}

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

.btn-secondary {
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-primary);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   MOTOR SCROLLYTELLING Y VISITA VIRTUAL (10 PASOS)
   ========================================================================== */

#walk-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #0B111E;
}

#walk-video {
  transition: filter 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: filter;
}

#walk-video.motion-whip-blur {
  filter: blur(1.2px) contrast(1.04);
}

/* Botón Técnico Continuar Visita dentro de las tarjetas */
.card-tour-controls {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-tour-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gold);
  color: #FFFFFF;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-micro);
  padding: 0.5rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(217, 155, 38, 0.35);
}

.btn-tour-next:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 155, 38, 0.5);
}

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

#walk-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* Viñeteado Sutil y Luminoso */
.canvas-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.15) 70%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.scrolly-overlays {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 2rem 5rem;
}

.milestone-stage {
  position: absolute;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.milestone-stage.active-stage {
  pointer-events: auto;
}

.stage-center {
  justify-content: center;
  text-align: center;
}

.stage-left {
  justify-content: flex-start;
}

.stage-right {
  justify-content: flex-end;
}

/* Tarjetas Flotantes con Bordes Cuadrados Técnicos */
.tech-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--card-glass-border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-card);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--card-glass-shadow);
  max-width: 540px;
  width: 100%;
  pointer-events: auto;
  color: #F8FAFC;
}

.tech-card.hero-card {
  max-width: 820px;
  padding: 2.8rem 3rem;
  text-align: center;
  border-left: 1px solid var(--card-glass-border);
  border-top: 3px solid var(--accent-gold);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FCD34D;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: var(--radius-sharp);
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  line-height: 1.12;
}

.hero-title .text-accent {
  background: linear-gradient(135deg, #FFFFFF 40%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  color: #E2E8F0;
  max-width: 680px;
  margin: 0 auto 1.8rem;
  line-height: 1.65;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-proof-line {
  font-size: 0.85rem;
  color: #CBD5E1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
  margin-top: 1.2rem;
}

.card-photo-header {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: #0F172A;
}

.card-photo-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sharp);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.photo-nav-btn:hover:not(:disabled) {
  background: var(--accent-gold);
}

.photo-nav-btn.prev { left: 0.45rem; }
.photo-nav-btn.next { right: 0.45rem; }

.photo-nav-btn[hidden] {
  display: none !important;
}

.mobile-photo-caption {
  display: none;
}

/* Tarjeta lateral de carrusel fotográfico en paradas 2, 3 y 4 (Desktop) */
.milestone-stage.milestone-dual {
  max-width: 1380px;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
}

.milestone-dual .tech-card {
  flex: 0 1 430px;
  min-width: 340px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-side-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--card-glass-border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--card-glass-shadow);
  flex: 1 1 auto;
  max-width: 860px;
  min-width: 0;
  width: 100%;
  pointer-events: auto;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#milestone-finish.milestone-dual {
  align-items: stretch;
}

#milestone-finish .tech-card {
  flex: 0 1 420px;
  min-width: 340px;
  max-width: 420px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#milestone-finish .gallery-side-card {
  flex: 1 1 auto;
  max-width: 880px;
  min-height: 540px;
  justify-content: space-between;
}

.gallery-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-card-head .card-kicker {
  margin-bottom: 0;
}

.gallery-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #E2E8F0;
}

.gallery-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-stage img[hidden],
.gallery-empty-state[hidden] {
  display: none !important;
}

.gallery-empty-state {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #94A3B8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.gallery-empty-state svg {
  opacity: 0.65;
  color: #FCD34D;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sharp);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
  background: var(--accent-gold);
}

.gallery-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-nav-btn.prev { left: 0.65rem; }
.gallery-nav-btn.next { right: 0.65rem; }

.gallery-caption {
  font-size: 0.82rem;
  color: #CBD5E1;
  min-height: 1.2em;
}

.tech-card:hover .card-photo-header img {
  transform: scale(1.03);
}

.card-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.card-text {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #F1F5F9;
}

.spec-list li svg {
  width: 18px;
  height: 18px;
  color: #FBBF24;
  flex-shrink: 0;
  margin-top: 2px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-unit {
  text-align: center;
}

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
}

.metric-lbl {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* HUD Inferior Rectangular */
.walk-progress-hud {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-micro);
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: max-content;
  max-width: 90vw;
}

.hud-step-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.hud-bar-track {
  width: 130px;
  height: 5px;
  background: rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  width: 10%;
  background: var(--accent-gold);
  border-radius: var(--radius-sharp);
  transition: width 0.2s linear;
}

.hud-zone-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   SECCIONES DE CONTENIDO LUMINOSAS
   ========================================================================== */

.section-pad {
  padding: 6.5rem 2rem;
  position: relative;
  z-index: 25;
  background-color: var(--bg-page);
}

.container-main {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.8rem;
}

.section-h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Carrusel Horizontal de Reseñas */
#reviews-pin-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.reviews-header-inner {
  padding: 0 2rem;
  text-align: center;
  margin-bottom: 2.8rem;
}

/* Badge Google Rectangular con Micro-Bordes */
.rating-badge-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  background: var(--ink-primary);
  color: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-top: 3px solid var(--accent-gold);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-micro);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.25);
  margin-bottom: 1.4rem;
}

.rating-score-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #FCD34D;
  letter-spacing: -0.02em;
}

.rating-stars-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.rating-stars-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #F59E0B;
}

.rating-stars-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rating-badge-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
}

.reviews-track-wrapper {
  width: 100%;
  overflow: hidden;
}

.reviews-horizontal-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 5vw;
  width: max-content;
  will-change: transform;
}

.review-card-item {
  width: 380px;
  max-width: 85vw;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.review-service-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.review-stars-row {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  margin-bottom: 1.2rem;
}

.review-stars-row svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-quote {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.1rem;
}

.review-user-initials {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-micro);
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.review-user-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.review-user-meta span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Acordeón FAQ Cuadrado */
.faq-box-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-micro);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--ink-primary);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.35rem 1.6rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-indicator {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-indicator {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.6rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 360px;
  padding: 0 1.6rem 1.5rem;
}

/* Mostrador Final: Contacto y Ubicación */
.section-pad.bg-darker {
  background-color: #0F172A;
  color: #F8FAFC;
}

.section-pad.bg-darker .section-h2 {
  color: #FFFFFF;
}

.section-pad.bg-darker .section-desc {
  color: #94A3B8;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-card-box {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius-card);
  padding: 2.6rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail-col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.contact-detail-col p, .contact-detail-col a {
  font-size: 0.96rem;
  font-weight: 600;
  color: #F8FAFC;
}

.contact-detail-col a:hover {
  color: #FCD34D;
}

.almuerzo-callout {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #FBBF24;
  font-weight: 600;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-input {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-micro);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: #FCD34D;
  box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.2);
}

.map-wrapper-box {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-embed-container {
  flex: 1;
  min-height: 380px;
  position: relative;
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: contrast(1.05) saturate(1.1);
}

.map-footer-bar {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ==========================================================================
   PIE DE PÁGINA Y TEXTOS LEGALES
   ========================================================================== */

.site-footer {
  background-color: #070B14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem 5.5rem;
  color: #94A3B8;
  font-size: 0.85rem;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: #64748B;
}

.footer-nav-btns {
  display: flex;
  gap: 1.5rem;
}

.footer-nav-btns button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav-btns button:hover {
  color: #CBD5E1;
}

/* ==========================================================================
   BOTÓN WHATSAPP VERDE OFICIAL (ESQUINA INFERIOR DERECHA)
   ========================================================================== */

.floating-wa-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-micro);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.floating-wa-btn:hover {
  background: var(--whatsapp-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.floating-wa-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   ASISTENTE VIRTUAL DE TALLER (CHATBOT INFERIOR IZQUIERDO)
   ========================================================================== */

.chatbot-launcher {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  background: var(--ink-primary);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-micro);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.chatbot-launcher:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.chatbot-launcher .dot-online {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-sharp);
  background: #22C55E;
}

.chatbot-window {
  position: fixed;
  bottom: 5.2rem;
  left: 1.5rem;
  z-index: 160;
  width: 460px;
  max-width: calc(100vw - 3rem);
  height: 640px;
  max-height: calc(100vh - 6.5rem);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-smooth);
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot-header {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: #FFFFFF;
}

.chatbot-header span {
  font-size: 0.74rem;
  color: #94A3B8;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.chatbot-close-btn:hover {
  color: #FFFFFF;
}

.chatbot-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-page);
  font-size: 0.88rem;
}

.chat-msg {
  max-width: 90%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-micro);
  font-size: 0.88rem;
  line-height: 1.55;
}

.chat-msg.bot {
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid rgba(15, 23, 42, 0.1);
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 600;
  align-self: flex-end;
}

.chat-quick-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.chat-opt-btn {
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ink-primary);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-micro);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.chat-opt-btn:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
}

.chatbot-msg-note {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.chat-inline-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.chat-inline-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 0.2rem;
}

.chat-inline-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: var(--radius-micro);
  font-size: 0.86rem;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: #FFFFFF;
  outline: none;
}

.chat-inline-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(217, 155, 38, 0.2);
}

.chat-inline-error {
  display: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #B91C1C;
}

.chat-inline-error.visible {
  display: block;
}

.chat-inline-submit {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-micro);
  background: var(--whatsapp-green);
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-inline-submit:hover {
  background: var(--whatsapp-green-dark);
}

.chat-inline-back {
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
}

.chat-inline-back:hover {
  color: var(--ink-primary);
}

.chatbot-input-bar {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: #FFFFFF;
  display: flex;
  gap: 0.6rem;
}

.chatbot-input-bar input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-micro);
  padding: 0.6rem 0.85rem;
  color: var(--ink-primary);
  font-size: 0.88rem;
  outline: none;
}

.chatbot-input-bar input:focus {
  border-color: var(--accent-gold);
  background: #FFFFFF;
}

.chatbot-input-bar button {
  background: var(--ink-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-micro);
  padding: 0 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.chatbot-input-bar button:hover {
  background: #1E293B;
}

/* ==========================================================================
   BANNER DE COOKIES & MODALES LEGALES (Cuadrados)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 640px;
  z-index: 150;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-micro);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.legal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.legal-modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.legal-modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  font-size: 1.1rem;
  color: var(--ink-primary);
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  line-height: 1.65;
}

/* Anclaje limpio bajo navbar fija y utilidades de formulario / galería */
#walk-viewport,
#reviews-pin-section,
#faq-section,
#mostrador-final,
#trabajos-section {
  scroll-margin-top: 84px;
}

.form-feedback {
  display: none;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-micro);
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #BBF7D0;
}

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

.form-feedback.error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FECACA;
}

/* Galería de trabajos realizados (preparada para fotos reales pendientes de entrega) */
.works-gallery-section[hidden] {
  display: none;
}

.works-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-card {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.work-card-body {
  padding: 1.15rem 1.25rem;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA
   ========================================================================== */

@media (max-width: 992px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-navbar { padding: 0.75rem 1rem; }
  .nav-container { gap: 0.75rem; }
  .brand-block {
    flex: 1;
    min-width: 0;
    gap: 0.65rem;
  }
  .brand-logo-img { height: 32px; flex-shrink: 0; }
  .brand-name-wrap { min-width: 0; }
  .brand-title {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-meta {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Ocultar CTAs redundantes con los botones fijos inferiores para dar espacio al logo */
  .nav-cta-group { display: none !important; }

  /* Mostrar botón menú hamburguesa */
  .nav-mobile-toggle { display: flex; }

  /* Desplegable de navegación móvil */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18);
    padding: 1.1rem 1.4rem;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 130;
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-links a {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-primary);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Botón Iniciar Visita protegido bajo el navbar sin solapamiento */
  #walk-autoplay-btn {
    top: 4.8rem !important;
    right: 1rem !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }

  .scrolly-overlays {
    padding: 7.2rem 0.65rem 6.3rem;
    align-items: center;
  }

  .milestone-stage {
    padding: 0 0.35rem;
  }

  .stage-center, .stage-left, .stage-right, .milestone-stage.milestone-dual {
    justify-content: center;
  }

  .gallery-side-card {
    display: none;
  }

  .milestone-dual .tech-card,
  #milestone-finish .tech-card {
    flex: 1 1 auto;
    max-width: 100%;
    min-height: 0;
  }

  .photo-nav-btn {
    display: inline-flex;
  }

  .tech-card, .tech-card.hero-card {
    padding: 0.95rem 1rem;
    max-height: calc(100vh - 13.7rem);
    max-height: calc(100dvh - 13.7rem);
    overflow-y: auto;
  }

  .card-photo-header {
    height: 110px;
    margin-bottom: 0.65rem;
  }

  #milestone-office .card-photo-header {
    display: none;
  }

  .card-photo-header img {
    object-fit: cover;
    object-position: center;
  }

  .card-photo-header.photo-header-carousel {
    flex-shrink: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 225px;
    margin-bottom: 0.4rem;
  }

  .mobile-photo-caption {
    display: block;
    font-size: 0.74rem;
    color: #CBD5E1;
    line-height: 1.3;
    margin-bottom: 0.55rem;
  }

  .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .card-text {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
  }

  .hero-sub {
    font-size: 0.86rem;
    margin-bottom: 1rem;
    line-height: 1.45;
  }

  .hero-btn-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .hero-proof-line {
    font-size: 0.74rem;
    gap: 0.4rem;
  }

  .spec-list li {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
  }

  .walk-progress-hud {
    position: fixed;
    bottom: 4.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .walk-progress-hud.hud-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .card-tour-controls {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    justify-content: stretch;
  }

  .btn-tour-next {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .form-2col { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .site-footer { padding: 3rem 1.25rem 6.5rem; }
  .footer-container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .floating-wa-btn { bottom: 1rem; right: 1rem; padding: 0 1rem; height: 44px; }
  .chatbot-launcher { bottom: 1rem; left: 1rem; padding: 0 1rem; height: 44px; }
  .chatbot-window {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4.4rem;
    width: auto;
    max-width: none;
    height: calc(100vh - 5.4rem);
    height: calc(100dvh - 5.4rem);
    max-height: calc(100vh - 5.4rem);
    max-height: calc(100dvh - 5.4rem);
  }
  .cookie-banner { width: 95%; bottom: 4.75rem; padding: 0.9rem 1rem; gap: 0.75rem; flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* Optimización móvil en vista horizontal (landscape) */
@media (max-height: 520px) and (orientation: landscape) {
  .site-navbar { padding: 0.4rem 1.2rem; }
  .brand-logo-img { height: 26px; }
  .brand-title { font-size: 1rem; }
  .brand-meta { display: none; }
  .scrolly-overlays {
    padding: 3.2rem 1rem 2.8rem;
    align-items: center;
  }
  .tech-card, .tech-card.hero-card {
    max-height: 78vh;
    overflow-y: auto;
    padding: 1rem 1.2rem;
  }
  .card-photo-header {
    display: none;
  }
  .walk-progress-hud {
    bottom: 0.5rem;
    padding: 0.35rem 0.9rem;
    gap: 0.6rem;
    font-size: 0.76rem;
  }
  #walk-autoplay-btn {
    top: 3.4rem !important;
    right: 0.8rem !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.76rem !important;
  }
  .floating-wa-btn, .chatbot-launcher {
    bottom: 0.5rem;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.74rem;
  }
  .chatbot-window {
    bottom: 3.1rem;
    height: calc(100dvh - 3.6rem);
    max-height: calc(100dvh - 3.6rem);
  }
  .cookie-banner {
    bottom: 3.25rem;
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }
}
