/* ==========================================================================
   T1 HOSTING - SISTEMA DE DISEÑO EMPRESARIAL
   Tema Predeterminado: LIGHT (Claro, Corporativo, SaaS Moderno)
   Tema Opcional: DARK (Activado con [data-theme="dark"])
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE TEMA CLARO (DEFAULT)
   -------------------------------------------------------------------------- */
:root {
  /* Fondo y Superficies */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-footer: #0f172a;

  /* Bordes y Separadores */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  /* Tipografía */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Colores Corporativos y Acentos */
  --brand-primary: #1d4ed8;       /* Azul Real Profesional */
  --brand-primary-hover: #1e40af;
  --brand-secondary: #0284c7;     /* Cian Corporativo */
  --brand-accent: #4f46e5;        /* Índigo */
  --brand-success: #059669;       /* Verde Éxito */
  --brand-badge-bg: #eff6ff;
  --brand-badge-border: #bfdbfe;
  --brand-badge-text: #1d4ed8;

  /* Gradientes */
  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.94) 100%);
  --gradient-card-featured: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12);

  /* Estructura y Transición */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. VARIABLES DE TEMA OSCURO (OPCIONAL)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-subtle: #131c31;
  --bg-card: #0f172a;
  --bg-card-hover: #162036;
  --bg-header: rgba(9, 13, 22, 0.92);
  --bg-footer: #060911;

  --border-subtle: #1e293b;
  --border-strong: #334155;
  --border-focus: #38bdf8;

  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #090d16;

  --brand-primary: #3b82f6;
  --brand-primary-hover: #60a5fa;
  --brand-secondary: #38bdf8;
  --brand-accent: #818cf8;
  --brand-success: #10b981;
  --brand-badge-bg: rgba(59, 130, 246, 0.12);
  --brand-badge-border: rgba(59, 130, 246, 0.3);
  --brand-badge-text: #60a5fa;

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #38bdf8 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(9, 13, 22, 0.88) 0%, rgba(9, 13, 22, 0.96) 100%);
  --gradient-card-featured: linear-gradient(180deg, #131c31 0%, #0f172a 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   3. RESET Y TIPOGRAFÍA BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

/* Botones Profesionales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.btn-white {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badges / Etiquetas */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--brand-badge-bg);
  border: 1px solid var(--brand-badge-border);
  color: var(--brand-badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-success);
  box-shadow: 0 0 8px var(--brand-success);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   4. ENCABEZADO Y BARRA DE NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

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

/* Logotipo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.brand-symbol svg {
  width: 24px;
  height: 24px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1;
}

.brand-title span {
  color: var(--brand-primary);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Enlaces del Menú Desktop (Sin saltos de línea, tipografía nítida y espaciado armónico) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu li {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all var(--transition-normal);
}

.nav-link:hover {
  color: var(--brand-primary);
  background: var(--bg-subtle);
}

/* Acciones en Navbar (Tema Switcher y CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Switch Modo Claro / Oscuro */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-primary);
  border-color: var(--border-strong);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Botón Hamburguesa Móvil */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  padding: 0.45rem;
  cursor: pointer;
}

/* MENÚ MÓVIL: Oculto absolutamente por defecto en desktop */
.mobile-menu {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. SECCIÓN HERO CON VIDEO DE FONDO
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background-color: var(--bg-body);
}

/* Video de Fondo HTML5 */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%) brightness(95%);
  pointer-events: none;
}

/* Capa Translúcida de Contraste para el Video */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: var(--gradient-hero-overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-heading);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-success);
}

/* Monitor de Servidor / Card Tecnológica en el Hero */
.hero-monitor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.monitor-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.monitor-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metric-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

.metric-foot {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.server-speed-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.speed-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 98%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   6. BARRA DE TECNOLOGÍAS Y RESPALDO
   -------------------------------------------------------------------------- */
.tech-strip {
  padding: 2.25rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tech-strip-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.tech-strip-label {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   7. SECCIÓN DE SOLUCIONES EMPRESARIALES (SIN PRECIOS)
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
}

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

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-xl);
}

.solution-card.featured {
  border-color: var(--brand-primary);
  border-width: 2px;
  background: var(--gradient-card-featured);
  box-shadow: var(--shadow-lg);
}

.featured-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.solution-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.solution-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.solution-summary {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.solution-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.solution-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-body);
}

.solution-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-success);
  flex-shrink: 0;
  margin-top: 3px;
}

.solution-feature-item strong {
  color: var(--text-heading);
}

