/* ==========================================================================
   Assertive Connections International (ACI) - Estilos Principales
   Colores del Logotipo Integrados:
   - Azul Slate: #16283D
   - Naranja Coral: #E05E26
   - Naranja Claro/Amarillo: #E99F45
   - Celeste/Cian: #0FA2D2
   ========================================================================== */

/* 1. CONFIGURACIÓN Y VARIABLES
   ========================================================================== */
:root {
  /* Paleta Oficial ACI */
  --color-primary: #16283D;        /* Azul Slate Oscuro */
  --color-primary-light: #243E5E;  /* Azul Slate Suave */
  --color-primary-dark: #0D1927;   /* Azul Slate Profundo */
  --color-accent-coral: #E05E26;   /* Naranja Coral */
  --color-accent-yellow: #E99F45;  /* Naranja Claro / Amarillo */
  --color-accent-cyan: #0FA2D2;    /* Celeste / Cian */
  
  /* Colores de Interfaz */
  --bg-light: #F8FAFC;             /* Gris muy suave */
  --bg-white: #FFFFFF;
  --bg-dark-section: #0E1A29;      /* Fondo secciones oscuras */
  --text-dark: #1E293B;            /* Gris casi negro para legibilidad */
  --text-light: #F8FAFC;           /* Texto sobre fondos oscuros */
  --text-muted: #64748B;           /* Texto secundario en fondo claro */
  --text-muted-dark: #94A3B8;      /* Texto secundario en fondo oscuro */
  --border-color: #E2E8F0;
  
  /* Fuentes */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Efectos y Transiciones */
  --shadow-sm: 0 2px 4px rgba(22, 40, 61, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(22, 40, 61, 0.08), 0 4px 6px -2px rgba(22, 40, 61, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(22, 40, 61, 0.1), 0 10px 10px -5px rgba(22, 40, 61, 0.04);
  --shadow-accent: 0 10px 20px -3px rgba(224, 94, 38, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reset y Estilos Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Títulos y Elementos Tipográficos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-accent-coral);
  color: var(--bg-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: #c94f1c;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -3px rgba(224, 94, 38, 0.35);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--bg-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Sección de Encabezado Común */
.section-subtitle {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-cyan);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-yellow);
  padding-bottom: 4px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-title span {
  color: var(--color-accent-cyan);
}

.section-header-center {
  max-width: 700px;
  margin: 0 auto 60px auto;
  text-align: center;
}

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

.section-description-center {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* 2. BARRA DE NAVEGACIÓN (HEADER)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
  background-color: transparent;
}

/* Header con Scroll activo */
.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(22, 40, 61, 0.05);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logotipo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-img {
  width: 58px;
  height: 58px;
  transition: var(--transition-smooth);
}

.logo-text-side {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-coral);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cambio de color del logo al hacer scroll */
.main-header.scrolled .brand-title {
  color: var(--color-primary);
}

/* Menú de Navegación */
.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.85;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-cyan);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--color-accent-cyan);
}

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

/* Menú en Header Transparente de Inicio (Mismo color por consistencia) */
.main-header:not(.scrolled) .nav-link {
  color: var(--color-primary);
}
.main-header:not(.scrolled) .brand-title {
  color: var(--color-primary);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Toggle del Menú Móvil */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* 3. SECCIÓN HERO (PORTADA)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(15, 162, 210, 0.08) 0%, rgba(22, 40, 61, 0.02) 100%);
  z-index: 1;
}

/* Figuras de fondo animadas */
.hero-shapes .shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
  animation: float-shapes 12s infinite alternate ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-accent-cyan);
  top: -50px;
  right: -50px;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--color-accent-coral);
  bottom: 10%;
  left: -50px;
  animation-delay: -3s !important;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-yellow);
  top: 40%;
  right: 35%;
  opacity: 0.25 !important;
  animation-delay: -6s !important;
}

