/* ============================================
   AUSTRAL DYNAMICS - STYLE.CSS
   Sistema de diseño: Flat 2.0 + Neon Gradients
   ============================================ */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600&display=swap');

/* ============================================
   VARIABLES CSS GLOBALES
   ============================================ */
:root {
  /* ========================================
     PALETA DE COLORES (Desde JSON)
     ======================================== */
  /* Colores Principales */
  --primary-color: #6366F1;   /* Indigo Vibrante */
  --primary-hover: #4F46E5;
  --secondary-color: #06B6D4; /* Cyan */
  --secondary-hover: #0891B2;
  --accent-color: #F43F5E;    /* Rose */
  --accent-hover: #E11D48;

  /* Gradientes (Vibe: Neon/Tech) */
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --hover-gradient: linear-gradient(135deg, #4F46E5 0%, #0891B2 100%);

  /* Colores de Fondo */
  --background: #F8FAFC;      /* Slate 50 */
  --background-alt: #F1F5F9;  /* Slate 100 */

  /* Colores de Texto */
  --text-color: #0F172A;      /* Slate 900 */
  --text-light: #475569;      /* Slate 600 */
  --text-muted: #94A3B8;      /* Slate 400 */

  /* Colores Utilitarios */
  --white: #FFFFFF;
  --border-color: #E2E8F0;    /* Slate 200 */
  --success-color: #10B981;   /* Emerald */

  /* ========================================
     TIPOGRAFÍA
     ======================================== */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Pesos de Fuente */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Tamaños de Fuente (Escala Moderna) */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 2.5rem;     /* 40px */
  --font-size-5xl: 3.5rem;     /* 56px */
  --font-size-6xl: 4.5rem;     /* 72px */

  /* ========================================
     ESPACIADO Y TAMAÑOS
     ======================================== */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 5rem;    /* 80px */
  --spacing-3xl: 8rem;    /* 128px */

  --section-padding: 5rem 0;
  --container-padding: 0 1.5rem;

  /* ========================================
     BORDES Y RADIOS
     ======================================== */
  --border-width: 1px;
  
  /* Radios (Moderno/Suave) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-round: 9999px;
  --radius-circle: 50%;

  /* Asignaciones Específicas */
  --radius-cards: var(--radius-lg);
  --radius-buttons: var(--radius-round); /* Botones tipo píldora */
  --radius-inputs: var(--radius-md);

  /* ========================================
     SOMBRAS (Vibe: Flat 2.0 con tinte)
     ======================================== */
  /* Sombras tintadas con el color primario para efecto "Glow" sutil */
  --shadow-sm: 0 2px 4px rgba(99, 102, 241, 0.05);
  --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
  --shadow-xl: 0 20px 40px -5px rgba(99, 102, 241, 0.15);
  
  /* Sombra interna para inputs */
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* ========================================
     TRANSICIONES
     ======================================== */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================
     Z-INDEX
     ======================================== */
  --z-sticky: 100;
  --z-fixed: 1000;
  --z-modal: 2000;
}
/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */

/* Reset Universal */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML y Body */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* Prevenir scroll horizontal accidental */
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased; /* Texto nítido en Mac/iOS */
  -moz-osx-font-smoothing: grayscale;
}

/* Imágenes y Medios */
img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

/* Listas */
ul,
ol {
  list-style: none;
}

/* Botones (Reset base) */
button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

/* Inputs y Elementos de Formulario */
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--text-color);
  background-color: var(--white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-inputs);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-inner);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); /* Ring focus estilo Tailwind */
}

/* ============================================
   TIPOGRAFÍA
   Estilo: Tech Moderno (Space Grotesk)
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em; /* Kerning ajustado para toque "Tech" */
}

h1 { 
  font-size: clamp(2.5rem, 5vw, var(--font-size-6xl)); 
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(2rem, 4vw, var(--font-size-5xl)); }
h3 { font-size: clamp(1.75rem, 3vw, var(--font-size-4xl)); }
h4 { font-size: var(--font-size-3xl); }
h5 { font-size: var(--font-size-2xl); }
h6 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light); /* Texto secundario ligeramente más suave */
}

