/* ==========================================================================
   Layer 8 Intelligent — Design System v2
   Extraído fielmente de la identidad visual original (tailwind.config.js /
   index.css del sitio en producción). No se alteran colores, tipografía,
   ni lenguaje visual: solo se extiende a un sitio multi-página.
   ========================================================================== */

:root {
  /* Marca */
  --primary: #06B6D4;
  --primary-dark: #0891B2;
  --primary-glow: #67E8F9;
  --dark: #020817;
  --dark-card: #0F1629;
  --dark-border: #1E2D4A;

  /* Acento secundario (estados / alertas / novedades) */
  --accent-amber: #F59E0B;
  --accent-amber-dark: #D97706;
  --accent-amber-glow: #FCD34D;

  /* Texto */
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --text-muted-2: #64748B;
  --text-muted-3: #475569;
  --white: #FFFFFF;

  /* Sombras / glow */
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-glow-cyan-lg: 0 0 40px rgba(6, 182, 212, 0.2);

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* ==========================================================================
   Reset base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 { color: var(--white); font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

::selection { background: rgba(6, 182, 212, 0.35); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Accesibilidad */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary-glow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-alt { background: var(--dark-card); }

.section-header { text-align: center; margin-bottom: 4rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); }
.section-header.align-left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 1.25rem; padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary); border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-glow), #3B82F6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.glow-text { text-shadow: 0 0 30px rgba(6, 182, 212, 0.5); }

.divider {
  height: 1px; margin: 4rem 0;
  background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-md); transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark); font-weight: 700; box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.btn-primary:hover { box-shadow: 0 0 35px rgba(6, 182, 212, 0.6); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 0 16px rgba(6, 182, 212, 0.5); }