.solution-card-footer {
  margin-top: auto;
}

.solution-card-footer .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. PILARES DE INFRAESTRUCTURA Y VENTAJAS
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon-box svg {
  width: 24px;
  height: 24px;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.pillar-text {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9. TABLA COMPARATIVA DIRECTA
   -------------------------------------------------------------------------- */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-weight: 800;
}

.comparison-table th.col-t1 {
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  border-top: 3px solid var(--brand-primary);
}

.comparison-table td.col-t1 {
  background: rgba(37, 99, 235, 0.03);
  font-weight: 700;
  color: var(--text-heading);
}

.check-mark {
  color: var(--brand-success);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cross-mark {
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   10. TESTIMONIOS Y OPINIONES
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.client-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.client-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. PREGUNTAS FRECUENTES (FAQ ACCORDION)
   -------------------------------------------------------------------------- */
.faq-accordion-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-card.active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-header-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-card.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-body-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-card.active .faq-body-content {
  max-height: 300px;
  padding: 0 1.5rem 1.35rem;
}

.faq-body-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. SECCIÓN DE COTIZACIÓN Y CONTACTO CORPORATIVO
   -------------------------------------------------------------------------- */
.contact-box-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-lead-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-email-banner {
  background: var(--brand-badge-bg);
  border: 1px solid var(--brand-badge-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-email-banner svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.contact-email-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-email-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.contact-whatsapp-banner {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.contact-whatsapp-banner:hover {
  border-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.contact-whatsapp-banner svg {
  width: 28px;
  height: 28px;
  color: #25d366;
  flex-shrink: 0;
}

.contact-whatsapp-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-whatsapp-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #15803d;
}

[data-theme="dark"] .contact-whatsapp-value {
  color: #4ade80;
}

/* Botón WhatsApp en Navbar */
.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: all var(--transition-normal);
}

.btn-whatsapp-nav:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-nav svg {
  width: 17px;
  height: 17px;
}

/* Floating WhatsApp Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

.floating-whatsapp-tooltip {
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  white-space: nowrap;
  animation: floatTooltip 3s ease-in-out infinite alternate;
}

@keyframes floatTooltip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  .floating-whatsapp-tooltip {
    display: none;
  }
}

.contact-form-side form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
}

.form-input-text, .form-input-select, .form-input-textarea {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-normal);
}

.form-input-text:focus, .form-input-select:focus, .form-input-textarea:focus {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.form-status-alert {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
}

.form-status-alert.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-status-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  animation: shakeAlert 0.4s ease-in-out;
}

.form-status-alert.warning {
  display: block;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

[data-theme="dark"] .form-status-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

[data-theme="dark"] .form-status-alert.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-security-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.security-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-footer);
  color: #cbd5e1;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-nav-links a:hover {
  color: #ffffff;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE Y MENU DRAWER
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solutions-grid, .pillars-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

/* Ajuste armónico en pantallas medianas (1081px - 1260px) */
@media (max-width: 1260px) and (min-width: 1081px) {
  .navbar {
    gap: 0.75rem;
  }
  .nav-menu {
    gap: 0.2rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.55rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .btn-whatsapp-nav {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
  .nav-actions .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* Tablets y laptops compactas (<= 1080px): Menú móvil desplegable para evitar amontonamiento */
@media (max-width: 1080px) {
  .nav-menu {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: flex !important;
  }

  /* Drawer móvil refinado */
  .mobile-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
  }

  .mobile-menu.is-active {
    display: flex !important;
  }

  .mobile-menu-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 0.5rem 0;
  }

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

  .footer-copyright-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-box-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   15. MODALES LEGALES Y CORPORATIVOS (TÉRMINOS, PRIVACIDAD, SLA)
   -------------------------------------------------------------------------- */
.footer-modal-trigger {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-normal);
  padding: 0;
  text-decoration: none;
}

.footer-modal-trigger:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-heading);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.modal-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-subtle);
}

body.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. ESTILOS VISUALES DEL RETO ANTI-SPAM (CAPTCHA BADGE)
   -------------------------------------------------------------------------- */
.captcha-pill-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 2px solid #93c5fd;
  padding: 0.25rem 0.85rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.08);
  font-family: inherit;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .captcha-pill-badge {
  background: rgba(30, 58, 138, 0.5);
  color: #60a5fa;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.captcha-controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.captcha-input-field {
  max-width: 140px;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.05em;
  border-width: 2px;
}

.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.captcha-help-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

