/* =========================================================================
   SISTEMA DE DISEÑO PREMIUM — VEO-IA Standalone Web
   ========================================================================= */

/* Fuentes Editoriales de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  /* Paleta de Colores (Negros cálidos, Madera/Oro, Ámbar dorado y Blanco hueso) */
  --navy: #0E0D0C;       /* Fondo principal negro cálido */
  --navy-light: #151312; /* Tarjetas y secciones secundarias */
  --navy-card: #1C1918;  /* Tarjetas destacadas */
  
  --gold: #D4A574;       /* Tono principal madera/caoba */
  --gold-hover: #C59665; /* Hover oro oscuro */
  --amber: #E8A855;      /* Ámbar dorado - acentos y focos */
  --bone: #F5EDE0;       /* Texto y fondos claros */
  
  --gray-text: rgba(245, 237, 224, 0.60);
  --gray-muted: rgba(245, 237, 224, 0.35);
  
  /* Bordes translúcidos y divisorias */
  --border-gold: rgba(212, 165, 116, 0.25);
  --border-muted: rgba(245, 237, 224, 0.08);
  
  /* Tipografías */
  --font-head: 'Syne', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Textura de veta de madera tenue (gradiente) */
  --wood-grain: repeating-linear-gradient(
    92deg,
    transparent 0px, transparent 18px,
    rgba(212, 165, 116, 0.03) 18px, rgba(212, 165, 116, 0.03) 19px,
    transparent 19px, transparent 38px,
    rgba(139, 94, 60, 0.02) 38px, rgba(139, 94, 60, 0.02) 39px
  );
}

/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Fondo decorativo de grano de madera en todo el body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--wood-grain);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Tipografías Globales */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--gray-text);
  font-weight: 300;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--amber);
}

/* =========================================================================
   NAVEGACIÓN PREMIUM
   ========================================================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 13, 12, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bone);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-text);
}

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

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-head);
}

.nav-cta:hover {
  background: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 168, 85, 0.25);
}

/* =========================================================================
   HERO EDITORIAL GIGANTE
   ========================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10rem 8% 5rem;
  z-index: 1;
}

.hero-num-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(20rem, 35vw, 42rem);
  font-weight: 300;
  color: rgba(212, 165, 116, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
  z-index: -1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.etag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.etag::before {
  content: '';
  display: inline-block;
  width: 35px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.8rem;
}

.esub {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gray-muted);
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--bone);
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}

.hero h1 .indent-line {
  padding-left: 12vw;
  display: block;
}

.hero h1 .subtitle-line {
  padding-left: 4vw;
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 3.8rem);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--gray-text);
  margin-top: 1.5rem;
  line-height: 1.2;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border-muted);
  padding-top: 3rem;
  margin-top: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 4rem;
}

.h-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.h-stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--amber);
}

.h-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

.btn-editorial {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.btn-editorial:hover {
  color: var(--bone);
  border-bottom-color: var(--bone);
  padding-right: 0.8rem;
}

/* =========================================================================
   SECCIONES COMUNES
   ========================================================================= */
.sec {
  padding: 8rem 8%;
  position: relative;
  z-index: 1;
}

.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sec-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.sec-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 1.5rem;
}

.sec-title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}

.sec-subtitle {
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 4rem;
}

.wood-divider {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(139, 94, 60, 0.4) 15%,
    rgba(212, 165, 116, 0.6) 35%, rgba(232, 168, 85, 0.7) 50%,
    rgba(212, 165, 116, 0.6) 65%, rgba(139, 94, 60, 0.4) 85%,
    transparent 100%);
  opacity: 0.35;
  position: relative;
  z-index: 1;
}

.wood-divider::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 8px,
    rgba(255, 255, 255, 0.08) 8px, rgba(255, 255, 255, 0.08) 9px);
}

/* =========================================================================
   COMPONENTE INTERACTIVO: COMPARADOR ANTES/DESPUÉS (SLIDER)
   ========================================================================= */
.comparison-wrapper {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 550px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background-color: var(--navy-light);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* La imagen Before (Boceto inicial) es la de abajo */
.img-before {
  z-index: 1;
}

/* La imagen After (Render final fotorrealista) está encima y se recorta */
.img-after {
  z-index: 2;
  /* clip-path inicial controlado por JS */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Tirador / Handle del Slider */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* Posición inicial */
  width: 2px;
  background-color: var(--amber);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(232, 168, 85, 0.5);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--navy);
  border: 2px solid var(--amber);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(14, 13, 12, 0.8), 0 0 8px rgba(232, 168, 85, 0.3);
  z-index: 4;
}

.slider-button::before,
.slider-button::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
}

.slider-button::before {
  border-width: 6px 8px 6px 0;
  border-color: transparent var(--amber) transparent transparent;
  margin-right: 4px;
}

.slider-button::after {
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent var(--amber);
  margin-left: 4px;
}