.btn-secondary {
  border: 1px solid rgba(6, 182, 212, 0.5); color: var(--primary); background: transparent;
}
.btn-secondary:hover { background: rgba(6, 182, 212, 0.1); border-color: var(--primary); }
.btn-white { background: #fff; color: #0f172a; }
.btn-white:hover { background: #f1f5f9; }
.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.3); color: #fff; background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 639px) { .btn-group { flex-direction: column; align-items: stretch; } }

/* ==========================================================================
   Glass card
   ========================================================================== */
.glass {
  background: rgba(15, 22, 41, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 45, 74, 0.8);
}

.card {
  background: rgba(15, 22, 41, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 45, 74, 0.8);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: var(--shadow-glow-cyan); }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1); color: var(--primary); margin-bottom: 1.25rem;
}
.card-icon svg { width: 1.75rem; height: 1.75rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem;
  color: var(--primary); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s ease;
}
.card .card-link:hover { gap: 0.6rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.tag {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(30, 45, 74, 0.6); border: 1px solid var(--dark-border); color: var(--text-muted);
}

/* Badges de estado / alerta (acento ámbar) — mismo molde que .product-badge,
   pero para "Novedad", "Alta demanda", "Incidente detectado", etc.
   Texto en --dark: blanco sobre ámbar da ~2.2:1 (falla WCAG), --dark da 6.3–9.3:1 (AA/AAA). */
.badge-alert {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
  color: var(--dark);
}
.badge-alert.badge-alert-outline {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}
.tag-alert {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber-glow);
}

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 8, 23, 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
}
.navbar-row { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.navbar-logo img { height: 2.6rem; width: auto; }
.navbar-links { display: none; align-items: center; gap: 2rem; }
.navbar-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.navbar-actions { display: none; align-items: center; gap: 0.9rem; }
.navbar-toggle {
  display: inline-flex; color: var(--text-muted); padding: 0.4rem;
}
.navbar-toggle svg { width: 1.6rem; height: 1.6rem; }

@media (min-width: 1024px) {
  .navbar-links { display: flex; }
  .navbar-actions { display: flex; }
  .navbar-toggle { display: none; }
}

.navbar-mobile {
  display: none; flex-direction: column; gap: 0.25rem; padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--dark-border);
}
.navbar-mobile.is-open { display: flex; }
.navbar-mobile a, .navbar-mobile button {
  padding: 0.65rem 0; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; text-align: left;
}
.navbar-mobile a.active { color: var(--primary); }
.navbar-mobile .btn { margin-top: 0.75rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; padding: 6rem 0 5rem;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(6,182,212,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 15%, rgba(99,102,241,0.08) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 10; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34rem; margin-bottom: 2.25rem; }

.hero-trust { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--dark-border); }
.hero-trust p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.hero-trust-items { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-trust-items div { font-size: 0.9rem; color: var(--primary); }
.hero-trust-items strong { font-size: 1.05rem; }

.hero-visual { display: none; }
@media (min-width: 1024px) { .hero-visual { display: block; } }

/* Marquesina de logos de partners — se activa quitando [hidden] del bloque
   .partner-strip en index.html una vez haya logos reales que mostrar. */
.partner-strip { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-border); }
.partner-strip p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.partner-strip-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2.25rem; }
.partner-logo img {
  height: 1.75rem; width: auto; max-width: 8rem;
  filter: grayscale(1) brightness(1.6) opacity(0.55);
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.partner-logo img:hover {
  filter: grayscale(0) opacity(1) drop-shadow(0 0 8px rgba(6, 182, 212, 0.45));
}

.page-hero {
  position: relative; overflow: hidden; padding: 5rem 0 3.5rem;
  background-image: radial-gradient(circle at 20% 20%, rgba(6,182,212,0.10) 0%, transparent 55%);
  border-bottom: 1px solid var(--dark-border);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 42rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; color: var(--text-muted-2); font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Panel de operaciones (visual del hero, no específico de un producto) */
.ops-panel { position: relative; max-width: 26rem; margin: 0 auto; }
.ops-panel-frame { border-radius: var(--radius-xl); padding: 0.5rem; }
.ops-panel-screen { background: var(--dark); border-radius: var(--radius-lg); overflow: hidden; }
.ops-panel-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.ops-panel-header .badge-dot {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  color: var(--primary); font-size: 0.85rem;
}
.ops-panel-header .status { font-size: 0.75rem; color: #CFFAFE; display: flex; align-items: center; gap: 0.4rem; }
.ops-panel-header .status .dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #4ADE80; }
.ops-panel-body { padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; background: var(--dark-card); }
.ops-metric {
  border: 1px solid var(--dark-border); border-radius: var(--radius-md); padding: 1rem;
  background: rgba(2,8,23,0.4);
}
.ops-metric .ops-icon { color: var(--primary); width: 1.4rem; height: 1.4rem; margin-bottom: 0.6rem; }
.ops-metric .ops-label { font-size: 0.78rem; color: var(--text-muted); }
.ops-metric .ops-value { font-size: 1rem; font-weight: 700; color: #fff; }
.ops-panel-glow {
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: rgba(6,182,212,0.2); filter: blur(48px); z-index: -1;
}

/* ==========================================================================
   Métricas
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { padding: 1.5rem 1rem; }
.stat-value { font-family: var(--font-mono); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark-card), var(--dark));
  border-top: 1px solid rgba(6,182,212,0.2);
  padding: 6rem 0;
}
.cta-final::before, .cta-final::after {
  content: ''; position: absolute; width: 24rem; height: 24rem; border-radius: 999px;
  background: rgba(6,182,212,0.06); filter: blur(80px);
}
.cta-final::before { top: -6rem; right: -6rem; }
.cta-final::after { bottom: -6rem; left: -6rem; }
.cta-final .container { position: relative; z-index: 2; text-align: center; max-width: 46rem; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.cta-final p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-final .btn-group { justify-content: center; }

/* ==========================================================================
   Producto destacado (WhatsApp Business Inteligente)
   ========================================================================== */
.product-featured {
  position: relative; border-radius: var(--radius-xl); padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-glow), var(--primary-dark));
}
.product-featured-inner {
  border-radius: calc(var(--radius-xl) - 2px);
  background: var(--dark-card);
  padding: 3rem 2.5rem;
}
.product-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--dark);
}
.product-featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.product-featured > .product-featured-inner > p { color: var(--text-muted); font-size: 1.05rem; max-width: 40rem; margin-bottom: 2rem; }
.product-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
@media (min-width: 640px) { .product-features { grid-template-columns: repeat(4, 1fr); } }
.product-feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--dark-border);
  background: rgba(2,8,23,0.4); font-size: 0.85rem; color: var(--text-muted);
}
.product-feature svg { width: 1.4rem; height: 1.4rem; color: var(--primary); }