strong {
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
}

/* Selection (Texto seleccionado) */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Scrollbar Personalizado (Webkit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background-color: #CBD5E1; /* Slate 300 */
  border-radius: var(--radius-round);
  border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}
/* ============================================
   LAYOUT Y CONTENEDORES
   ============================================ */

/* Contenedor Principal */
.container {
  width: 100%;
  max-width: 1280px; /* Ancho máximo moderno */
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Secciones */
section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden; /* Evita desbordes horizontales de decoraciones */
}

/* Encabezados de Sección (Centrados por defecto) */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

/* Subrayado decorativo "Tech" sutil para títulos */
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-round);
  margin: var(--spacing-xs) auto 0;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  font-weight: var(--font-weight-medium);
}

/* ============================================
   UTILIDADES GRID & FLEX
   ============================================ */

/* Grids Básicos (Mobile First: 1 columna por defecto) */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Clases de alineación de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Utilidades de Visibilidad */
.hidden-mobile { display: none; }
.hidden-desktop { display: block; }

/* Animaciones de Entrada (Estados iniciales para JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

/* Header Principal - Fondo claro semi-transparente para legibilidad inmediata */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  padding: 1rem 0;
  background-color: rgba(248, 250, 252, 0.4); /* Color --background casi sólido */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); /* Efecto vidrio */
  box-shadow: var(--shadow-sm); /* Sombra suave para separar del video */
  transition: all var(--transition-base);
}

/* Forzar color de texto oscuro para contraste sobre el fondo claro */
.main-header .logo-text,
.main-header .nav-list a {
  color: var(--text-color) !important;
}

/* Estado Scrolled (Mismo estilo, ajustamos padding) */
.main-header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Textual (Space Grotesk Bold) */
.logo-text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
  z-index: var(--z-sticky); /* Por encima del menú móvil */
  position: relative;
}

/* Hover sutil en el logo */
.logo-text:hover {
  color: var(--primary-color);
}

/* Navegación Desktop (Oculta en Mobile) */
.main-nav {
  display: none;
}

/* CTA del Header (Oculto en Mobile) */
.main-header .btn-primary {
  display: none;
}

/* ============================================
   MENÚ HAMBURGUESA (Mobile)
   ============================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  padding: 0;
  z-index: var(--z-modal); /* Máxima prioridad */
  position: relative;
}

.hamburger-line {
    background-color: var(--text-color) !important;
}

/* Animación a 'X' cuando está activo (.active se agrega con JS) */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.active .hamburger-line {
  background-color: var(--primary-color) !important; /* Cambia de color al abrir */
}

/* ============================================
   MENÚ MÓVIL (Off-Canvas)
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Oculto a la derecha */
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--background);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1100; /* Entre el contenido y el hamburger */
  padding: 6rem 2rem 2rem; /* Padding top para no tapar con el header */
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

/* Estado Abierto */
.mobile-menu.open {
  right: 0;
}

/* Lista de Enlaces Móvil */
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border-color);
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--primary-color);
  padding-left: 10px; /* Desplazamiento visual al hover */
  border-color: var(--primary-color);
}
/* ============================================
   HERO SECTION (Video Background)
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Pantalla completa */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--text-color); /* Fallback color */
}

/* Contenedor del Video */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video cubra todo sin deformarse */
  opacity: 0.6; /* Ajuste opcional de brillo original del video */
}

/* Overlay Oscuro (Gradiente para profundidad) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(15, 23, 42, 0.4) 0%, 
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 1;
}

/* Contenido del Hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-top: 60px; /* Compensación por el header fixed */
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive fluido */
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Sombra para separar del video */
}

.hero-subtitle {
  color: #E2E8F0; /* Slate 200 - Muy claro para contraste */
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  font-weight: var(--font-weight-light);
}

.hero-ctas {
  display: flex;
  flex-direction: column; /* Mobile first: uno debajo del otro */
  gap: var(--spacing-md);
  align-items: center;
  justify-content: center;
}

/* ============================================
   BOTONES (Componentes)
   ============================================ */

