/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
  --bg-base: #090e17;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --border: #1f2937;
  --border-light: #374151;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --yellow: #eab308;
  --green: #22c55e;

  --gradient-text: linear-gradient(90deg, #06b6d4, #a855f7);
  --gradient-btn: linear-gradient(90deg, #06b6d4, #6366f1);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  /* Fondo Premium: Grid sutil + Luces ambientales Aurora */
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

.container { width: min(1280px, 95%); margin: 0 auto; }

/* ============================================
   UTILIDADES
   ============================================ */
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--text-muted); font-size: 0.95rem; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(9, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 1px solid var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; }
.logo-subtitle { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.5px; }

.nav { display: flex; gap: 8px; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-header {
  background: var(--gradient-btn);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-header:hover { opacity: 0.9; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

/* ============================================
   HERO
   ============================================ */
.hero { padding: 80px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.badge .dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-glow-yellow 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-glow-yellow {
  0% { box-shadow: 0 0 4px var(--yellow), 0 0 8px var(--yellow); transform: scale(0.9); opacity: 0.8; }
  100% { box-shadow: 0 0 6px #fff, 0 0 12px var(--yellow), 0 0 20px var(--yellow), 0 0 30px rgba(234,179,8,0.6); transform: scale(1.15); opacity: 1; }
}

.badge-yellow { color: var(--yellow); border-color: rgba(234,179,8,0.3); background: rgba(234,179,8,0.1); }
.badge-green { color: var(--green); border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); }
.badge-cyan { color: var(--cyan); border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.1); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}
.hero-list-item i { color: var(--cyan); flex-shrink: 0; }

.hero-actions { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--gradient-btn); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-light); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }

/* Franja de Estadísticas (Social Proof) */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.05em;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.1);
}

/* ============================================
   SECCIONES COMUNES
   ============================================ */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title-center { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.section-title-center h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-title-center p { margin: 0 auto; }

/* ============================================
   QUIÉNES SOMOS
   ============================================ */
.section-quienes { border-top: none; }
.quienes-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}
.quienes-left { display: flex; flex-direction: column; }
.tabs-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}
.tabs-nav::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--cyan); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}
.tab-content { display: none; flex-grow: 1; }
.tab-content.active { display: block; animation: fadeInTab 0.4s ease; }

@keyframes fadeInTab {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tag-mini {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-purple { background: rgba(168,85,247,0.15); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
.tag-cyan { background: rgba(6,182,212,0.15); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.tag-green { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }

.content-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: -0.02em;
}
.content-header h3 i { color: var(--text-muted); font-size: 1.1rem; }

.quote-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.check-item {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.check-item i { color: var(--cyan); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.filosofia-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.alert-box {
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-box i { color: var(--purple); font-size: 1.2rem; margin-top: 2px; }
.alert-box p { font-size: 0.85rem; color: var(--text-main); margin: 0; }

/* Valor Agregado */
.valor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.tag-valor {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}
.valor-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.valor-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

.valor-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.valor-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.v-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.icon-purple { background: rgba(168,85,247,0.1); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }
.icon-cyan { background: rgba(6,182,212,0.1); color: var(--cyan); border: 1px solid rgba(6,182,212,0.2); }
.icon-green { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

.v-content h4 { font-size: 0.9rem; margin-bottom: 4px; }
.v-content p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; margin: 0; }

.valor-quote {
  margin-top: auto;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ============================================
   METODOLOGÍAS
   ============================================ */
.certifications-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}
.cert-header h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 12px 0; letter-spacing: -0.02em; }
.check-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,0.1);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.cert-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px 24px 28px;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cert-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(6,182,212,0.3);
}
.cert-item h4 { font-size: 1.05rem; margin-bottom: 12px; color: var(--text-main); font-weight: 600; }
.cert-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.cert-item p strong { color: var(--text-main); font-weight: 600; }
.cert-item::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

/* ============================================
   SERVICIOS
   ============================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}
.tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tab:hover { background: rgba(255,255,255,0.05); color: #fff; }
.tab.active { background: linear-gradient(90deg, #5b5cf0, #7c4dff); color: #fff; border-color: transparent; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Tarjetas de Servicio Premium con Efecto Glow */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

/* Borde iluminado (Glow) al hacer hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(6,182,212,0.8), rgba(168,85,247,0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.1);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.is-hidden { display: none; }

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}
.s-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.s-tag { 
  font-size: 0.65rem; 
  color: var(--text-muted); 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  text-align: right; 
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.s-desc { font-size: 0.85rem; color: var(--cyan); margin-bottom: 16px; }
.s-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; }

.s-capacities { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 24px; }
.s-capacities h4, .s-techs h4 {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.s-capacities ul { list-style: none; display: grid; gap: 8px; }
.s-capacities li {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.s-capacities li i { font-size: 0.7rem; margin-top: 4px; flex-shrink: 0; }

.s-techs { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}
.s-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}
.btn-solicitar {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-solicitar:hover { background: var(--primary-hover); }

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.c-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.c-email-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(6,182,212,0.05);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.c-icon { font-size: 1.5rem; color: var(--cyan); flex-shrink: 0; }
.c-email-content { display: flex; flex-direction: column; min-width: 0; }
.c-label { 
  font-size: 0.65rem; 
  font-weight: 700; 
  color: var(--text-muted); 
  letter-spacing: 1px; 
  font-family: 'Courier New', Courier, monospace;
}
.c-link { font-size: 1.1rem; font-weight: 700; color: var(--cyan); text-decoration: none; margin-top: 4px; word-break: break-word; }
.c-link:hover { text-decoration: underline; }
.c-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

.c-badges { display: flex; flex-direction: column; gap: 12px; }
.c-badge-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.c-badge-item i { font-size: 1.1rem; flex-shrink: 0; }

.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group.full-width { grid-column: span 2; }
.input-group label { font-size: 0.75rem; font-weight: 600; color: var(--text-main); }
.input-group input, .input-group select, .input-group textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

/* Efecto Focus Premium */
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.03);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), inset 0 0 10px rgba(6, 182, 212, 0.05);
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.input-group select option { background-color: #111827; color: #f3f4f6; }
.input-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--primary-hover); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-note { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* Mensaje inline del formulario */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
}
.form-message.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #05080f;
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-title { font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.footer-brand .quote { font-style: italic; max-width: 350px; }
.footer-links h4, .footer-contact h4 { font-size: 0.9rem; margin-bottom: 16px; color: var(--text-main); }
.footer-links a, .footer-contact p, .footer-contact a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-contact-link i { width: 16px; text-align: center; font-size: 1.1rem; color: var(--cyan); }
a.footer-contact-link:hover, a.footer-contact-link:hover i { color: var(--text-main); }

/* ============================================
   TERMINAL HERO
   ============================================ */
.hero-terminal {
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6,182,212,0.5);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transition: border-color 0.4s ease;
  /* Animación de respiración Premium */
  animation: terminalGlow 4s infinite ease-in-out;
}

@keyframes terminalGlow {
  0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.3); }
  50% { box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 50px rgba(6,182,212,0.25); border-color: rgba(6,182,212,0.6); }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; transition: transform 0.2s, box-shadow 0.2s; }
