/* =============================================================================
   Frostbyte AI — Landing de Pitch Ejecutivo
   Paleta: iceberg + cian + dorado para acentos
   ============================================================================= */

:root {
  --primary:      #1e3a5f;
  --primary-dark: #102641;
  --secondary:    #2c5282;
  --accent:       #5fb3d4;
  --accent-2:     #7fdbff;
  --cyan-ice:     #b8e8f5;
  --gold:         #d4a017;
  --bg:           #ffffff;
  --bg-alt:       #f7fafc;
  --bg-dark:      #0a1828;
  --text:         #1a202c;
  --text-light:   #4a5568;
  --muted:        #718096;
  --border:       #e2e8f0;
  --ok:           #38a169;
  --warn:         #dd6b20;
  --danger:       #e53e3e;
  --whatsapp:     #25d366;
  --shadow-sm:    0 2px 6px rgba(30, 58, 95, 0.08);
  --shadow:       0 8px 20px rgba(30, 58, 95, 0.10);
  --shadow-lg:    0 16px 40px rgba(30, 58, 95, 0.16);
  --radius:       12px;
  --radius-lg:    20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
nav.topbar .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--primary);
  text-decoration: none;
}
.brand .ice { font-size: 24px; }
nav.topbar ul {
  display: flex; list-style: none; gap: 24px; margin: 0; padding: 0;
}
nav.topbar a {
  color: var(--text-light); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
nav.topbar a:hover { color: var(--primary); }
nav.topbar .cta-mini {
  padding: 8px 18px; background: var(--primary); color: white !important;
  border-radius: 999px; font-weight: 600;
}
nav.topbar .cta-mini:hover { background: var(--primary-dark); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(95, 179, 212, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(127, 219, 255, 0.12), transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(95, 179, 212, 0.20), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--cyan-ice); color: var(--primary);
  border-radius: 999px; font-weight: 600; font-size: 13px; margin-bottom: 18px;
  letter-spacing: 0.4px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.1; margin: 0 0 18px;
  color: var(--primary); font-weight: 800; letter-spacing: -0.5px;
}
.hero h1 .gradient {
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 20px; color: var(--text-light); max-width: 720px; margin: 0 0 36px;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--primary); color: white; box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: white; color: var(--primary); border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-wa {
  background: var(--whatsapp); color: white;
}
.btn-wa:hover { background: #1dba59; transform: translateY(-2px); }

/* Stats fila hero */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-stats .stat .num {
  font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.hero-stats .stat .num .plus { font-size: 22px; color: var(--accent); }
.hero-stats .stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ── SECTIONS GENERIC ───────────────────────────────────────────────────── */
section {
  padding: 80px 0;
}
section.alt {
  background: var(--bg-alt);
}
section.dark {
  background: var(--bg-dark);
  color: white;
}
section.dark h2, section.dark h3 { color: white; }
section.dark p { color: rgba(255, 255, 255, 0.85); }

.section-eyebrow {
  display: inline-block; padding: 4px 12px; background: var(--cyan-ice); color: var(--primary);
  border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: 0.5px;
  margin-bottom: 14px; text-transform: uppercase;
}
section.dark .section-eyebrow { background: rgba(95, 179, 212, 0.20); color: var(--accent-2); }

h2.section-title {
  font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 16px; color: var(--primary);
  font-weight: 800; letter-spacing: -0.3px; line-height: 1.15;
}
h2.section-title .gradient {
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p.section-lead {
  font-size: 18px; color: var(--text-light); max-width: 680px; margin: 0 0 48px;
}
section.dark p.section-lead { color: rgba(255, 255, 255, 0.75); }

.section-head-center { text-align: center; }
.section-head-center p.section-lead { margin-left: auto; margin-right: auto; }

/* ── PROBLEMA ──────────────────────────────────────────────────────────── */
.problema-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.problema-card {
  padding: 32px; background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.problema-card .icon-big {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  font-size: 28px; margin-bottom: 18px;
}
.problema-card h3 { font-size: 19px; margin: 0 0 8px; color: var(--primary); }
.problema-card p { margin: 0; color: var(--text-light); font-size: 15px; }
.problema-card .price {
  display: block; font-size: 28px; font-weight: 800; color: var(--danger); margin: 10px 0 4px;
}

@media (max-width: 880px) { .problema-grid { grid-template-columns: 1fr; } }

/* ── SOLUCIÓN: 3 columnas ─────────────────────────────────────────────── */
.solucion-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  padding: 36px 28px; background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent);
}
.feature-card .icon-big {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan-ice), var(--accent-2));
  font-size: 28px; margin-bottom: 22px;
}
.feature-card h3 { font-size: 20px; margin: 0 0 10px; color: var(--primary); font-weight: 700; }
.feature-card p { margin: 0 0 14px; color: var(--text-light); }
.feature-card ul { margin: 0; padding-left: 18px; color: var(--text-light); font-size: 14px; }
.feature-card ul li { margin-bottom: 4px; }

@media (max-width: 880px) { .solucion-grid { grid-template-columns: 1fr; } }

/* ── AGENTE AI: split visual ──────────────────────────────────────────── */
.agente-section {
  background:
    radial-gradient(ellipse at bottom right, rgba(95, 179, 212, 0.15), transparent 60%),
    var(--bg-dark);
  color: white; position: relative; overflow: hidden;
}
.agente-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.agente-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.agente-text h2 { color: white; }
.agente-text h2 .gradient {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.agente-features {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.agente-features li {
  padding: 12px 0; display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255,255,255,0.88); font-size: 15px;
}
.agente-features li .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark); font-weight: 900; font-size: 13px;
}
.badge-new {
  display: inline-block; padding: 4px 12px; background: var(--gold); color: var(--primary-dark);
  font-weight: 800; font-size: 11px; border-radius: 4px; letter-spacing: 1px;
  margin-bottom: 14px; text-transform: uppercase;
}