.product-soon {
  border: 1px dashed var(--dark-border); border-radius: var(--radius-lg); padding: 2.25rem;
  text-align: center; color: var(--text-muted);
}
.product-soon .card-icon { background: rgba(30,45,74,0.5); color: var(--text-muted); }

/* ==========================================================================
   Demo interactivo (WhatsApp Business Inteligente)
   ========================================================================== */
.demo-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: 1fr 1fr; } }

.demo-panel { border-radius: var(--radius-lg); overflow: hidden; }
.demo-panel-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.demo-avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  color: var(--primary); font-size: 0.85rem; flex-shrink: 0;
}
.demo-panel-header .demo-title { color: var(--dark); font-weight: 700; font-size: 0.9rem; }
.demo-panel-header .demo-status { font-size: 0.75rem; color: #CFFAFE; display: flex; align-items: center; gap: 0.4rem; }
.demo-panel-header .demo-status .dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #4ADE80; }

.demo-messages {
  height: 24rem; background: var(--dark-card); overflow-y: auto; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.demo-msg-row { display: flex; }
.demo-msg-row.is-client { justify-content: flex-end; }
.demo-msg-row.is-bot { justify-content: flex-start; }
.demo-msg {
  max-width: 80%; border-radius: 1rem; padding: 0.65rem 1rem; font-size: 0.9rem;
  white-space: pre-wrap; line-height: 1.5;
}
.demo-msg-client {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--dark); font-weight: 500;
  border-top-right-radius: 0.25rem;
}
.demo-msg-bot {
  background: var(--dark-border); color: var(--text-body);
  border-top-left-radius: 0.25rem;
}

.typing-dots { display: flex; gap: 0.3rem; align-items: center; padding: 0.3rem 0.2rem; }
.typing-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--text-muted-2); animation: dot 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.demo-calendar-panel-head {
  background: var(--dark-border); padding: 1rem 1.25rem;
  font-size: 0.9rem; font-weight: 600; color: var(--text-body);
}
.demo-calendar-body { padding: 1.5rem; background: var(--dark-card); }
.demo-calendar-weekdays, .demo-calendar-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem;
}
.demo-calendar-weekdays { margin-bottom: 1rem; }
.demo-calendar-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-muted-2); }
.demo-calendar-days { margin-bottom: 1.5rem; }
.demo-calendar-day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  background: var(--dark-border); color: var(--text-body); transition: all 0.3s ease;
}
.demo-calendar-day.is-empty { background: transparent; }
.demo-calendar-day.is-event { background: var(--primary); color: #fff; }

.demo-event-card {
  border: 1px solid rgba(6,182,212,0.3); background: rgba(6,182,212,0.1);
  border-radius: var(--radius-md); padding: 1rem;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
}
.demo-event-card.is-visible { display: block; opacity: 1; transform: translateY(0); }
.demo-event-card p { font-size: 0.9rem; font-weight: 600; color: var(--text-body); }
.demo-event-card .demo-confirmed { display: none; font-size: 0.8rem; color: var(--primary); margin-top: 0.5rem; font-weight: 600; }
.demo-event-card.is-confirmed .demo-confirmed { display: block; }

.demo-replay-wrap { text-align: center; margin-top: 2.5rem; opacity: 0; transition: opacity 0.4s ease; }
.demo-replay-wrap.is-visible { opacity: 1; }
.demo-replay {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.4rem;
  border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s ease;
}
.demo-replay:hover { background: rgba(6,182,212,0.1); }

/* ==========================================================================
   Ficha de producto (sin borde degradado, para catálogo)
   ========================================================================== */
.product-card {
  border-radius: var(--radius-lg); padding: 2.5rem;
  background: rgba(15, 22, 41, 0.7); border: 1px solid var(--dark-border);
}
.product-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 1rem; }
.product-card > p { color: var(--text-muted); font-size: 1.02rem; max-width: 40rem; margin-bottom: 2rem; }