@keyframes float-shapes {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.15); }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(15, 162, 210, 0.1);
  color: var(--color-accent-cyan);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge i {
  animation: pulse-signal 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-title span {
  color: var(--color-accent-coral);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(233, 159, 69, 0.3);
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Tarjeta Principal Decorativa del Hero */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-main-card {
  width: 100%;
  max-width: 440px;
  height: 440px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-dots {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.dot-red { background-color: var(--color-accent-coral); }
.dot-yellow { background-color: var(--color-accent-yellow); }
.dot-green { background-color: var(--color-accent-cyan); }

.hero-logo-art {
  width: 65%;
  height: 65%;
  position: relative;
}

.hero-svg-glow {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(15, 162, 210, 0.3));
}

/* Estadísticas flotantes */
.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: float-slow 6s infinite ease-in-out alternate;
}

.float-1 {
  top: 15%;
  left: -40px;
}

.float-2 {
  bottom: 15%;
  right: -30px;
  animation-delay: -3s !important;
}

.icon-float {
  font-size: 1.5rem;
  color: var(--color-accent-cyan);
  background-color: rgba(15, 162, 210, 0.1);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-2 .icon-float {
  color: var(--color-accent-coral);
  background-color: rgba(224, 94, 38, 0.1);
}

.floating-stat h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.floating-stat p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* 4. BARRA DE ESTADÍSTICAS
   ========================================================================== */
.stats-section {
  background-color: var(--bg-white);
  padding: 40px 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 5. SECCIÓN QUIÉNES SOMOS (NOSOTROS)
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.about-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

/* Ilustración / Tarjetas Nosotros */
.about-images {
  position: relative;
  height: 480px;
  width: 100%;
}

.about-image-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-main {
  width: 80%;
  height: 85%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: absolute;
  top: 0;
  left: 0;
}

.card-overlay {
  width: 60%;
  height: 55%;
  background: linear-gradient(135deg, var(--color-accent-coral) 0%, var(--color-accent-yellow) 100%);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 4px solid var(--bg-white);
}

.about-img-placeholder, .about-img-placeholder-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.placeholder-big-icon {
  font-size: 5rem;
  opacity: 0.3;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.placeholder-small-icon {
  font-size: 3.5rem;
  opacity: 0.4;
  margin-bottom: 5px;
}

/* Contenido de Nosotros */
.about-text-primary {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.about-text-secondary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Cuadrícula de Valores */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-icon {
  font-size: 1.3rem;
  color: var(--color-accent-cyan);
  background-color: rgba(15, 162, 210, 0.08);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item:nth-child(2) .value-icon {
  color: var(--color-accent-yellow);
  background-color: rgba(233, 159, 69, 0.08);
}

.value-item:nth-child(3) .value-icon {
  color: var(--color-accent-coral);
  background-color: rgba(224, 94, 38, 0.08);
}

.value-item:nth-child(4) .value-icon {
  color: var(--color-primary);
  background-color: rgba(22, 40, 61, 0.08);
}

.value-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 6. SECCIÓN SERVICIOS
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 40, 61, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 162, 210, 0.2);
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(22, 40, 61, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-icon {
  font-size: 1.6rem;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--color-accent-coral);
  color: var(--bg-white);
  box-shadow: 0 8px 16px rgba(224, 94, 38, 0.2);
}

/* Asignar colores alternativos a los iconos para mayor dinamismo */
.service-card:nth-child(2):hover .service-icon-wrapper {
  background-color: var(--color-accent-cyan);
  box-shadow: 0 8px 16px rgba(15, 162, 210, 0.2);
}
.service-card:nth-child(4):hover .service-icon-wrapper {
  background-color: var(--color-accent-yellow);
  box-shadow: 0 8px 16px rgba(233, 159, 69, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.service-features li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li i {
  color: var(--color-accent-cyan);
  font-size: 0.95rem;
}

/* 7. SECCIÓN BANNER CTA (POR QUÉ ELEGIRNOS)
   ========================================================================== */
.cta-banner-section {
  padding: 100px 0;
  background-color: var(--color-primary);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 80%, rgba(224, 94, 38, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.cta-banner-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.cta-banner-content h2 {
  color: var(--text-light);
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.cta-banner-content p {
  color: var(--text-muted-dark);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 650px;
}

.cta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.cta-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
}

.cta-list-item i {
  color: var(--color-accent-yellow);
  font-size: 1.15rem;
}

.cta-banner-btn {
  background-color: var(--color-accent-cyan);
  box-shadow: 0 8px 20px rgba(15, 162, 210, 0.25);
}

.cta-banner-btn:hover {
  background-color: #0d8eb8;
  box-shadow: 0 12px 24px rgba(15, 162, 210, 0.4);
}

/* Insignia Circular Animada */
.cta-banner-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.circular-progress-badge {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    var(--color-accent-cyan) 0% 40%, 
    var(--color-accent-yellow) 40% 65%, 
    var(--color-accent-coral) 65% 100%
  );
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: rotate-badge 30s linear infinite;
}

@keyframes rotate-badge {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.badge-inner {
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: counter-rotate-badge 30s linear infinite;
}

@keyframes counter-rotate-badge {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.badge-number {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent-yellow);
  font-weight: 700;
  margin-top: 4px;
}

/* 8. SECCIÓN CONTACTO Y UBICACIÓN
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.contact-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: flex-start;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* Lista de Enlaces e info */
.info-links-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.info-link-item {
  display: flex;
  gap: 16px;
}

.info-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: rgba(22, 40, 61, 0.05);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.info-link-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-link-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-link {
  font-weight: 500;
}

.contact-link:hover {
  color: var(--color-accent-coral);
}

/* Mapa */
.map-wrapper {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  line-height: 0;
}

/* Formulario */
.contact-form-wrapper {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 40px 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-wrapper p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.textarea-icon {
  top: 20px;
  transform: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 4px rgba(15, 162, 210, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
  color: var(--color-accent-cyan);
}

/* Mensajes de Error */
.error-msg {
  font-size: 0.75rem;
  color: #DC2626;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #DC2626;
}

.form-group.invalid .input-icon {
  color: #DC2626;
}

/* Estado del formulario */
.form-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.form-status.error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

/* 9. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
  background-color: var(--color-primary-dark);
  color: var(--text-light);
  padding-top: 80px;
  border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

/* Marca en Footer */
.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 58px;
  height: 58px;
}

.footer-brand-text h4 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.footer-brand-text span {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-coral);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand-description {
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Columnas de Enlaces */
.footer-top h3 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.footer-top h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent-cyan);
}

.footer-top ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-top ul li {
  font-size: 0.85rem;
}

.footer-top ul li a {
  color: var(--text-muted-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-top ul li a:hover {
  color: var(--color-accent-cyan);
  transform: translateX(4px);
}

.footer-top ul li a i {
  font-size: 0.7rem;
  transition: var(--transition-smooth);
}

/* Contacto y Redes */
.footer-contact p {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact p i {
  color: var(--color-accent-yellow);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.social-icons a:hover {
  background-color: var(--color-accent-coral);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(224, 94, 38, 0.2);
}

/* Footer Barra Inferior */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  background-color: var(--color-primary-dark);
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* 10. MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */

/* Pantallas grandes y portátiles (1024px) */
@media (max-width: 1024px) {
  .hero-container {
    gap: 30px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .about-container {
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .btn-nav, .nav-cta {
    display: none; /* Ocultar CTA de nav para dar espacio */
  }
  
  /* Menú Móvil */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 30px rgba(22, 40, 61, 0.15);
    padding: 100px 40px 40px 40px;
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    z-index: 999;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.15rem;
  }
  
  /* Animación del Hamburguesa */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-badge {
    margin: 0 auto 20px auto;
  }
  
  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    margin-top: 40px;
  }
  
  /* Nosotros */
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-images {
    height: 380px;
  }
  
  /* CTA Banner */
  .cta-banner-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .cta-banner-content p {
    margin-right: auto;
    margin-left: auto;
  }
  
  .cta-list {
    align-items: center;
  }
  
  /* Contacto */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Móviles (480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.35rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-main-card {
    height: 320px;
  }
  
  .floating-stat {
    display: none; /* Ocultar flotantes en móviles pequeños para evitar desbordes */
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .about-images {
    height: 280px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-form-wrapper {
    padding: 30px 20px;
  }
}
