/* ==========================================================================
   SISTEMA DE ESTILOS CSS - VERSIÓN MINIMALISTA & MODERNA (CLICTIVA)
   ==========================================================================
   Rama: minimal-design
   Paleta: Azul Clictiva (#0068FF, #0053cc), Tinta (#101828), Blanco (#ffffff)
   Filosofía: Máxima claridad conceptual, velocidad de lectura y conversión.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES TIPOGRÁFICAS Y PALETA DE COLORES (:root)
   Mapea a: Todo el documento HTML y el elemento <body>
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa Clictiva */
  --blue: #0068FF;
  /* Azul eléctrico principal para llamadas a la acción */
  --blue-dark: #0053cc;
  /* Azul profundo para hover y contrastes */
  --blue-light: #edf5ff;
  /* Tinte azul suave para fondos y badges */
  --blue-border: #d0e2ff;
  /* Borde azul tenue */

  --ink: #101828;
  /* Tinta/Negro moderno para títulos principales */
  --gray: #344054;
  /* Gris grafito de alto contraste para párrafos */
  --muted: #667085;
  /* Gris sutil para metadatos y notas */
  --white: #ffffff;
  /* Blanco puro de fondo */

  --line: #eaecf0;
  /* Líneas divisorias y bordes minimalistas */
  --soft-bg: #f8fafc;
  /* Fondo suave para alternancia de secciones */

  /* Geometría y Elevación */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 12px 36px rgba(16, 24, 40, 0.07);
  --shadow-hover: 0 20px 45px rgba(0, 104, 255, 0.12);
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE (html, body, layout)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  /* Base 16px para accesibilidad */
  scroll-behavior: smooth;
  /* Scroll fluido */
}

body {
  font-family: "Barlow", Arial, sans-serif;
  color: var(--gray);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Contenedor centralizado */
.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

/* Espaciados verticales limpios */
.section {
  padding: 100px 0;
}

.section-soft {
  background-color: var(--soft-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Encabezados de sección reutilizables */
.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-top: 10px;
  margin-bottom: 14px;
}

.section-header h2 strong {
  font-weight: 700;
  color: var(--ink);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Eyebrows / Etiquetas superiores */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow.white {
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow.light {
  color: #dbeafe;
  margin-bottom: 12px;
  display: inline-block;
}

/* ==========================================================================
   3. CABECERA FLOTANTE MINIMALISTA (.site-header)
   Mapea a: <header class="site-header" id="header"> en index.html
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Cabecera al scrollear: fondo blanco pulcro con efecto glassmorphism */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand .logo-img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
}

.nav a:hover {
  color: var(--blue);
}

.nav a.active {
  color: var(--blue);
  font-weight: 600;
}

/* Botón CTA del menú */
.nav-cta {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background-color: var(--blue);
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--blue-dark);
  transform: translateY(-1px);
}

/* Botón móvil hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
}

/* ==========================================================================
   4. SECCIÓN HERO LUMINOSA, CREATIVA Y ULTRA-DINÁMICA (.hero)
   Mapea a: <section class="hero" id="inicio"> en index.html
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 40px;
  background-color: #ffffff;
  overflow: hidden;
}

/* Atmósfera de Luz Aurora Mesh & Blueprint sutil */
.hero-aurora-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 104, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 104, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 80%);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: floatAurora 18s ease-in-out infinite alternate;
}

.aurora-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #38bdf8 0%, #0068ff 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.28;
}

.aurora-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #818cf8 0%, #4f46e5 70%);
  bottom: -60px;
  left: 10%;
  opacity: 0.18;
  animation-duration: 22s;
}

.aurora-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #38bdf8 0%, #06b6d4 70%);
  top: 25%;
  right: 8%;
  opacity: 0.20;
  animation-duration: 25s;
}