/* Base Button - Forzando bordes redondos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  border-radius: 9999px !important; /* SIEMPRE redondo */
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  line-height: 1;
}

/* Botón Grande */
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Botón Primario (Gradiente Neón) */
/* Botón Primario y corrección de Hover */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: var(--hover-gradient);
  color: var(--white) !important; /* Texto blanco forzado */
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Botón Secundario (Glass/Outline) */
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* FORZAR BORDES REDONDOS (PÍLDORA) */
.btn, 
.btn-primary, 
.btn-secondary, 
.btn-large,
a.btn-primary, /* Asegura que los enlaces con clase btn también tomen el estilo */
a.btn-secondary {
  border-radius: 10px !important;
}

/* Asegurar que el hover mantenga la forma */
.btn:hover, 
.btn-primary:hover, 
.btn-secondary:hover {
  border-radius: 10px !important;
}

/* ============================================
   CARDS (Base)
   ============================================ */
/* Estilos base para tarjetas (Servicios, Testimonios) */
.servicio-card,
.testimonio-card,
.faq-item {
  background: var(--white);
  border-radius: var(--radius-cards);
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.servicio-card:hover,
.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3); /* Borde tintado al hover */
}

/* Ajuste para que las cards no se estiren demasiado */
  .servicio-card, 
  .testimonio-card {
    height: 100%; /* Para que todas tengan la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
/* ============================================
   SECCIÓN: PROBLEMA-SOLUCIÓN
   ============================================ */
.problema-solucion-section {
  background-color: var(--white);
}

.problema-solucion-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.problema-box, 
.solucion-box {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--background); /* Slate 50 */
}

.problema-icon {
  color: var(--accent-color); /* Rojo/Rosa para problema */
  flex-shrink: 0;
}

.solucion-icon {
  color: var(--success-color); /* Verde/Teal para solución */
  flex-shrink: 0;
}

.problema-text, .solucion-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

.problema-solucion-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
}

/* ============================================
   SECCIÓN: SERVICIOS
   ============================================ */
.servicios-section {
  background-color: var(--background);
}

/* El grid base (.grid-3) ya se definió en layout, 
   aquí estilizamos el contenido interno */

.servicio-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-gradient); /* Gradiente Neón */
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.servicio-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   SECCIÓN: NOSOTROS & STATS
   ============================================ */
.nosotros-section {
  background-color: var(--white);
}

.nosotros-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.nosotros-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Stats Grid */
.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--background);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SECCIÓN: TESTIMONIOS
   ============================================ */
.testimonios-section {
  background-color: var(--background);
}

.testimonio-rating {
  color: #F59E0B; /* Amber 500 (Dorado) */
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: 2px;
}

.testimonio-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
}

.testimonio-author {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-sm);
}

.author-name {
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
}