/* ==========================================================================
   Casos de éxito
   ========================================================================== */
.case-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(15, 22, 41, 0.7); border: 1px solid var(--dark-border);
}
.case-card-head {
  padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--dark-border);
  background: linear-gradient(90deg, rgba(6,182,212,0.08), transparent);
}
.case-card-head .card-icon { margin-bottom: 0; }
.case-card-head h3 { font-size: 1.35rem; }
.case-card-body { padding: 2rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .case-card-body { grid-template-columns: repeat(3, 1fr); } }
.case-block h4 {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin-bottom: 0.6rem; font-weight: 700;
}
.case-block p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Formulario de contacto
   ========================================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-body); margin-bottom: 0.5rem; }
.form-group .required { color: var(--primary); }
.form-control {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(2,8,23,0.5); border: 1px solid var(--dark-border); color: var(--text-body);
  font-size: 0.95rem; transition: border-color 0.2s ease;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.8rem; color: var(--text-muted-2); margin-top: 0.75rem; }
.form-success {
  display: none; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; margin-top: 1.25rem;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); border-radius: var(--radius-md);
  color: var(--primary); font-size: 0.9rem; font-weight: 500;
}
.form-success.is-visible { display: flex; }

.contact-info-card { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--primary); }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--dark-border);
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
  height: 260px; width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 60;
  width: 3.75rem; height: 3.75rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 25px rgba(6,182,212,0.5);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

/* Evita que el flotante tape el formulario de contacto mientras se escribe.
   1) Solución CSS pura (navegadores con :has(), 2023+): si algún campo dentro
      de [data-contact-form] tiene foco, el body recibe el estado y se oculta el botón. */
body:has([data-contact-form]:focus-within) .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}
/* 2) Fallback / refuerzo JS para navegadores sin :has() (ver js/main.js) */
.whatsapp-float.is-hidden-near-form {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 35px rgba(6,182,212,0.7); }
.whatsapp-float svg { width: 1.9rem; height: 1.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--dark); border-top: 1px solid var(--dark-border); padding: 5rem 0 2.5rem; }
.footer-grid {
  display: grid; gap: 3rem; padding-bottom: 3rem; margin-bottom: 3rem;
  border-bottom: 1px solid var(--dark-border);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 2.4rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 20rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1.25rem; align-items: center; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { color: var(--text-muted-2); font-size: 0.85rem; }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

/* ==========================================================================
   Animaciones
   ========================================================================== */
.fade-in-section {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeIn { animation: fadeIn 0.5s ease-in; }

.hero-content { transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-content.is-visible { opacity: 1; transform: translateY(0); }
.hero-content:not(.is-visible) { opacity: 0; transform: translateY(2.5rem); }
.hero-visual-inner { transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s; }
.hero-visual-inner.is-visible { opacity: 1; transform: scale(1); }
.hero-visual-inner:not(.is-visible) { opacity: 0; transform: scale(0.96); }

/* ==========================================================================
   Utilidades
   ========================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.max-w-prose { max-width: 65ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