.hero-terminal:hover .terminal-dot { transform: scale(1.2); box-shadow: 0 0 10px currentColor; }
.dot-red { background: #ff5f56; color: #ff5f56; }
.dot-yellow { background: #ffbd2e; color: #ffbd2e; }
.dot-green { background: #27c93f; color: #27c93f; }
.terminal-title { flex: 1; text-align: center; color: var(--text-muted); font-size: 0.8rem; font-family: monospace; }

.terminal-content {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: left;
  min-height: 200px;
  position: relative;
  z-index: 1;
}
.code-line { color: var(--text-muted); margin-bottom: 0.4rem; animation: fadeInLine 0.5s ease-out backwards; }
.code-keyword { color: #ff79c6; }
.code-function { color: var(--cyan); }
.code-string { color: #50fa7b; }
.code-comment { color: #6272a4; }
.code-number { color: var(--purple); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--cyan);
  animation: blink 1s infinite;
  margin-left: 4px;
  vertical-align: middle;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   WHATSAPP FLOTANTE PREMIUM (Píldora Expandible)
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #FFF;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
  width: 60px;
  overflow: hidden;
}

.whatsapp-float i {
  font-size: 28px;
  transition: transform 0.3s;
}

/* Texto que se revela */
.whatsapp-float::after {
  content: "Hablemos";
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  width: 150px;
  background: linear-gradient(135deg, #2ee176, #25d366);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover i {
  transform: rotate(15deg) scale(1.1);
}

.whatsapp-float:hover::after {
  opacity: 1;
  width: 70px;
  margin-left: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cert-header { flex-direction: column; }
  .quienes-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .btn-header { display: none; }
  .menu-toggle { display: block; }
  .nav.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #090e17;
    padding: 20px;
    border-bottom: 1px solid #1f2937;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    gap: 4px;
  }
  .hero-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .certifications-wrapper { padding: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .input-group.full-width { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-item { padding: 20px 16px 20px 24px; }
  .footer { padding-bottom: 90px; }
  
  .whatsapp-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
  .whatsapp-float:hover { width: 56px; } /* En móvil no se expande */
  .whatsapp-float:hover::after { display: none; }
}

/* ============================================
   ACCESIBILIDAD: REDUCIR MOVIMIENTO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .badge .dot { animation: none; box-shadow: 0 0 8px var(--yellow); }
  .whatsapp-float { animation: none; }
  .hero-terminal { animation: none; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(6,182,212,0.2); }
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}