.author-location {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* ============================================
   SECCIÓN: FAQ (Acordeón)
   ============================================ */
.faq-section {
  background-color: var(--white);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  background-color: #F1F5F9; /* Gris suave para contraste */
}

.faq-item[open] {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: var(--spacing-md);
  background-color: transparent; /* Hereda el gris del item */
  font-weight: var(--font-weight-semibold);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ocultar marker en Webkit */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

/* Animación del icono chevron */
.chevron-icon {
  transition: transform var(--transition-base);
  color: var(--primary-color);
}

.faq-item[open] .chevron-icon {
  transform: rotate(180deg);
}

/* ============================================
   SECCIÓN: UBICACIÓN
   ============================================ */
.ubicacion-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.ubicacion-direccion, 
.ubicacion-horario {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  padding: var(--spacing-md);
  background: var(--background);
  border-radius: var(--radius-md);
}

.direccion-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.ubicacion-mapa iframe {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background-color: var(--text-color); /* Fondo Oscuro */
  color: var(--text-muted);
  padding-top: var(--spacing-2xl);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Redes Sociales */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.credits a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.credits a:hover {
  color: var(--primary-color); /* Color primario al pasar el mouse */
  text-decoration: underline;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Verde Oficial */
  border-radius: var(--radius-circle);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}
/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* ========================================
   TABLET (768px y superior)
   ======================================== */
@media (min-width: 768px) {
  
  /* Layout General */
  .container {
    padding: 0 2rem;
  }

  /* Grids a 2 columnas */
  .grid-2, 
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sección Problema/Solución (Lado a Lado) */
  .problema-solucion-grid {
    flex-direction: row;
    align-items: center;
  }

  .problema-solucion-content,
  .problema-solucion-image {
    flex: 1;
  }

  /* Sección Nosotros */
  .nosotros-grid {
    flex-direction: row;
    align-items: center;
  }
  
  .nosotros-content,
  .nosotros-image {
    flex: 1;
  }

  .nosotros-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Ubicación */
  .ubicacion-grid {
    flex-direction: row;
  }

  .ubicacion-info,
  .ubicacion-mapa {
    flex: 1;
  }

  /* Footer Tablet */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   DESKTOP (1024px y superior)
   ======================================== */
@media (min-width: 1024px) {

  /* Ajustes Globales */
  section {
    padding: 6rem 0; /* Más aire vertical */
  }

  /* Tipografía Gigante */
  h1 { font-size: var(--font-size-6xl); }
  h2 { font-size: var(--font-size-5xl); }

  /* ====================================
     HEADER DESKTOP
     ==================================== */
  /* Mostrar Navegación Desktop */
  .main-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-list a {
    font-weight: var(--font-weight-medium);
    position: relative;
    padding: 0.5rem 0;
  }

  /* Efecto Underline Animado en Menú */
  .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
  }

  .nav-list a:hover::after {
    width: 100%;
  }

  /* Mostrar CTA Header */
  .main-header .btn-primary {
    display: inline-flex;
    padding: 0.6rem 1.5rem; /* Un poco más pequeño que en el hero */
    font-size: 0.9rem;
  }

  /* Ocultar elementos Móviles */
  .hamburger,
  .mobile-menu {
    display: none !important; /* Forzar ocultamiento */
  }

  /* ====================================
     HERO DESKTOP
     ==================================== */
  .hero-ctas {
    flex-direction: row; /* Botones lado a lado */
  }

  /* ====================================
     GRIDS DESKTOP (3 y 4 Columnas)
     ==================================== */
  .servicios-grid,
  .testimonios-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Columnas forzadas */
    gap: 3rem; /* Espacio generoso entre tarjetas */
    max-width: 100%;
  }

  .faq-grid {
    max-width: 900px; /* Ancho lectura ideal */
  }

  /* ====================================
     FOOTER DESKTOP
     ==================================== */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Columna logo más ancha */
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========================================
   DESKTOP GRANDE (1440px+)
   ======================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 4rem;
  }
}
/* Forzar que las líneas del menú sean negras siempre */
.hamburger-line {
  background-color: #000000 !important;
}

/* Opcional: Si querés que al abrirse (formando la X) se pongan de color (ej. Indigo) */
.hamburger.active .hamburger-line {
  background-color: var(--primary-color) !important;
}
/* =======================================================
   PARCHE FINAL: VISIBILIDAD MENÚ HAMBURGUESA
   (Pegar al final de css/style.css)
   ======================================================= */

/* Le damos un fondo blanco sólido solo al botón para asegurar contraste */
.hamburger {
  background-color: #FFFFFF !important;
  border-radius: 8px !important;      /* Bordes suaves */
  padding: 8px 6px !important;        /* Espacio interno para que respiren las líneas */
  width: 44px !important;             /* Ancho fijo cómodo para el dedo */
  height: 38px !important;            /* Alto fijo */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* Sombrita para que "flote" */
  
  /* Asegurar alineación interna */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-around !important;
}

/* Forzamos las líneas a negro puro */
.hamburger-line {
  background-color: #000000 !important;
  height: 2px !important;      /* Asegurar grosor */
  width: 100% !important;      /* Que ocupen el ancho disponible del padding */
  display: block !important;
}

/* Ajuste fino: al abrir el menú, mantenemos la visibilidad */
.hamburger.active {
  background-color: #F1F5F9 !important; /* Gris muy suave al estar activo */
}