/* ==========================================================================
   RESET GENERAL Y FUENTES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* Usamos las variables definidas abajo */
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif; /* Fuente sans-serif premium del vídeo */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", system-ui, sans-serif; /* Fuente display del vídeo */
  letter-spacing: -0.02em;
}

/* ==========================================================================
   VARIABLES DE DISEÑO PREMIUM (Paleta exacta en OKLCH nativo)
   ========================================================================== */
:root {
  --radius-sm: 0.5rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Paleta oscura de alta fidelidad */
  --background: oklch(0.15 0.06 255);       /* Azul noche ultra profundo */
  --foreground: oklch(0.99 0.005 240);      /* Blanco hielo */
  --card: oklch(0.18 0.05 250 / 0.65);      /* Tarjetas con efecto cristal */
  --border: oklch(1 0 0 / 10%);             /* Bordes sutiles transparentes */
  --primary: oklch(0.55 0.18 250);          /* Azul eléctrico brillante */
  --verde-wa: #25d366;                      /* Verde corporativo de WhatsApp */
  
  /* Degradados y sombras del vídeo */
  --gradient-hero: linear-gradient(135deg, oklch(0.13 0.06 255) 0%, oklch(0.19 0.07 250) 100%);
  --gradient-brand: linear-gradient(135deg, oklch(0.55 0.18 250), oklch(0.65 0.15 230));
  
  --shadow-elegant: 0 24px 60px -24px oklch(0.15 0.06 255 / 0.6);
  --shadow-card: 0 4px 24px -6px oklch(0.15 0.06 255 / 0.3);
  --shadow-glow: 0 0 0 1px oklch(0.55 0.18 250 / 0.25), 0 12px 40px -10px oklch(0.55 0.18 250 / 0.4);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 70px;
  background: oklch(0.15 0.06 255 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: var(--shadow-elegant);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 40px;

  /* Truco de DAW: Volvemos el logo blanco puro usando filtros */
  filter: brightness(0) invert(1);
}

.nav-nombre {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

nav ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: oklch(0.99 0.005 240 / 0.75);
  transition: color 0.25s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Botón de presupuesto con efecto resplandor */
nav ul li a.enlace-cta {
  background: var(--gradient-brand);
  color: oklch(0.99 0.005 240);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 12px oklch(0.55 0.18 250 / 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

nav ul li a.enlace-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   SECCIÓN HERO (Diseño nativo en dos columnas)
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  background: var(--gradient-hero);
}

/* Malla/Cuadrícula decorativa de fondo */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.55 0.18 250 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.55 0.18 250 / 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: left;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-contenido {
  width: 100%;
}

.hero-etiqueta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: oklch(0.55 0.18 250 / 0.12);
  border: 1px solid oklch(0.55 0.18 250 / 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.hero-titulo {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

/* Texto degradado idéntico al vídeo */
.hero-titulo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitulo {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: oklch(0.99 0.005 240 / 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.hero-imagen {
  display: grid;
    
  justify-content: right;
  align-items: right;

  /* Truco de DAW: Volvemos el logo blanco puro usando filtros */
  filter: brightness(0) invert(1);
}

.hero-imagen img {
    max-width: 380px;
    width: 100%;
    filter: drop-shadow(0 0 40px oklch(0.55 0.18 250 / 0.4));
    animation: flotarNativo 6s ease-in-out infinite;
}

.pill {
  background: oklch(1 0 0 / 5%);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  color: oklch(0.99 0.005 240 / 0.8);
  font-weight: 500;
}

.hero-botones {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primario, .btn-secundario {
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primario {
  background: var(--gradient-brand);
  color: oklch(0.99 0.005 240);
  box-shadow: 0 4px 14px oklch(0.55 0.18 250 / 0.2);
}

.btn-primario:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secundario {
  background: oklch(1 0 0 / 4%);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secundario:hover {
  background: oklch(1 0 0 / 8%);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-estadisticas {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.estadistica-numero {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--foreground);
}

.estadistica-texto {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(0.5 0.03 250);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */

section {
  padding: 7rem 2.5rem;
}

.contenedor {
  max-width: 1140px;
  margin: 0 auto;
}

.seccion-subtitulo-pequeño {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.seccion-titulo {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.seccion-titulo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   SECCIÓN: NOSOTROS
   ========================================================================== */
#nosotros {
  background: linear-gradient(to bottom, var(--background), oklch(0.13 0.06 255));
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.nosotros-logo img {
  max-width: 300px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px oklch(0.55 0.18 250 / 0.3));
  animation: flotarNativo 6s ease-in-out infinite;

  /* Truco de DAW: Volvemos el logo blanco puro usando filtros */
  filter: brightness(0) invert(1);
}

@keyframes flotarNativo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.nosotros-puntos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.punto {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.punto-icono {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: oklch(0.55 0.18 250 / 0.15);
  border: 1px solid oklch(0.55 0.18 250 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.punto-texto {
  font-size: 0.95rem;
  color: oklch(0.99 0.005 240 / 0.8);
  line-height: 1.6;
}

/* ==========================================================================
   TARJETAS DE SERVICIO (Efecto Glassmorphism del vídeo)
   ========================================================================== */
#servicios {
  background: var(--background);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.tarjeta-servicio {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-4px);
  border-color: oklch(0.55 0.18 250 / 0.4);
  box-shadow: var(--shadow-elegant);
}

.servicio-icono {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.servicio-nombre {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.servicio-descripcion {
  font-size: 0.95rem;
  color: oklch(0.5 0.03 250);
  line-height: 1.6;
}

.servicio-lista {
  list-style: none;
  margin-top: 1rem;
}

.servicio-lista li {
  font-size: 0.85rem;
  color: oklch(0.99 0.005 240 / 0.6);
  padding: 0.25rem 0;
}

.servicio-lista li::before {
  content: '→ ';
  color: var(--primary);
}

/* ==========================================================================
   SECCIÓN: VENTAJAS
   ========================================================================== */
#ventajas {
  background: linear-gradient(135deg, oklch(0.13 0.06 255) 0%, var(--background) 100%);
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tarjeta-ventaja {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: oklch(1 0 0 / 3%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.tarjeta-ventaja:hover {
  border-color: oklch(0.55 0.18 250 / 0.4);
  transform: translateY(-4px);
}

.ventaja-icono {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ventaja-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ventaja-descripcion {
  font-size: 0.85rem;
  color: oklch(0.99 0.005 240 / 0.6);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: GALERÍA
   ========================================================================== */
#galeria {
  background: var(--background);
}

.galeria-aviso {
  margin-top: 3rem;
  padding: 3rem;
  background: oklch(0.55 0.18 250 / 0.05);
  border: 1px dashed oklch(0.55 0.18 250 / 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  color: oklch(0.99 0.005 240 / 0.5);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.foto-placeholder {
  aspect-ratio: 4 / 3;
  background: oklch(1 0 0 / 4%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: oklch(0.99 0.005 240 / 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   SECCIÓN: CONTACTO Y FORMULARIOS PREMIUM
   ========================================================================== */
#contacto {
  background: linear-gradient(to bottom, oklch(0.13 0.06 255), var(--background));
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dato-contacto {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dato-icono {
  font-size: 1.4rem;
}

.dato-etiqueta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.5 0.03 250);
  margin-bottom: 0.25rem;
}

.dato-valor {
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.dato-valor:hover {
  color: var(--primary);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--verde-wa);
  color: white;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  margin-top: 1.5rem;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.campo label {
  font-size: 0.78rem;
  color: oklch(0.5 0.03 250);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campo input, .campo select, .campo textarea {
  background: oklch(0.13 0.06 255);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 250 / 0.15);
}

.campo select option {
  background: oklch(0.13 0.06 255);
}

.campo textarea {
  min-height: 120px;
  resize: vertical;
}

.fila-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-enviar {
  background: var(--gradient-brand);
  color: oklch(0.99 0.005 240);
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   FOOTER Y BOTÓN FLOTANTE
   ========================================== */
footer {
  background: oklch(0.11 0.05 255);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: oklch(0.5 0.03 250);
}

footer strong {
  color: var(--primary);
}

.whatsapp-flotante {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: var(--verde-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-flotante:hover {
  transform: scale(1.08) rotate(8deg);
}

/* ==========================================
   ANIMACIONES NATIVAS SÍNCRONAS
   ========================================== */
@keyframes subirFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleInNativos {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.revelar {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.revelar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE NATIVO OPTIMIZADO
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-contenido { text-align: center; }
  .hero-botones, .hero-estadisticas, .hero-pills { justify-content: center; }
  .hero-imagen { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  section { padding: 5rem 1.5rem; }
  .nosotros-grid, .contacto-grid, .fila-doble { grid-template-columns: 1fr; gap: 2rem; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}