/* ==========================================================================
   ESTILOS.CSS — Plantilla Video y Scroll (Storytelling)
   Estética de agencia premiada · 60 fps · Responsive · Accesibilidad AAA
   ========================================================================== */

/* ── Reset y Variables Base (las de marca se sobreescriben desde contenido.js) ── */
:root {
  --color-primario: #3C1518;
  --color-secundario: #A44A3F;
  --color-acento: #D4A574;
  --color-fondo: #FAF6F1;
  --color-fondo-oscuro: #1A0F0A;
  --color-texto: #2C1810;
  --color-texto-claro: #FAF6F1;
  --color-borde: rgba(212, 165, 116, 0.25);
  --color-borde-oscuro: rgba(250, 246, 241, 0.12);

  --font-titulos: 'Playfair Display', Georgia, serif;
  --font-cuerpo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --trans-suave: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --header-height: 80px;
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 36px -12px rgba(26, 15, 10, 0.35);
  --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis maneja el scroll suave */
  background-color: var(--color-fondo-oscuro);
  color: var(--color-texto-claro);
  font-family: var(--font-cuerpo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-fondo-oscuro);
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.is-loading {
  opacity: 0.96;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Foco accesible */
:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 4px;
}

/* Contenedores y Utilidades */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-acento);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-titulos);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(250, 246, 241, 0.75);
  max-width: 620px;
  line-height: 1.7;
}

/* Botones con Microinteracciones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--trans-suave);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-primario) 100%);
  color: var(--color-texto-claro);
  border: 1px solid rgba(212, 165, 116, 0.4);
  box-shadow: 0 4px 18px rgba(164, 74, 63, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.45);
  border-color: var(--color-acento);
}

.btn-secondary {
  background: rgba(250, 246, 241, 0.08);
  color: var(--color-texto-claro);
  border: 1px solid rgba(250, 246, 241, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(250, 246, 241, 0.16);
  border-color: var(--color-acento);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ── Barra de Progreso de Scroll Superior ── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secundario), var(--color-acento));
  z-index: 1000;
  transition: width 0.05s linear;
}

/* ── Cabecera / Header Flotante ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 900;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(26, 15, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-borde-oscuro);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  z-index: 920;
}

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

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(250, 246, 241, 0.8);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-acento);
  transition: width 0.3s var(--trans-suave);
}

.nav-link:hover, .nav-link.is-active {
  color: var(--color-acento);
}

.nav-link:hover::after, .nav-link.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 920;
}

@media (max-width: 767px) {
  #btn-header-cta {
    display: none;
  }
}

/* Botón Hamburguesa Móvil */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(250, 246, 241, 0.05);
  border: 1px solid var(--color-borde-oscuro);
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-texto-claro);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Menú Móvil Desplegable */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(20, 11, 8, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--header-height) + 30px) 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.4s var(--trans-suave);
  z-index: 910;
}

.nav-mobile.is-open {
  transform: translateY(0);
}

.nav-mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile-link {
  font-family: var(--font-titulos);
  font-size: 1.8rem;
  color: var(--color-texto-claro);
  display: block;
  padding: 8px 0;
}

.nav-mobile-link:hover {
  color: var(--color-acento);
}

/* ── 1. HERO SECTION ── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 10, 8, 0.45) 0%, rgba(20, 10, 8, 0.88) 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-titulos);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  white-space: pre-line;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(250, 246, 241, 0.85);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-acento);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 7px;
  background-color: var(--color-acento);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: mouseWheel 2s infinite ease-in-out;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 246, 241, 0.65);
}

/* ── 2. STORYTELLING SECTION (Apple Style Canvas + Pinned Stage) ── */
.story-section {
  position: relative;
  background-color: var(--color-fondo-oscuro);
  width: 100%;
}

.story-track {
  position: relative;
  /* Altura controlada por JS dinámicamente según número de pasos (ej. 450vh) */
  min-height: 400vh;
}