/* Etiquetas flotantes */
.slider-label {
  position: absolute;
  bottom: 20px;
  padding: 0.4rem 1rem;
  background: rgba(14, 13, 12, 0.8);
  border: 1px solid var(--border-gold);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}

.label-before {
  left: 20px;
}

.label-after {
  right: 20px;
}

.slider-instruction {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================================
   COMPONENTE INTERACTIVO: CONFIGURADOR DE MATERIALES
   ========================================================================= */
.configurator-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.configurator-viewer {
  position: relative;
  height: 480px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.configurator-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 1s ease-out;
  transform: scale(1.02);
}

.configurator-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Efecto de viñeta para añadir realismo fotorrealista */
.viewer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(14, 13, 12, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

.configurator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.configurator-info {
  margin-bottom: 1rem;
}

.configurator-info h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.configurator-info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.config-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-muted);
  padding: 1.2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: 4px;
}

.config-btn:hover {
  background: rgba(212, 165, 116, 0.05);
  border-color: var(--border-gold);
}

.config-btn.active {
  background: rgba(212, 165, 116, 0.09);
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(232, 168, 85, 0.1);
}

.config-btn-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone);
}

.config-btn.active .config-btn-title {
  color: var(--amber);
}

.config-btn-desc {
  font-size: 0.75rem;
  color: var(--gray-text);
}

/* =========================================================================
   BLOQUE DE SERVICIOS
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(21, 19, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-muted);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.45) 0%, rgba(14, 13, 12, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}

.service-card:hover::before {
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.25) 0%, rgba(14, 13, 12, 0.75) 100%);
}

.card-media-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 0;
  pointer-events: none;
}

.service-card:hover .card-media-bg {
  opacity: 0.85;
  transform: scale(1.06);
}

.card-content-wrapper {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  background: rgba(212, 165, 116, 0.03);
  border-color: var(--border-gold);
  transform: translateY(-5px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card.card-featured {
  grid-column: span 3;
}

#servicios {
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('plano-background.png?v=1.6');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25; /* 25% de opacidad para que las líneas blancas se aprecien sobre el fondo oscuro */
  pointer-events: none;
  z-index: 0;
}

#servicios .sec-inner {
  position: relative;
  z-index: 1;
}

.srv-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.8;
  display: block;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* =========================================================================
   BLOQUE PÚBLICOS (SECTORES)
   ========================================================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.sector-card {
  background: rgba(21, 19, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-muted);
  padding: 3rem 2.2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.45) 0%, rgba(14, 13, 12, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}

.sector-card:hover::before {
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.25) 0%, rgba(14, 13, 12, 0.75) 100%);
}

.sector-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
}

.sector-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sector-card:hover::after {
  opacity: 1;
}

.sector-card:hover .card-media-bg {
  opacity: 0.85;
  transform: scale(1.06);
}

.sector-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
  display: block;
}

.sector-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
  color: var(--bone);
}

.sector-desc {
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.sector-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sector-features li {
  font-size: 0.8rem;
  color: var(--gray-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.sector-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* =========================================================================
   FORMULARIO Y RESERVAS (AGENDA)
   ========================================================================= */
.lead-section {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  border-top: 1px solid var(--border-gold);
  padding: 8rem 8% 9rem;
}

.lead-container {
  max-width: 900px;
  margin: 0 auto;
}

.lead-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 3rem;
  margin-bottom: 4rem;
  gap: 3rem;
  flex-wrap: wrap;
}

.lead-header-text {
  flex: 1.2;
}

.lead-header-info {
  flex: 0.8;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray-text);
  line-height: 1.7;
}

.lead-header-info span {
  color: var(--amber);
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Formulario editorial sin bordes de contenedor */
.lead-form {
  display: grid;
  gap: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-muted);
}

.form-row-1 {
  border-bottom: 1px solid var(--border-muted);
}

.field-group {
  padding: 1.5rem 2rem;
  transition: background 0.3s ease;
}

.field-group:focus-within {
  background: rgba(212, 165, 116, 0.02);
}

.form-row-2 .field-group:first-child {
  border-right: 1px solid var(--border-muted);
}

.field-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
}

.field-group input,
.field-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  padding: 0.3rem 0;
  caret-color: var(--amber);
  resize: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(245, 237, 224, 0.18);
}

.field-group input:focus,
.field-group textarea:focus {
  border-bottom: 1px solid var(--amber);
}

/* Checkboxes estilizados como pastillas */
.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.5rem 0 1rem;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--gray-text);
  border: 1px solid var(--border-muted);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.check-pill input {
  display: none;
}

.check-pill:hover {
  border-color: var(--gold);
  color: var(--bone);
}

.check-pill.active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(232, 168, 85, 0.08);
}

/* Fila de Privacidad */
.privacy-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-muted);
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--amber);
}

.privacy-row label {
  font-size: 0.8rem;
  color: var(--gray-text);
  cursor: pointer;
}