@media (max-width: 980px) { .agente-split { grid-template-columns: 1fr; } }

/* ── WhatsApp Mockup ──────────────────────────────────────────────────── */
.wa-phone {
  max-width: 360px; margin: 0 auto;
  background: linear-gradient(180deg, #1f2937, #111827);
  border-radius: 36px; padding: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.08);
  position: relative;
}
.wa-phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #000; border-radius: 0 0 14px 14px;
}
.wa-screen {
  background: #ece5dd; border-radius: 26px; overflow: hidden; min-height: 580px;
  display: flex; flex-direction: column;
}
.wa-header {
  background: #075e54; color: white; padding: 38px 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
}
.wa-header .name { font-weight: 600; font-size: 15px; line-height: 1.1; }
.wa-header .status { font-size: 11px; opacity: 0.85; }
.wa-body {
  flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><circle cx='30' cy='30' r='1.5' fill='%23d0c8b8'/><circle cx='80' cy='80' r='1.5' fill='%23d0c8b8'/><circle cx='150' cy='40' r='1.5' fill='%23d0c8b8'/><circle cx='180' cy='130' r='1.5' fill='%23d0c8b8'/></svg>") repeat,
    #ece5dd;
}
.wa-msg {
  max-width: 80%; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.45; color: #303030;
  position: relative; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  word-wrap: break-word;
}
.wa-msg.user {
  background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 2px;
}
.wa-msg.bot {
  background: white; align-self: flex-start; border-bottom-left-radius: 2px;
}
.wa-msg .time {
  font-size: 10px; color: #999; float: right; margin-left: 10px; margin-top: 4px;
}
.wa-msg .tick { color: #4fc3f7; font-weight: 700; }
.wa-msg b { color: var(--primary); }
.wa-attach {
  background: #f0f0f0; border-radius: 6px; padding: 8px; margin-top: 4px;
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.wa-attach .file-icon {
  width: 32px; height: 32px; background: var(--danger); color: white;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px;
}
.wa-typing {
  align-self: flex-start; background: white; padding: 10px 14px; border-radius: 10px;
  display: inline-flex; gap: 3px;
}
.wa-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #999;
  animation: wa-bounce 1.4s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.16s; }
.wa-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes wa-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── ROLES ────────────────────────────────────────────────────────────── */
.roles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.role-card {
  padding: 28px 24px; background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all 0.2s;
  display: flex; flex-direction: column;
}
.role-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.role-card .icon-big {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.role-card.tecnico .icon-big   { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.role-card.jefe .icon-big      { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.role-card.calidad .icon-big   { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.role-card.dueno .icon-big     { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.role-card h3 { font-size: 17px; margin: 0 0 4px; color: var(--primary); }
.role-card .role-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.role-card ul { padding-left: 18px; margin: 0; color: var(--text-light); font-size: 13.5px; }
.role-card ul li { margin-bottom: 6px; }

@media (max-width: 980px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .roles-grid { grid-template-columns: 1fr; } }

/* ── NORMATIVA ────────────────────────────────────────────────────────── */
.normativa-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.normativa-table th, .normativa-table td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.normativa-table th {
  background: var(--bg-alt); color: var(--primary); font-weight: 700;
  text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px;
}
.normativa-table tbody tr:last-child td { border-bottom: none; }
.normativa-table tbody tr:hover { background: rgba(95,179,212,0.05); }
.normativa-table .check { color: var(--ok); font-weight: 800; font-size: 18px; }
.normativa-table .cobertura {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.normativa-table .cobertura.full { background: #d1fae5; color: #047857; }
.normativa-table .cobertura.partial { background: #fef3c7; color: #b45309; }

/* ── 3 STEPS ──────────────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 42px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 0;
}
.step {
  position: relative; z-index: 1; padding: 28px 22px;
  background: white; border-radius: var(--radius-lg); text-align: center;
  border: 1px solid var(--border);
}
.step .num-circle {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; box-shadow: var(--shadow);
}
.step h3 { font-size: 18px; margin: 0 0 8px; color: var(--primary); }
.step p { margin: 0; color: var(--text-light); font-size: 14.5px; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* ── ROI / BENEFICIOS ─────────────────────────────────────────────────── */
.roi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch;
}
.roi-card {
  padding: 36px; border-radius: var(--radius-lg); background: white;
  border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.roi-card.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-color: transparent;
}
.roi-card.highlight h3 { color: white; }
.roi-card.highlight p { color: rgba(255,255,255,0.85); }
.roi-card.highlight::after {
  content: ""; position: absolute; bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(95, 179, 212, 0.3), transparent 70%);
}
.roi-card h3 { font-size: 22px; margin: 0 0 12px; color: var(--primary); }
.roi-card .big-num {
  font-size: 56px; font-weight: 800; line-height: 1; margin: 14px 0;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.roi-card.highlight .big-num {
  background: linear-gradient(120deg, var(--accent-2), white);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.roi-card p { color: var(--text-light); margin: 0; font-size: 15px; }
.roi-card ul { padding-left: 18px; margin: 12px 0 0; color: var(--text-light); font-size: 14px; }
.roi-card.highlight ul { color: rgba(255,255,255,0.85); }

@media (max-width: 880px) { .roi-grid { grid-template-columns: 1fr; } }

/* ── CASOS ────────────────────────────────────────────────────────────── */
.casos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.caso-card {
  padding: 24px; background: white; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
}
.caso-card .sector {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.caso-card h4 { font-size: 18px; margin: 0 0 12px; color: var(--primary); }
.caso-card .num-cuartos {
  font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1;
}
.caso-card .num-label {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 6px;
}

@media (max-width: 880px) { .casos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .casos-grid { grid-template-columns: 1fr; } }

/* ── CTA FINAL ────────────────────────────────────────────────────────── */
.cta-final {
  background:
    radial-gradient(ellipse at top, rgba(95, 179, 212, 0.18), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 100px 0; text-align: center;
}
.cta-final h2 {
  font-size: clamp(32px, 4vw, 48px); color: white; margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.cta-final p {
  font-size: 19px; color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 36px;
}
.cta-final .btn-primary {
  background: var(--accent); color: var(--primary-dark);
}
.cta-final .btn-primary:hover { background: var(--accent-2); }
.cta-final .btn-secondary {
  background: transparent; color: white; border-color: white;
}
.cta-final .btn-secondary:hover { background: white; color: var(--primary); }
.cta-final .contact-line {
  margin-top: 40px; font-size: 14px; color: rgba(255,255,255,0.7);
}
.cta-final .contact-line a { color: var(--accent-2); text-decoration: none; }
.cta-final .contact-line a:hover { text-decoration: underline; }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer {
  padding: 32px 0; text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ── ANIMACIONES ──────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ── PROBAR FROSTBYTE AI ──────────────────────────────────────────────── */
.probar-section {
  background:
    radial-gradient(ellipse at top left, rgba(95, 179, 212, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.probar-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: stretch;
}
.probar-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--text); transition: all 0.25s;
  position: relative; overflow: hidden;
}
.probar-card.wa-card {
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  border-color: #bbf7d0;
}
.probar-card.wa-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--whatsapp);
}
.probar-card.chat-card {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
}
.probar-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.wa-icon { background: var(--whatsapp); }
.chat-icon {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-size: 32px;
}
.probar-card h3 {
  font-size: 22px; margin: 0 0 10px; color: var(--primary); font-weight: 700;
}
.probar-card > p {
  margin: 0 0 22px; color: var(--text-light); font-size: 15px;
}
.probar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  align-self: flex-start; transition: all 0.2s;
}
.probar-btn.wa-btn {
  background: var(--whatsapp); color: white;
}
.probar-card.wa-card:hover .wa-btn {
  background: #1dba59; transform: translateX(2px);
}
.probar-meta {
  display: block; margin-top: 16px; font-size: 12px; color: var(--muted);
}

@media (max-width: 980px) { .probar-grid { grid-template-columns: 1fr; } }

/* ── DEMO CHAT ────────────────────────────────────────────────────────── */
.demo-chat {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; margin-bottom: 10px;
}
.demo-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.demo-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: white; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.demo-name { font-weight: 700; font-size: 14px; line-height: 1.1; }
.demo-state {
  font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 5px;
}
.demo-state .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.demo-messages {
  padding: 16px; height: 280px; overflow-y: auto;
  background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px;
}
.demo-messages::-webkit-scrollbar { width: 6px; }
.demo-messages::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }

.demo-msg {
  max-width: 88%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.45; word-wrap: break-word;
  white-space: pre-wrap; /* respetar saltos del agente */
}
.demo-msg.user {
  background: var(--primary); color: white; align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.demo-msg.bot {
  background: white; color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.demo-msg.bot strong { color: var(--primary); }
.demo-msg.typing-bubble {
  display: inline-flex; gap: 4px; padding: 14px 16px;
}
.demo-msg.typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: wa-bounce 1.4s infinite ease-in-out;
}
.demo-msg.typing-bubble span:nth-child(2) { animation-delay: 0.16s; }
.demo-msg.typing-bubble span:nth-child(3) { animation-delay: 0.32s; }

.demo-input-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: white; border-top: 1px solid var(--border);
}
.demo-input-row input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; outline: none;
  background: var(--bg-alt); transition: all 0.15s;
}
.demo-input-row input:focus {
  border-color: var(--accent); background: white;
  box-shadow: 0 0 0 3px rgba(95, 179, 212, 0.15);
}
.demo-input-row input:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-input-row button {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.demo-input-row button:hover { background: var(--primary-dark); transform: scale(1.05); }
.demo-input-row button:disabled { background: var(--muted); cursor: not-allowed; transform: none; }

.demo-status {
  padding: 8px 14px; font-size: 12px; color: var(--muted);
  background: var(--bg-alt); border-top: 1px solid var(--border);
  text-align: center;
}
#demo-remaining { font-weight: 700; color: var(--primary); }

/* ── PRINT ────────────────────────────────────────────────────────────── */
@media print {
  nav.topbar, .hero-ctas, .cta-final .btn, .agente-section .wa-phone { display: none; }
  body { background: white; font-size: 11pt; }
  section { padding: 24px 0; page-break-inside: avoid; }
  .hero { padding: 32px 0; }
}
