/* ==============================
   Variables Globales & Design System
   ============================== */
:root {
  /* Paleta Corporativa Moderna */
  --primary: #059669; /* Emerald 600 */
  --primary-hover: #047857; /* Emerald 700 */
  --primary-light: #10b981; /* Emerald 500 */
  
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc; /* Slate 50 */
  --bg-emerald-lightest: #ecfdf5; /* Emerald 50 - Para fondos suaves de íconos */
  
  --text-main: #0f172a; /* Slate 900 - Títulos casi negros */
  --text-body: #475569; /* Slate 600 - Lectura cómoda */
  
  --border-color: #e2e8f0; /* Slate 200 */
  
  /* Sombras Premium (Elevación estilo App) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(16, 185, 129, 0.15); /* Sombra tintada en verde */
  --shadow-hover: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
  
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ==============================
   Reseteo y Base
   ============================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }

/* Utilidades de Diseño */
.container { width: 100%; max-width: 82rem; margin: 0 auto; padding: 0 1.5rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.text-center { text-align: center; }
.text-justify { text-align: justify; hyphens: auto; }
.align-natural { text-align: left; hyphens: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }

/* ==============================
   Tipografía Avanzada
   ============================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text; /* Agregas la propiedad estándar para quitar la advertencia */
  -webkit-text-fill-color: transparent;
  color: transparent; /* Es buena práctica agregar también el color estándar */
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1.6;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.text-body { color: var(--text-body); font-size: 1rem; }
.leading-relaxed { line-height: 1.75; }

/* ==============================
   Componentes UI Premium
   ============================== */
/* Etiquetas (Badges & Tags) */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--bg-emerald-lightest);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.875rem;
}
.tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.tag-dark { color: #34d399; } /* Acento verde brillante para fondos oscuros */
.dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; }
.pulse { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.number-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  background-color: var(--bg-emerald-lightest);
  color: var(--primary);
  font-size: 1.25rem; font-weight: 800;
  border-radius: 12px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.23);
}
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 1rem; }

/* Contenedores de Íconos (Squirculos Modernos) */
.icon-wrapper {
  display: inline-flex; justify-content: center; align-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 16px;
}

/* ==============================
   Tarjetas Estilizadas (Cards)
   ============================== */
.premium-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.card-hover { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.3);
}
.bento-box {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Tarjetas Oscuras (Sección Privacidad) */
.dark-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: background 0.3s ease;
}
.dark-card:hover { background: rgba(255,255,255,0.05); }
.highlight-dark {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(2, 44, 34, 0.4) 100%);
}

/* ==============================
   Diseño de Secciones y Layouts
   ============================== */
.section-padding { padding-top: 6rem; padding-bottom: 6rem; }
.bg-slate-50 { background-color: var(--bg-secondary); }
.bg-emerald-lightest { background-color: var(--bg-emerald-lightest); }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.text-white { color: #ffffff !important; }
.text-primary { color: var(--primary); }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-emerald-50 { color: #ecfdf5; }
.text-emerald-100\/80 { color: rgba(209, 250, 229, 0.8); }
.text-slate-400 { color: #94a3b8; }
.border-y { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* Split Layout Especial */
.split-layout { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.split-visual { min-height: 300px; }
/* Efecto de flotación para el ícono principal */
.floating-icon { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Header Fijo Transparente (Glass) */
.site-header {
  position: fixed; width: 100%; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.brand-group { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { height: 3.75rem; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid var(--border-color); padding-left: 0.75rem; }
.brand-title { font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
.brand-subtitle { font-size: 0.8rem; color: var(--text-body); }
.main-nav { display: none; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-body); transition: color 0.3s; }
.nav-link:hover { color: var(--primary); }
.main-content { padding-top: 5rem; }

/* Efecto de Fondo del Hero */
.hero-bg-effect {
  position: absolute;
  top: -20%; left: 50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-section {
  position: relative;
  padding: 8rem 0 6rem 0;
  overflow: hidden;
}

/* ==============================
   Media Queries (Responsive)
   ============================== */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; }
  .brand-subtitle { display: none; }
  .header-actions { display: none; }
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .split-layout { grid-template-columns: 1.2fr 0.8fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); } /* 2x2 en Tablets */
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; } /* 4 columnas en Desktop */
}

/* ==============================
   Corrección de Espaciados (Padding)
   ============================== */

/* Asignación del espacio interno (padding) de las tarjetas */
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.p-10 { padding: 2.5rem !important; }

/* Espacio extra amplio para pantallas grandes en la sección Quiénes Somos */
@media (min-width: 768px) {
  .md\:p-12 { padding: 3rem !important; }
}

/* Margen de seguridad para asegurar que ninguna tarjeta se quede sin espacio */
.premium-card, 
.dark-card {
  padding: 2rem;
}

/* Corregir el espacio superior del pie de página y secciones oscuras */
.mt-10 { margin-top: 2.5rem !important; }