/* ========================================
   KOKOMAI - CSS FRAMEWORK
   Academia Kokomai + Sitio Web Corporativo
   ======================================== */

/* ----------------------------------------
   1. VARIABLES CSS (Custom Properties)
   ---------------------------------------- */

:root {
  /* === COLORES PRINCIPALES === */
  --kokomai-blue: #0034FF;
  --kokomai-blue-dark: #0029CC;
  --kokomai-blue-light: #3366FF;

  --kokomai-green: #34C8A6;
  --kokomai-green-dark: #2BA88A;
  --kokomai-green-light: #5DD9BC;

  /* === DEGRADADOS === */
  --kokomai-gradient: linear-gradient(135deg, #34C8A6 0%, #0034FF 100%);
  --kokomai-gradient-reverse: linear-gradient(135deg, #0034FF 0%, #34C8A6 100%);
  --kokomai-gradient-horizontal: linear-gradient(90deg, #34C8A6 0%, #0034FF 100%);
  --kokomai-gradient-vertical: linear-gradient(180deg, #34C8A6 0%, #0034FF 100%);
  --kokomai-gradient-soft: linear-gradient(135deg, rgba(52, 200, 166, 0.1) 0%, rgba(0, 52, 255, 0.1) 100%);

  /* === COLORES NEUTROS === */
  --kokomai-dark: #1A1A2E;
  --kokomai-dark-secondary: #2D2D44;
  --kokomai-gray-900: #111827;
  --kokomai-gray-800: #1F2937;
  --kokomai-gray-700: #374151;
  --kokomai-gray-600: #4B5563;
  --kokomai-gray-500: #6B7280;
  --kokomai-gray-400: #9CA3AF;
  --kokomai-gray-300: #D1D5DB;
  --kokomai-gray-200: #E5E7EB;
  --kokomai-gray-100: #F3F4F6;
  --kokomai-gray-50: #F9FAFB;
  --kokomai-white: #FFFFFF;

  /* === COLORES DE ESTADO === */
  --kokomai-success: #34C8A6;
  --kokomai-success-light: #D1FAE5;
  --kokomai-warning: #F59E0B;
  --kokomai-warning-light: #FEF3C7;
  --kokomai-error: #EF4444;
  --kokomai-error-light: #FEE2E2;
  --kokomai-info: #0034FF;
  --kokomai-info-light: #DBEAFE;

  /* === TIPOGRAFIA === */
  --font-primary: 'Century Gothic', 'Poppins', 'Avant Garde', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;

  /* Tamanos de fuente */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Pesos de fuente */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Altura de linea */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* === ESPACIADO === */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* === BORDES === */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-kokomai: 0 10px 40px -10px rgba(0, 52, 255, 0.3);
  --shadow-kokomai-green: 0 10px 40px -10px rgba(52, 200, 166, 0.3);

  /* === TRANSICIONES === */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ----------------------------------------
   2. RESET Y BASE
   ---------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--kokomai-gray-800);
  background-color: var(--kokomai-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--kokomai-dark);
}

a {
  color: var(--kokomai-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--kokomai-blue-dark);
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------
   3. UTILIDADES DE LAYOUT
   ---------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* Force single column on mobile for ALL grid containers with any inline styles */
  .grid[style],
  .container .grid,
  div[style*="grid-template-columns"],
  div[style*="display: grid"],
  div[style*="1fr 1fr"],
  section .grid,
  section div[style],
  .section .grid,
  .section div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  /* Stack flex containers vertically on mobile */
  .flex[style*="gap"],
  [style*="display: flex"][style*="gap"] {
    flex-direction: column !important;
  }

  /* Ensure cards and content boxes take full width */
  .card, .feature-card, [class*="card"] {
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ----------------------------------------
   4. TIPOGRAFIA
   ---------------------------------------- */

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

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

/* Colores de texto */
.text-white { color: var(--kokomai-white); }
.text-dark { color: var(--kokomai-dark); }
.text-gray { color: var(--kokomai-gray-500); }
.text-blue { color: var(--kokomai-blue); }
.text-green { color: var(--kokomai-green); }

/* Texto con degradado */
.text-gradient {
  background: var(--kokomai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Titulos especiales */
.title-hero {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .title-hero {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .title-hero {
    font-size: var(--text-6xl);
  }
}

.title-section {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .title-section {
    font-size: var(--text-4xl);
  }
}

.subtitle {
  font-size: var(--text-lg);
  color: var(--kokomai-gray-600);
  max-width: 600px;
}

/* ----------------------------------------
   5. COMPONENTES - BOTONES
   ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-align: center;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Boton principal con degradado */
.btn-primary {
  background: var(--kokomai-gradient);
  color: var(--kokomai-white);
  box-shadow: var(--shadow-kokomai);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px -10px rgba(0, 52, 255, 0.4);
  color: var(--kokomai-white);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Boton secundario */
.btn-secondary {
  background: var(--kokomai-white);
  color: var(--kokomai-blue);
  border: 2px solid var(--kokomai-blue);
}

.btn-secondary:hover {
  background: var(--kokomai-blue);
  color: var(--kokomai-white);
}

/* Boton verde */
.btn-green {
  background: var(--kokomai-green);
  color: var(--kokomai-white);
  box-shadow: var(--shadow-kokomai-green);
}

.btn-green:hover {
  background: var(--kokomai-green-dark);
  transform: translateY(-2px);
  color: var(--kokomai-white);
}

/* Boton outline */
.btn-outline {
  background: transparent;
  color: var(--kokomai-white);
  border: 2px solid var(--kokomai-white);
}

.btn-outline:hover {
  background: var(--kokomai-white);
  color: var(--kokomai-blue);
}

/* Tamanos */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ----------------------------------------
   6. COMPONENTES - CARDS
   ---------------------------------------- */

.card {
  background: var(--kokomai-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-gradient {
  background: var(--kokomai-gradient-soft);
  border: 1px solid rgba(0, 52, 255, 0.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--kokomai-gradient);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.card-icon svg,
.card-icon img {
  width: 32px;
  height: 32px;
  color: var(--kokomai-white);
}

.card-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  color: var(--kokomai-dark);
}

.card-description {
  font-size: var(--text-base);
  color: var(--kokomai-gray-600);
  line-height: var(--leading-relaxed);
}

/* Card de servicio */
.service-card {
  text-align: center;
  padding: var(--space-8);
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

.service-card .card-icon {
  margin-left: auto;
  margin-right: auto;
  transition: transform var(--transition-normal);
}

/* Card de testimonio */
.testimonial-card {
  position: relative;
  padding-top: var(--space-8);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0;
  left: var(--space-6);
  font-size: 4rem;
  font-family: serif;
  color: var(--kokomai-green);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--kokomai-gray-700);
  margin-bottom: var(--space-4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--kokomai-gradient);
}

.testimonial-name {
  font-weight: var(--font-semibold);
  color: var(--kokomai-dark);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--kokomai-gray-500);
}

/* ----------------------------------------
   7. COMPONENTES - HEADER/NAVEGACION
   ---------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: var(--kokomai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

.nav-link {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--kokomai-gray-700);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kokomai-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--kokomai-blue);
}

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

/* Dropdown Menu - Nosotros */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  /* Reset estilos de button */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  /* Estilos iguales a .nav-link */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--kokomai-gray-700);
  transition: color var(--transition-fast);
  position: relative;
}

/* Linea azul en hover (igual que nav-link) */
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kokomai-gradient);
  transition: width var(--transition-normal);
}

.nav-dropdown-toggle:hover {
  color: var(--kokomai-blue);
}

.nav-dropdown-toggle:hover::after {
  width: 100%;
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

/* El menu dropdown - OCULTO por defecto */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 8px;
  padding-top: 20px;
  z-index: 9999;
  flex-direction: column;
}

/* Mostrar dropdown cuando tiene clase .active (controlado por JS) */
.nav-dropdown.active .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Items del dropdown */
.nav-dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #374151;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

/* Linea azul en items del dropdown */
.nav-dropdown-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  width: 0;
  background: var(--kokomai-gradient);
  transition: width var(--transition-normal);
}

.nav-dropdown-item:hover {
  background: rgba(0, 52, 255, 0.05);
  color: #0034FF;
}

.nav-dropdown-item:hover::after {
  width: calc(100% - 32px);
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: block;
  }
}

/* Menu movil */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--kokomai-dark);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--kokomai-white);
  padding: 24px var(--space-6) var(--space-6);
  z-index: 9998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-bottom: 16px;
}

.mobile-menu-close svg {
  width: 32px;
  height: 32px;
  stroke: var(--kokomai-dark);
}

/* Hide header CTA button on mobile */
@media (max-width: 1023px) {
  .header-cta {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav-link {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--kokomai-dark);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--kokomai-gray-200);
}

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

/* ----------------------------------------
   8. COMPONENTES - HERO
   ---------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 52, 255, 0.85) 0%, rgba(52, 200, 166, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--kokomai-white);
  max-width: 700px;
}

.hero-title {
  color: var(--kokomai-white);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ----------------------------------------
   9. COMPONENTES - STATS/CIFRAS
   ---------------------------------------- */

.stats-section {
  background: var(--kokomai-gray-50);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  background: var(--kokomai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .stat-number {
    font-size: var(--text-5xl);
  }
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--kokomai-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   10. COMPONENTES - FEATURED CARDS
   ---------------------------------------- */

.featured-cards {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .featured-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  background: var(--kokomai-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: var(--kokomai-green);
  box-shadow: var(--shadow-2xl);
}

.featured-card-icon {
  width: 80px;
  height: 80px;
  background: var(--kokomai-gradient);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  transition: transform var(--transition-normal);
}

.featured-card:hover .featured-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.featured-card-icon svg {
  width: 40px;
  height: 40px;
  color: var(--kokomai-white);
}

.featured-card-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--kokomai-dark);
  margin-bottom: var(--space-3);
}

.featured-card-description {
  color: var(--kokomai-gray-600);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* ----------------------------------------
   11. COMPONENTES - AWARDS/SELLOS
   ---------------------------------------- */

.awards-section {
  background: var(--kokomai-gradient-soft);
  overflow: hidden;
}

.awards-carousel {
  display: flex;
  gap: var(--space-8);
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.award-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--kokomai-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.award-icon {
  width: 48px;
  height: 48px;
  background: var(--kokomai-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon svg {
  width: 24px;
  height: 24px;
  color: var(--kokomai-white);
}

.award-text {
  font-weight: var(--font-semibold);
  color: var(--kokomai-dark);
  white-space: nowrap;
}

/* ----------------------------------------
   12. COMPONENTES - FOOTER
   ---------------------------------------- */

.footer {
  background: var(--kokomai-dark);
  color: var(--kokomai-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer-logo {
  height: 60px;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-lg);
  opacity: 0.8;
  margin-bottom: var(--space-4);
}

.footer-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--kokomai-white);
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--kokomai-white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--kokomai-green);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--kokomai-white);
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--kokomai-green);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

/* ----------------------------------------
   13. COMPONENTES - FORMULARIOS
   ---------------------------------------- */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--kokomai-gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--kokomai-gray-800);
  background: var(--kokomai-white);
  border: 2px solid var(--kokomai-gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--kokomai-blue);
  box-shadow: 0 0 0 3px rgba(0, 52, 255, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-error {
  color: var(--kokomai-error);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* ----------------------------------------
   14. COMPONENTES - PAGE HEADER
   ---------------------------------------- */

.page-header {
  background: var(--kokomai-gradient);
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-16);
  text-align: center;
  color: var(--kokomai-white);
}

.page-header-title {
  font-size: var(--text-4xl);
  color: var(--kokomai-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .page-header-title {
    font-size: var(--text-5xl);
  }
}

.page-header-subtitle {
  font-size: var(--text-lg);
  color: white;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--kokomai-white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------
   15. COMPONENTES - SERVICES GRID
   ---------------------------------------- */

.services-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------
   16. COMPONENTES - VALUES
   ---------------------------------------- */

.values-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-item {
  text-align: center;
  padding: var(--space-6);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: var(--kokomai-gradient-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--kokomai-blue);
}

.value-title {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  color: var(--kokomai-dark);
  margin-bottom: var(--space-2);
}

/* ----------------------------------------
   17. COMPONENTES - MAP
   ---------------------------------------- */

.map-section {
  position: relative;
}

.map-container {
  background: var(--kokomai-gray-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--kokomai-gray-500);
}

.city-pins {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.city-pin {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--kokomai-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.city-pin svg {
  width: 20px;
  height: 20px;
  color: var(--kokomai-green);
}

.city-pin.active {
  background: var(--kokomai-gradient);
  color: var(--kokomai-white);
}

.city-pin.active svg {
  color: var(--kokomai-white);
}

/* ----------------------------------------
   18. UTILIDADES ADICIONALES
   ---------------------------------------- */

/* Backgrounds */
.bg-white { background-color: var(--kokomai-white); }
.bg-gray { background-color: var(--kokomai-gray-50); }
.bg-dark { background-color: var(--kokomai-dark); }
.bg-gradient { background: var(--kokomai-gradient); }

/* Margenes */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }

/* Padding */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

/* Ocultar/Mostrar */
.hidden { display: none; }
.block { display: block; }

@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}

@media (min-width: 768px) {
  .hidden-desktop { display: none; }
}

/* Width utilities */
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ----------------------------------------
   19. ANIMACIONES
   ---------------------------------------- */

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* AOS-like animations */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-in"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/* ----------------------------------------
   20. RESPONSIVE FINAL
   ---------------------------------------- */

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(80px + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .title-hero {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  flex-shrink: 0;
  fill: white;
}

.whatsapp-float-text {
  display: inline;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    left: 16px;
    padding: 10px 16px;
    font-size: var(--text-xs);
  }

  .whatsapp-float svg {
    width: 20px;
    height: 20px;
  }
}

/* ----------------------------------------
   HERO WITH IMAGE
   ---------------------------------------- */
.hero-with-image .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-with-image .hero-content {
  max-width: 100%;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 968px) {
  .hero-with-image .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-with-image .hero-cta {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto var(--space-8);
  }

  .hero-image img {
    max-height: 350px;
  }
}

/* ----------------------------------------
   GALLERY SECTION
   ---------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 968px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 200px;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-large {
    grid-column: span 1;
  }
}

/* ----------------------------------------
   PAGE HEADER WITH BACKGROUND IMAGE
   ---------------------------------------- */
.page-header-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ----------------------------------------
   DECORATIVE ACCENT (Subtle Image + Text)
   ---------------------------------------- */
.decorative-accent {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

.decorative-accent-content {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--kokomai-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--kokomai-gray-100);
}

.decorative-accent-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--kokomai-green);
}

.decorative-accent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decorative-accent-text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--kokomai-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .decorative-accent-content {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
  }

  .decorative-accent-image {
    width: 80px;
    height: 80px;
  }
}

/* ----------------------------------------
   FEATURE BLOCKS (Image + Text alternating)
   ---------------------------------------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.feature-block-reverse {
  direction: rtl;
}

.feature-block-reverse > * {
  direction: ltr;
}

.feature-block-image {
  position: relative;
}

.feature-block-image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-float {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 70px;
  height: 70px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--kokomai-green);
  z-index: 10;
}

.feature-icon-float-right {
  left: auto;
  right: -20px;
}

.feature-block-content {
  padding: var(--space-4);
}

.feature-block-title {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--kokomai-dark);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.feature-block-subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--kokomai-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.feature-block-text {
  font-size: var(--text-base);
  color: var(--kokomai-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.btn-outline-dark {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--kokomai-dark);
  color: var(--kokomai-dark);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background: var(--kokomai-dark);
  color: white;
}

@media (max-width: 768px) {
  .feature-block,
  .feature-block-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    direction: ltr;
  }

  .feature-block-title {
    font-size: var(--text-3xl);
  }

  .feature-icon-float {
    top: -15px;
    left: -10px;
    width: 55px;
    height: 55px;
  }

  .feature-icon-float-right {
    left: -10px;
    right: auto;
  }
}

/* ----------------------------------------
   MASONRY GALLERY
   ---------------------------------------- */

.masonry-gallery {
  column-count: 3;
  column-gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* ----------------------------------------
   WHATSAPP POPUP
   ---------------------------------------- */

.whatsapp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-4);
}

.whatsapp-popup-overlay.active {
  display: flex;
}

.whatsapp-popup {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.whatsapp-popup-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--kokomai-dark);
  margin-bottom: var(--space-2);
}

.whatsapp-popup-subtitle {
  font-size: var(--text-sm);
  color: var(--kokomai-gray-500);
  margin-bottom: var(--space-6);
}

.whatsapp-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.whatsapp-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-popup-btn-ags {
  background: #25D366;
  color: white;
}

.whatsapp-popup-btn-ags:hover {
  background: #1da851;
}

.whatsapp-popup-btn-cdmx {
  background: var(--kokomai-gradient);
  color: white;
}

.whatsapp-popup-btn-cdmx:hover {
  opacity: 0.9;
}

.whatsapp-popup-close {
  margin-top: var(--space-4);
  background: none;
  border: none;
  color: var(--kokomai-gray-500);
  cursor: pointer;
  font-size: var(--text-sm);
}

.whatsapp-popup-close:hover {
  color: var(--kokomai-dark);
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn,
  .whatsapp-float,
  .mobile-menu {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