.story-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-canvas-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 65% 50%, rgba(20, 11, 8, 0.25) 0%, rgba(20, 11, 8, 0.85) 80%);
  pointer-events: none;
}

/* Riel indicador lateral de pasos */
.story-nav-rail {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: none; /* Visible en tablet y escritorio */
}

.story-nav-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--color-acento);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.story-nav-dot.is-active {
  background: var(--color-acento);
  transform: scale(1.3);
  box-shadow: 0 0 12px var(--color-acento);
}

/* Tarjetas narrativas sobrepuestas */
.story-content-panels {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  pointer-events: none; /* Permitir scroll fluido */
}

.story-panel {
  position: absolute;
  left: 24px;
  max-width: 460px;
  background: rgba(26, 15, 10, 0.88);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--trans-suave), transform 0.5s var(--trans-suave);
  pointer-events: auto;
}

.story-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 12px;
}

.story-panel-title {
  font-family: var(--font-titulos);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-texto-claro);
  margin-bottom: 14px;
  line-height: 1.25;
}

.story-panel-text {
  font-size: 1rem;
  color: rgba(250, 246, 241, 0.85);
  line-height: 1.7;
}

/* ── 3. SERVICIOS (Horizontal Scroll Pin) ── */
.servicios-section {
  position: relative;
  background: linear-gradient(180deg, var(--color-fondo-oscuro) 0%, #20120d 100%);
  width: 100%;
  overflow: hidden;
}

.servicios-pinned-wrapper {
  padding: 100px 0 120px;
}

.servicios-header-bar {
  margin-bottom: 50px;
}

.servicios-slider-track {
  display: flex;
  gap: 28px;
  padding: 20px 24px;
  width: max-content;
  will-change: transform;
}

.servicio-card {
  width: 340px;
  background: rgba(30, 18, 14, 0.8);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--trans-suave), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-acento);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.servicio-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #140A07;
  position: relative;
}

.servicio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--trans-suave);
}

.servicio-card:hover .servicio-img {
  transform: scale(1.06);
}

.servicio-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.servicio-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.servicio-title {
  font-family: var(--font-titulos);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-texto-claro);
  margin-bottom: 12px;
}

.servicio-text {
  font-size: 0.95rem;
  color: rgba(250, 246, 241, 0.75);
  line-height: 1.6;
}

/* ── 4. CIFRAS EN NÚMEROS ── */
.cifras-section {
  padding: 100px 0;
  background-color: var(--color-fondo-oscuro);
  border-top: 1px solid var(--color-borde-oscuro);
  border-bottom: 1px solid var(--color-borde-oscuro);
}

.cifras-header {
  margin-bottom: 60px;
}

.cifras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

.cifra-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(250, 246, 241, 0.02);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cifra-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-acento);
}

.cifra-numero-wrapper {
  font-family: var(--font-titulos);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--color-acento);
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cifra-etiqueta {
  font-size: 0.95rem;
  color: rgba(250, 246, 241, 0.8);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── 5. GALERÍA VISUAL (Paralaje) ── */
.galeria-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--color-fondo-oscuro) 0%, #150907 100%);
}