@keyframes floatAurora {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -25px) scale(1.08);
  }

  100% {
    transform: translate(-25px, 20px) scale(0.95);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

/* Badge con pulso de estado y micro-brillo */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(237, 245, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 104, 255, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 104, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.badge-sparkle {
  color: #f59e0b;
  font-size: 0.8125rem;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 104, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

/* Titular Principal H1 con Rotador Dinámico */
.hero-title {
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 1100px;
}

.hero-title em {
  font-style: normal;
  font-weight: 800;
  color: #005ce6;
  display: inline-block;
  text-shadow: 0 4px 12px rgba(0, 104, 255, 0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-title em.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-title em.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Subtítulo del Hero */
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--gray);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-subtitle strong {
  color: var(--ink);
  font-weight: 600;
}

/* Botones de acción */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-glow {
  background: linear-gradient(135deg, #0068FF 0%, #0053cc 100%);
  color: white;
  box-shadow: 0 10px 28px rgba(0, 104, 255, 0.32);
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-glow:hover {
  box-shadow: 0 14px 34px rgba(0, 104, 255, 0.42);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid rgba(208, 226, 255, 0.8);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.btn-glass:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.98);
}

/* Barra de métricas enriquecida con Glassmorphism y Badges Satelitales */
.hero-metrics-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 820px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(234, 236, 240, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.metric-card:hover .metric-icon {
  transform: scale(1.08);
  background: var(--blue);
  color: white;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-card strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.metric-card span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Badges Flotantes Satelitales (Flanquean la barra de métricas) */
.floating-kpi {
  position: absolute;
  top: -140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(208, 226, 255, 0.9);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 26px rgba(0, 104, 255, 0.12);
  pointer-events: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 3;
}

.floating-kpi:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 104, 255, 0.18);
}

.kpi-left {
  left: -50px;
  animation: floatWidget1 5s ease-in-out infinite alternate;
}

.kpi-right {
  right: -50px;
  animation: floatWidget2 6s ease-in-out infinite alternate;
}

@keyframes floatWidget1 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes floatWidget2 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(8px);
  }
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.kpi-icon.video-icon {
  background: #eff6ff;
  color: var(--blue);
}

.kpi-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.kpi-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   5. SECCIÓN SOLUCIONES CLARAS (.solutions-grid)
   Mapea a: <section class="section section-soft" id="soluciones">
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-hover);
}

/* Tarjeta destacada con acento azul sutil */
.solution-card.featured {
  border-color: #bcd7ff;
  box-shadow: var(--shadow-card);
}

.card-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 20px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.solution-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.9688rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Lista de entregables con íconos de check */
.solution-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  margin-top: auto;
}

.solution-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9063rem;
  color: var(--gray);
  line-height: 1.45;
}

.solution-deliverables li i {
  color: var(--blue);
  margin-top: 3px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Badges de etiquetas en la base de la tarjeta */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-tags span {
  padding: 5px 11px;
  background-color: var(--soft-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius-full);
  font-size: 0.7813rem;
  font-weight: 600;
}

/* ==========================================================================
   5.1. SECCIÓN SERVICIOS DETALLADOS CON FILTROS (.service-filters, .services-grid, .service-card)
   Mapea a: <section class="services section" id="servicios"> en servicios.html
   ========================================================================== */

.services-page-section {
  padding-top: 130px;
}

.service-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 36px 0 32px;
}

.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--gray);
  border-radius: var(--radius-full);
  padding: 9px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.filter:hover {
  border-color: var(--blue-border);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

.filter.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.25);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  background: white;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-hover);
}

.service-card.hidden {
  display: none !important;
}

.service-index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: white;
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.1875rem;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9063rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1 1 auto;
}

.service-link {
  position: static;
  margin-top: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
}

.service-card.filter-animate {
  animation: fadeInCard 0.35s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner CTA de la página de servicios (Azul Corporativo Clictiva) */
.services-cta-banner {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 104, 255, 0.28);
}

.services-cta-banner h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  color: white;
  font-weight: 700;
}

.services-cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.services-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.services-cta-banner .btn-white {
  background: white;
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.services-cta-banner .btn-white:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.services-cta-banner .btn-glass-white {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.services-cta-banner .btn-glass-white:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. SECCIÓN DIFERENCIALES / POR QUÉ CLICTIVA (.values-grid)
   Mapea a: <section class="section" id="diferenciales">
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: white;
  transition: border-color 0.2s ease;
}

.value-card:hover {
  border-color: #cbd5e1;
}

.value-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9688rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ==========================================================================
   7. SECCIÓN METODOLOGÍA ÁGIL (.steps-grid)
   Mapea a: <section class="section section-soft" id="metodologia">
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.9063rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   8. SECCIÓN PREGUNTAS FRECUENTES (.faq-list)
   Mapea a: <section class="section" id="faq">
   ========================================================================== */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-subtle);
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary:after {
  content: "−";
}

.faq-list p {
  margin-top: 14px;
  font-size: 0.9688rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ==========================================================================
   9. SECCIÓN CONTACTO & CONVERSIÓN (.section-cta)
   Mapea a: <section class="section section-cta" id="contacto">
   ========================================================================== */
.section-cta {
  background-color: var(--blue);
  color: white;
  padding: 110px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 12px;
  margin-bottom: 20px;
  color: white;
}

.contact-info h2 em {
  font-style: normal;
  font-weight: 700;
  color: #e0ecff;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Enlaces directos a canales (WhatsApp & Correo) */
.direct-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.channel-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(4px);
}

.channel-link i {
  font-size: 1.6rem;
  color: white;
}

.channel-link strong {
  display: block;
  font-size: 1rem;
  color: white;
}

.channel-link small {
  display: block;
  font-size: 0.8438rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Tarjeta contenedora blanca del formulario */
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.clean-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.clean-form p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 18px;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9688rem;
  color: var(--ink);
  background-color: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.15);
}

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