.privacy-row label a {
  color: var(--gold);
}

/* Submit Form */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.form-footer-note {
  font-size: 0.75rem;
  color: var(--gray-muted);
  max-width: 380px;
  line-height: 1.6;
}

.btn-submit {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border: none;
  padding: 1rem 2.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(232, 168, 85, 0.15);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 85, 0.3);
}

.btn-submit:disabled {
  background: var(--gray-muted);
  color: var(--navy);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================================
   PANELES DE CONFIRMACIÓN Y GOOGLE CALENDAR
   ========================================================================= */
.success-panel {
  display: none;
  text-align: center;
  padding: 3rem 0;
  animation: fadeIn 0.8s ease forwards;
}

.success-icon {
  font-size: 3rem;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.success-panel h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Contenedor del Calendario de Google */
.calendar-wrapper {
  margin-top: 3rem;
  border: 1px solid var(--border-gold);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.calendar-header {
  text-align: left;
  padding: 1rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 2rem;
}

.calendar-header h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.calendar-header p {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.calendar-iframe-container {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.calendar-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bone); /* Fondo claro para legibilidad del calendario de Google */
  border-radius: 4px;
}

/* =========================================================================
   FOOTER EDITORIAL
   ========================================================================= */
footer {
  background: rgba(10, 9, 8, 0.95);
  border-top: 1px solid var(--border-muted);
  padding: 4rem 8% 3rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--gold);
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--gray-muted);
  margin-top: 0.3rem;
}

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

.footer-link {
  color: var(--gray-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-link:hover {
  color: var(--gold);
}

/* =========================================================================
   ANIMACIONES
   ========================================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: slideUpFade 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* =========================================================================
   MEDIA QUERIES (DISEÑO RESPONSIVE)
   ========================================================================= */
@media (max-width: 1024px) {
  nav {
    padding: 1.2rem 5%;
  }
  .hero {
    padding: 10rem 5% 5rem;
  }
  .sec {
    padding: 6rem 5%;
  }
  .lead-section {
    padding: 6rem 5% 7rem;
  }
  .configurator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .configurator-viewer {
    height: 400px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.card-featured {
    grid-column: span 2;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* En producción se podría añadir menú hamburguesa, aquí simplificamos */
  }
  
  .hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
  }
  .hero h1 .indent-line {
    padding-left: 0;
  }
  .hero h1 .subtitle-line {
    padding-left: 0;
    font-size: 1.5rem;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
  .hero-cta-group {
    align-items: flex-start;
    width: 100%;
  }
  
  .slider-container {
    height: 350px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card.card-featured {
    grid-column: span 1;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .form-row-2 .field-group:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
  }
  .field-group {
    padding: 1.2rem 1.5rem;
  }
  .privacy-row {
    padding: 1.2rem 1.5rem;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2rem;
  }
  .btn-submit {
    width: 100%;
    text-align: center;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .slider-container {
    height: 250px;
  }
  .slider-label {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
  .configurator-viewer {
    height: 300px;
  }
}

/* =========================================================================
   VISOR MODAL DE GALERÍA (LIGHTBOX)
   ========================================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(14, 13, 12, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95vw;
  height: 85vh;
  margin-top: 1rem;
}

.modal-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-text-top {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 300;
  color: var(--bone);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  background: transparent;
  line-height: 1.35;
  display: none;
  z-index: 1005;
}

.modal-text-bottom {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  background: transparent;
  line-height: 1.35;
  z-index: 1005;
}

@media (max-width: 768px) {
  .modal-text-top {
    top: 20px;
    width: 75%;
    font-size: 1.05rem;
  }
  .modal-text-bottom {
    bottom: 25px;
    width: 90%;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
  .modal-close {
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
  }
  .modal-caption {
    top: 1.6rem;
    left: 1.5rem;
  }
}

/* Botón de Cierre */
.modal-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: var(--bone);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1010;
}

.modal-close:hover {
  color: var(--amber);
  transform: rotate(90deg);
}

/* Botones de Navegación */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 13, 12, 0.6);
  border: 1px solid var(--border-muted);
  color: var(--bone);
  padding: 1.2rem 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1010;
  border-radius: 4px;
}

.modal-nav:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}

.modal-nav.prev {
  left: 2rem;
}

.modal-nav.next {
  right: 2rem;
}

/* Pie de Modal y Contador */
.modal-caption {
  position: absolute;
  top: 2.6rem;
  left: 3rem;
  text-align: left;
  margin: 0;
  width: auto;
  z-index: 1010;
  pointer-events: none;
}

.modal-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 0.3rem;
}

#modal-counter {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
}

/* Adaptación responsive del modal */
@media (max-width: 992px) {
  .modal-nav.prev {
    left: 1rem;
    padding: 0.8rem 1rem;
  }
  .modal-nav.next {
    right: 1rem;
    padding: 0.8rem 1rem;
  }
  .modal-content {
    max-width: 95%;
  }
}