.galeria-header {
  text-align: center;
  margin-bottom: 60px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.galeria-item {
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.galeria-img-wrap {
  width: 100%;
  height: 125%; /* Altura extra para el paralaje */
  position: absolute;
  top: -12.5%;
  left: 0;
  will-change: transform;
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--trans-suave);
}

.galeria-item:hover .galeria-img {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.35s var(--trans-suave);
  pointer-events: none;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-caption {
  font-family: var(--font-titulos);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-acento);
  line-height: 1.4;
  transform: translateY(10px);
  transition: transform 0.35s var(--trans-suave);
}

.galeria-item:hover .galeria-caption {
  transform: translateY(0);
}

/* ── 6. TESTIMONIOS EDITORIALES ── */
.testimonios-section {
  padding: 100px 0;
  background-color: var(--color-fondo-oscuro);
  border-top: 1px solid var(--color-borde-oscuro);
}

.testimonios-header {
  margin-bottom: 50px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonio-card {
  background: rgba(30, 18, 14, 0.65);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonio-quote-icon {
  font-family: var(--font-titulos);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-acento);
  opacity: 0.25;
  margin-bottom: -15px;
}

.testimonio-texto {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(250, 246, 241, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonio-autor-info {
  border-top: 1px solid var(--color-borde-oscuro);
  padding-top: 18px;
}

.testimonio-autor {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-acento);
}

.testimonio-cargo {
  font-size: 0.85rem;
  color: rgba(250, 246, 241, 0.6);
}

/* ── 7. CONTACTO & FORMULARIO ── */
.contacto-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #150907 0%, #0d0605 100%);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.contacto-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-items-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 36px 0;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contacto-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid var(--color-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contacto-item-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-acento);
  margin-bottom: 4px;
}

.contacto-item-content p, .contacto-item-content a {
  font-size: 1rem;
  color: rgba(250, 246, 241, 0.85);
}

.contacto-redes-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.redes-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-acento);
}

.contacto-redes {
  display: flex;
  gap: 12px;
}

.red-social-btn {
  padding: 8px 16px;
  background: rgba(250, 246, 241, 0.05);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-texto-claro);
  transition: all 0.2s ease;
}

.red-social-btn:hover {
  background: var(--color-acento);
  color: var(--color-fondo-oscuro);
  border-color: var(--color-acento);
}

/* Tarjeta Formulario */
.form-card {
  background: rgba(26, 15, 10, 0.9);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-family: var(--font-titulos);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: rgba(250, 246, 241, 0.7);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(250, 246, 241, 0.85);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(18, 10, 8, 0.8);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-texto-claro);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
  outline: none;
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.is-success {
  display: block;
  background: rgba(70, 160, 70, 0.15);
  border: 1px solid rgba(70, 160, 70, 0.4);
  color: #a0ffa0;
}

.form-feedback.is-error {
  display: block;
  background: rgba(220, 60, 60, 0.15);
  border: 1px solid rgba(220, 60, 60, 0.4);
  color: #ffaaaa;
}

/* ── PIE DE PÁGINA ── */
.site-footer {
  padding: 40px 0;
  background-color: #080403;
  border-top: 1px solid var(--color-borde-oscuro);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.footer-legal {
  font-size: 0.85rem;
  color: rgba(250, 246, 241, 0.6);
}

.footer-demo-notice {
  font-size: 0.8rem;
  color: var(--color-acento);
  opacity: 0.85;
}

/* ── BOTÓN FLOTANTE WHATSAPP ── */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 950;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--trans-bounce), box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.whatsapp-icon {
  flex-shrink: 0;
}

.whatsapp-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: none; /* Visible en tablet y escritorio */
}

/* ── RESPONSIVE DESIGN (Media Queries) ── */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp-label {
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .story-nav-rail {
    display: block;
  }
  .story-panel {
    left: 80px;
    max-width: 480px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .contacto-wrapper {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
  .hero-title {
    font-size: 5.2rem;
  }
}

/* ── ACCESIBILIDAD: PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-wheel {
    animation: none;
  }

  .hero-video {
    display: none;
  }

  .hero-media-wrapper {
    background-image: url('assets/images/hero-poster.svg');
    background-size: cover;
    background-position: center;
  }

  .story-track {
    min-height: auto;
  }

  .story-sticky-stage {
    position: relative;
    height: auto;
    padding: 60px 0;
  }

  .story-panel {
    position: relative;
    left: 0;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .story-canvas-container {
    display: none;
  }

  .servicios-slider-track {
    flex-wrap: wrap;
    transform: none !important;
    width: 100%;
  }
}