/* Estado de error en inputs inválidos */
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: #f04438 !important;
  background-color: #fffbfa !important;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 15px;
  background-color: #0068FF;
  color: #ffffff;
  border: 1px solid #0068FF;
}

.submit-btn:hover {
  background-color: #f9f9f9;
  color: #0068FF;
  border: 1px solid #0068FF;
}

/* Mensajes interactivos de alerta */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.form-alert.error {
  background-color: #fef3f2;
  border: 1px solid #fee4e2;
  color: #b42318;
}

.form-alert.success {
  background-color: #ecfdf3;
  border: 1px solid #d1fadf;
  color: #027a48;
}

/* ==========================================================================
   10. PIE DE PÁGINA / FOOTER (.footer)
   Mapea a: <footer class="footer"> en index.html
   ========================================================================== */
.footer {
  background-color: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: #98a2b3;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #667085;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9063rem;
  color: #98a2b3;
}

.footer-links a:hover {
  color: white;
}

.footer-copy small {
  font-size: 0.8438rem;
  color: #667085;
}

/* ==========================================================================
   11. WIDGET FLOTANTE DUAL: WHATSAPP & CHAT EN VIVO (.floating-contact-menu)
   Mapea a: <div class="floating-contact-menu"> en index.html
   ========================================================================== */
.floating-contact-menu {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: transform 0.25s ease, opacity 0.35s ease;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-contact-menu.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tarjeta desplegable con opciones de contacto */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.16);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform-origin: bottom right;
}

.contact-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.contact-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.contact-opt:hover {
  background-color: var(--soft-bg);
  transform: translateX(-2px);
}

.contact-opt strong {
  display: block;
  font-size: 0.9063rem;
  color: var(--ink);
  line-height: 1.2;
}

.contact-opt small {
  display: block;
  font-size: 0.7813rem;
  color: var(--muted);
}

/* Ícono de WhatsApp */
.contact-opt.opt-whatsapp i {
  font-size: 1.5rem;
  color: #25d366;
}

/* Ícono de Chat en Vivo */
.contact-opt.opt-chat i {
  font-size: 1.35rem;
  color: var(--blue);
}

/* Botón disparador principal */
.main-contact-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 104, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.main-contact-trigger:hover {
  background-color: var(--blue-dark);
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0, 104, 255, 0.55);
}

.main-contact-trigger .icon-open {
  font-size: 1.45rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-contact-trigger .icon-close {
  font-size: 1.35rem;
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Estado cuando el menú está abierto */
.floating-contact-menu.menu-active .main-contact-trigger {
  background-color: var(--ink);
}

.floating-contact-menu.menu-active .icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.floating-contact-menu.menu-active .icon-close {
  opacity: 1;
  transform: rotate(0);
}

/* ==========================================================================
   12. ANIMACIÓN REVEAL AL HACER SCROLL (.reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   13. MEDIA QUERIES / DISEÑO ADAPTATIVO RESPONSIVE
   ========================================================================== */

/* Pantallas Medianas y Tablets Horizontales (Max-width: 980px) */
@media (max-width: 980px) {
  .floating-kpi {
    display: none !important;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Dispositivos Móviles y Tablets Verticales (Max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 50px;
  }

  /* Menú desplegable para móviles */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px 12px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    margin: 24px 0 24px;
    -webkit-overflow-scrolling: touch;
  }

  .filter {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 8px 16px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Móviles Pequeños (Max-width: 520px) */
@media (max-width: 520px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .floating-contact-menu {
    bottom: 18px;
    right: 18px;
  }

  .contact-options {
    min-width: 190px;
  }
}

/* Optimización para Laptops Compactas (ej: 1366x768 o pantallas con altura <= 820px) */
@media (min-width: 769px) and (max-height: 820px) {
  .hero {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .hero-badge {
    margin-bottom: 12px;
    padding: 5px 14px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.95rem, 3.6vw, 2.95rem);
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 640px;
    line-height: 1.48;
    margin-bottom: 18px;
  }

  .hero-actions {
    margin-bottom: 20px;
    gap: 12px;
  }

  .hero-actions .btn {
    padding: 10px 22px;
    font-size: 0.9375rem;
  }

  .hero-metrics {
    padding: 12px 18px;
    gap: 14px;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .metric-card strong {
    font-size: 1.25rem;
  }

  .metric-card span {
    font-size: 0.75rem;
  }

  .floating-kpi {
    padding: 6px 12px;
  }

  .kpi-left {
    left: -20px;
    top: -140px;
  }

  .kpi-right {
    right: -20px;
    top: -140px;
  }
}