/* =========================================================
   CPPA Growth Web — componentes nuevos (namespace .gw-*)
   Solo usa los tokens de /assets/cppa.css. No redefine globales.
   ========================================================= */

.gw-section { padding-top: 40px; }

/* ---------- Contenedor de la calculadora ---------- */
.gw-tool {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.gw-step[hidden] { display: none; }
.gw-step > * + * { margin-top: 24px; }
.gw-step h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.gw-step h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.gw-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.gw-lead { color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 680px; }
.gw-muted { color: var(--ink-mute); font-size: 14px; line-height: 1.55; }

/* Campo de texto (reutiliza .form-field) */
.gw-tool .form-field textarea { min-height: 150px; font-size: 17px; line-height: 1.55; }
.gw-counter { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 8px; text-align: right; }
.gw-field-error { color: var(--accent-2); font-size: 14px; margin-top: 10px; }

/* Ejemplos rápidos */
.gw-examples { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-chip {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, color 0.25s;
  text-align: left;
  white-space: normal;
}
.gw-chip:hover { border-color: var(--accent); color: var(--ink); }

.gw-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink-mute);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.gw-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gw-actions .btn { white-space: normal; text-align: left; }
.gw-actions--split { justify-content: space-between; }
.gw-tool .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.gw-link {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.gw-link:hover { color: var(--ink); }

/* Foco visible accesible */
.gw-tool a:focus-visible,
.gw-tool button:focus-visible,
.gw-option input:focus-visible + span,
.gw-tool textarea:focus-visible,
.gw-tool input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Cargando / error ---------- */
.gw-loading { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 17px; }
.gw-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: gw-pulse 1.1s ease-in-out infinite;
  flex: none;
}
@keyframes gw-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

.gw-alert {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.gw-alert strong { display: block; font-size: 17px; margin-bottom: 6px; }
.gw-alert p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Resumen de lo entendido ---------- */
.gw-understood {
  border-left: 1px solid var(--accent);
  padding-left: 24px;
}
.gw-understood p { font-size: 18px; line-height: 1.6; }

.gw-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gw-list li { color: var(--ink-soft); font-size: 15px; line-height: 1.55; padding-left: 22px; position: relative; }
.gw-list li::before { content: '✦'; color: var(--accent); position: absolute; left: 0; top: 0; font-size: 12px; }
.gw-list--minus li::before { content: '–'; color: var(--ink-mute); font-size: 15px; }

.gw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gw-block h3 { margin-bottom: 14px; }
.gw-block .eyebrow { margin-bottom: 14px; }

/* ---------- Preguntas ---------- */
.gw-progress { height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.gw-progress span { display: block; height: 100%; background: var(--accent); transition: width 0.35s ease; }
.gw-qcount { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

.gw-options { display: grid; gap: 10px; border: 0; }
.gw-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gw-option { display: block; cursor: pointer; }
.gw-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gw-option span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.gw-option span::before {
  content: '';
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  transition: all 0.2s;
}
.gw-option input[type=checkbox] + span::before { border-radius: 4px; }
.gw-option:hover span { border-color: var(--ink-mute); }
.gw-option input:checked + span { border-color: var(--accent); background: rgba(255,107,53,0.08); }
.gw-option input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-card); }
.gw-option--unknown span { color: var(--ink-soft); border-style: dashed; }

/* ---------- Resultado ---------- */
.gw-price-box {
  padding: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  background: rgba(255,107,53,0.05);
}
.gw-price-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.gw-price {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.gw-price--review { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.gw-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.gw-meta div { min-width: 180px; }
.gw-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.gw-meta dd { font-size: 15px; color: var(--ink-soft); }

.gw-weight { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-left: 8px; }
.gw-weight--alto { color: var(--accent); }

.gw-simpler { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.gw-simpler strong { font-family: var(--serif); font-size: 22px; font-weight: 500; display: block; margin: 8px 0; }

.gw-disclaimer { font-size: 14px; color: var(--ink-mute); font-style: italic; }

/* Formulario de contacto alternativo */
.gw-leadform { padding-top: 32px; border-top: 1px solid var(--line); }
.gw-leadform .form-row { margin-bottom: 20px; }
.gw-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.gw-check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.gw-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tarjetas de precios de referencia (sobre .price-card) */
.gw-ref-price { font-family: var(--serif); font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.gw-ref-price small { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-left: 4px; }
.section-light .price-card { background: #fff; border-color: rgba(0,0,0,0.08); color: var(--ink-on-paper); }
.section-light .price-card ul { border-top-color: rgba(0,0,0,0.08); }
.section-light .price-card ul li { color: #4a4a4d; }
.section-light .gw-ref-price small, .section-light .price-card .plan-period { color: #66666a; }
.section-light .gw-ref-note { color: #55555a; }
.gw-ref-note { text-align: center; max-width: 720px; margin: 40px auto 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .gw-tool { padding: 28px 20px; border-radius: var(--radius-lg); }
  .gw-cols { grid-template-columns: 1fr; gap: 28px; }
  .gw-price-box { padding: 24px 20px; }
  .gw-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .gw-actions--split { flex-direction: column-reverse; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-dot { animation: none; opacity: 1; }
  .gw-progress span, .gw-option span, .gw-chip { transition: none; }
}

/* Ajuste en lenguaje natural */
.gw-adjust { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.gw-adjust > * + * { margin-top: 16px; }

/* =========================================================
   Páginas de sector / solución (Growth Web)
   ========================================================= */

/* Migas de pan visibles */
.gw-crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-mute); margin-bottom: 28px; }
.gw-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gw-crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--ink-mute); }
.gw-crumbs a { color: var(--ink-soft); }
.gw-crumbs a:hover { color: var(--accent); }
.gw-crumbs [aria-current] { color: var(--ink); }

/* Botones del hero */
.gw-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Dos necesidades distintas / precios */
.gw-pricing { margin-top: 60px; max-width: none; }
.gw-pricing--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gw-pricing .price-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.gw-pricing .price-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.section-light .gw-pricing .price-card p { color: #4a4a4d; }
.section-light .gw-pricing .price-card h3 { color: var(--ink-on-paper); }
.gw-pricing .gw-ref-price { color: var(--ink); }
.section-light .gw-pricing .gw-ref-price { color: var(--ink-on-paper); }

/* Bloques de texto (plazos, después de publicar…) */
.gw-text-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.gw-text-grid h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
.gw-text-grid p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.section-light .gw-text-grid p { color: #4a4a4d; }

/* Ejemplo hipotético (nunca un caso real) */
.gw-example {
  max-width: 860px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--bg-card);
}
.gw-example .gw-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 6px 12px;
  margin-bottom: 20px;
}
.gw-example h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.gw-example p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }

/* Preguntas frecuentes */
.gw-faq { max-width: 900px; border-top: 1px solid rgba(0,0,0,0.12); }
.gw-faq details { border-bottom: 1px solid rgba(0,0,0,0.12); }
.gw-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-on-paper);
}
.gw-faq summary::-webkit-details-marker { display: none; }
.gw-faq summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: none; transition: transform 0.25s; }
.gw-faq details[open] summary::after { transform: rotate(45deg); }
.gw-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gw-faq details p { padding: 0 0 26px; max-width: 720px; color: #4a4a4d; font-size: 16px; line-height: 1.65; }
.section:not(.section-light) .gw-faq, .section:not(.section-light) .gw-faq details { border-color: var(--line); }
.section:not(.section-light) .gw-faq summary { color: var(--ink); }
.section:not(.section-light) .gw-faq details p { color: var(--ink-soft); }

/* Listas de "qué incluye / qué no" */
.gw-include-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 60px; }

/* También podemos ayudarte con… */
.gw-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.gw-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.25s, transform 0.25s;
}
.gw-related a::after { content: '→'; font-family: var(--sans); color: var(--accent); }
.gw-related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.section-light .gw-related a { border-color: rgba(0,0,0,0.14); color: var(--ink-on-paper); }

/* Bloque de precios añadido a páginas existentes */
.gw-note-center { text-align: center; max-width: 760px; margin: 36px auto 0; font-size: 15px; color: var(--ink-soft); }
.section-light .gw-note-center { color: #55555a; }
.gw-cta-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* Aviso discreto de la calculadora en la home */
.gw-home-calc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.gw-home-calc p { color: var(--ink-soft); font-size: 17px; max-width: 640px; }
.gw-home-calc strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }

@media (max-width: 768px) {
  .gw-example { padding: 28px 22px; }
  .gw-hero-ctas .btn, .gw-cta-center .btn { width: 100%; justify-content: center; }
  .gw-home-calc { padding: 24px 20px; }
  .gw-home-calc .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-faq summary::after, .gw-related a { transition: none; }
}

/* Texto de tarjetas y botones en fondos claros */
.gw-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.section-light .price-card .btn-ghost { color: var(--ink-on-paper); border-color: rgba(0,0,0,0.2); }
.section-light .price-card .btn-ghost:hover { border-color: var(--ink-on-paper); }
.gw-pricing .gw-ref-price { font-size: 40px; margin-top: 4px; }

.gw-related-head { margin: 100px 0 0; }
.gw-text-grid h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }

/* Modo consultor (calculadora) */
.gw-guided-toggle { margin-top: 16px; display: inline-block; text-align: left; }
.gw-guided { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.gw-guided > * + * { margin-top: 22px; }
.gw-guided .form-field textarea { min-height: 90px; font-size: 16px; }
.gw-advice-list { display: grid; gap: 16px; }
.gw-advice-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.gw-advice-card:hover { border-color: var(--accent); }
.gw-advice-card .gw-advice-type { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.gw-advice-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.gw-advice-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.gw-advice-card .gw-advice-price { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.gw-advice-card .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 768px) { .gw-advice-card .btn { align-self: stretch; justify-content: center; } }

/* Formulario de contacto de la calculadora: resumen legible */
.gw-leadform > * + * { margin-top: 24px; }
.gw-leadform .form-row { margin-bottom: 0; }
.gw-leadform .gw-actions { margin-top: 28px; }
.gw-leadform .form-field textarea { min-height: 90px; font-size: 16px; }
.gw-lead-summary { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); }
.gw-lead-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin-top: 14px; }
.gw-lead-summary dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 4px; }
.gw-lead-summary dd { font-size: 15px; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.gw-lead-summary dd ul { list-style: none; display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); }
@media (max-width: 640px) { .gw-lead-summary dl { grid-template-columns: 1fr; gap: 4px; } .gw-lead-summary dd { margin-bottom: 10px; } }

/* =========================================================
   Asesor tecnológico (calculadora conversacional)
   ========================================================= */
.gw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gw-advisor .form-field textarea { min-height: 130px; }

/* Accesos rápidos */
.gw-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw-mode { text-align: left; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, background 0.2s; }
.gw-mode strong { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.gw-mode span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.gw-mode:hover { border-color: var(--ink-mute); }
.gw-mode.is-on { border-color: var(--accent); background: rgba(255,107,53,0.06); }
.gw-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Conversación */
.gw-chat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gw-chat-mode { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.gw-chat-links { display: flex; gap: 18px; flex-wrap: wrap; }
.gw-thread { list-style: none; display: flex; flex-direction: column; gap: 22px; padding: 26px 0 8px; }
.gw-msg { animation: gw-in 0.35s ease both; }
@keyframes gw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gw-msg p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.gw-msg-who { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.gw-msg--assistant { max-width: 720px; padding-left: 18px; border-left: 1px solid var(--accent); }
.gw-msg--user { align-self: flex-end; max-width: min(560px, 88%); padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(255,255,255,0.03); }
.gw-msg--user p { color: var(--ink-soft); }
.gw-msg-edit { margin-top: 8px; font-size: 13px; }
.gw-msg--note p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-mute); }
.gw-msg--block { padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.gw-msg--block > * + * { margin-top: 16px; }
.gw-block-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; }
.gw-mini { font-family: var(--mono); font-size: 10px !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute) !important; margin: 16px 0 8px; }

/* Opciones de pregunta */
.gw-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gw-opt { font-size: 15px; color: var(--ink); text-align: left; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 100px; transition: border-color 0.2s, background 0.2s; white-space: normal; }
.gw-opt:hover { border-color: var(--accent); }
.gw-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,107,53,0.1); }
.gw-opt--unknown { color: var(--ink-soft); border-style: dashed; }
.gw-opt:focus-visible, .gw-opt-ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gw-opt-ok { margin-top: 14px; }
.gw-msg--question.is-done .gw-opts, .gw-msg--question.is-done .gw-opt-ok { opacity: 0.45; pointer-events: none; }

/* Estado de carga real: tres puntos discretos */
.gw-status { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px 18px; color: var(--ink-soft); font-size: 15px; }
.gw-status[hidden] { display: none; }
.gw-dots { display: inline-flex; gap: 5px; }
.gw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: gw-dot 1.2s ease-in-out infinite; }
.gw-dots i:nth-child(2) { animation-delay: 0.15s; }
.gw-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes gw-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Respuestas rápidas y compositor */
.gw-quick { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 14px; }
.gw-quick:empty { display: none; }
.gw-composer { display: flex; gap: 12px; align-items: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.gw-composer textarea { flex: 1; min-height: 52px; max-height: 180px; resize: vertical; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 14px 16px; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.gw-composer textarea:focus { outline: none; border-color: var(--accent); }
.gw-composer .btn { flex: none; }
.gw-composer-hint { margin-top: 10px; font-size: 13px; }
.gw-composer-hint:empty { display: none; }
.gw-advisor .btn[disabled], .gw-advisor button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Oportunidades y propuestas */
.gw-opps, .gw-props { display: grid; gap: 16px; }
.gw-props { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.gw-opp, .gw-prop { padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); }
.gw-opp:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.gw-opp.is-recommended, .gw-prop.is-recommended { border-color: var(--accent); background: rgba(255,107,53,0.05); }
.gw-opp-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.gw-opp-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.gw-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 100px; padding: 5px 10px; }
.gw-opp h4, .gw-prop h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.gw-opp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0; }
.gw-opp-dl dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 4px; }
.gw-opp-dl dd { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.gw-opp-more > p:not(.gw-mini) { font-size: 15px; color: var(--ink-soft); }
.gw-prop-price { font-family: var(--serif) !important; font-size: clamp(26px, 3vw, 32px) !important; line-height: 1.15 !important; letter-spacing: -0.02em; margin: 4px 0 10px; }
.gw-prop .gw-list li, .gw-opp .gw-list li { font-size: 14px; }
.gw-list--plus li::before { content: '+'; font-size: 15px; }
.gw-opp .gw-actions, .gw-prop .gw-actions { margin-top: 16px; gap: 10px 14px; }
.gw-prop .gw-actions .btn { width: 100%; justify-content: center; }

/* Panel de contacto */
.gw-leadpanel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 768px) {
  .gw-modes { grid-template-columns: 1fr; }
  .gw-msg--block { padding: 18px 16px; }
  .gw-opp-dl { grid-template-columns: 1fr; gap: 2px; }
  .gw-opp-dl dd { margin-bottom: 8px; }
  .gw-composer { flex-direction: column; align-items: stretch; }
  .gw-composer .btn { justify-content: center; }
  .gw-msg--user { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-msg { animation: none; }
  .gw-dots i { animation: none; opacity: 0.8; }
  .gw-mode, .gw-opt { transition: none; }
}

/* Asesor «primero valor»: inicio simple y resultados comerciales */
.gw-start .form-field textarea { min-height: 120px; font-size: 18px; }
.gw-start-actions { justify-content: space-between; gap: 16px 24px; }
.gw-modes-inline { display: flex; flex-wrap: wrap; gap: 18px; }
.gw-mode.gw-link { padding: 0; border: 0; border-radius: 0; background: none; display: inline; font-size: 14px; color: var(--ink-soft); }
.gw-mode.gw-link.is-on { color: var(--accent); background: none; }
.gw-link--accent { color: var(--accent); }
.gw-opp-lead { font-size: 15px !important; color: var(--ink) !important; line-height: 1.55; }
.gw-prop-tag { display: inline-block; font-family: var(--mono); font-size: 10px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent) !important; margin: -4px 0 10px; }
.gw-next-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); align-items: center; }
.gw-facts { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; }
.gw-facts summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.gw-facts summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gw-facts[open] summary { margin-bottom: 4px; }
@media (max-width: 768px) {
  .gw-start-actions .btn { width: 100%; justify-content: center; }
  .gw-next-actions .btn { width: 100%; justify-content: center; }
}

/* Tres alternativas lado a lado en escritorio */
@media (min-width: 900px) {
  .gw-props { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gw-prop { padding: 20px 18px; }
  .gw-prop h4 { font-size: 19px; }
  .gw-prop .gw-actions .btn { padding: 12px 14px; }
}

/* Correcciones de la auditoría UX del asesor (21/10/2026) */
/* Móvil pequeño: las tarjetas no pueden exigir más ancho del que hay (P09) y los botones largos se parten (P27). */
@media (max-width: 899px) {
  .gw-props { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
}
.gw-opps { grid-template-columns: minmax(0, 1fr); }
.gw-msg--block { min-width: 0; }
.gw-opp .btn, .gw-prop .btn { white-space: normal; text-align: center; }
/* Alternativas superadas: se pueden consultar, pero ya no se eligen (P04). */
.gw-msg--block.is-stale { opacity: 0.72; }
.gw-msg--block.is-stale .gw-next-actions { display: none; }
.gw-stale-note { font-family: var(--mono); font-size: 11px !important; letter-spacing: 0.06em; color: var(--ink-soft) !important; }
@media (max-width: 380px) {
  .gw-msg--block { padding: 16px 12px; }
  .gw-opp, .gw-prop { padding: 16px 14px; }
}
/* Botón secundario sobre secciones claras: el estilo base es para fondo oscuro y quedaba invisible (auditoría comercial P0). */
.section-light .btn-ghost { color: var(--ink-on-paper); border-color: rgba(0,0,0,0.2); }
.section-light .btn-ghost:hover { border-color: var(--ink-on-paper); }

/* Asesor: divulgación progresiva (plan de acción, UX-B) */
.gw-opp h3, .gw-prop h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.gw-opp h3 { margin-bottom: 8px; }
.gw-prop .gw-opp-top { flex-wrap: nowrap; align-items: flex-start; }
.gw-why-rec { font-size: 14px !important; color: var(--ink-soft) !important; border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 10px; }
.gw-prop-sub { font-size: 13px !important; color: var(--ink-soft) !important; margin: 0 0 6px; }
.gw-prop-price .gw-price-num { white-space: nowrap; }
.gw-prop-price .gw-price-iva { font-family: var(--sans); font-size: 0.55em; color: var(--ink-soft); white-space: nowrap; }
.gw-prop-for { font-size: 14px !important; color: var(--ink-soft) !important; margin: 0 0 6px; }
.gw-prop-facts { list-style: none; display: grid; gap: 4px; margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.gw-prop-facts strong { color: var(--ink); font-weight: 500; }
.gw-tier-switch { display: none; }
.gw-stale-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.gw-msg--block.is-stale:not(.is-open) > :not(.gw-stale-head) { display: none; }
.gw-msg--block .gw-leadpanel { margin-top: 20px; }
@media (min-width: 900px) {
  .gw-props--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-prop-price { font-size: clamp(24px, 2.2vw, 28px) !important; }
}
@media (max-width: 640px) {
  .gw-tier-switch { display: flex; gap: 6px; margin: 2px 0 12px; }
  .gw-tier-btn { flex: 1 1 0; min-height: 48px; padding: 8px 6px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 13px; line-height: 1.25; color: var(--ink-soft); text-align: center; }
  .gw-tier-btn { min-width: 0; }
  .gw-tier-btn small { display: block; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
  .gw-tier-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: rgba(255,107,53,0.08); }
  .gw-tier-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .gw-props .gw-prop:not(.is-active) { display: none; }
}
/* Mientras se espera la respuesta, la herramienta sigue ocupando la pantalla en móvil. */
@media (max-width: 768px) {
  .gw-advisor.is-busy .gw-chat { padding-bottom: 45vh; }
}

/* Asesor universal: servicio preseleccionado y revisión sin cifras (Organic Growth OS) */
.gw-service-context { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.gw-service-context strong { color: var(--ink); font-weight: 500; }
.gw-review .gw-alert { margin-bottom: 4px; }
.gw-review .gw-alert .btn { margin-top: 12px; }

/* Tarifa aprobada de un servicio de alcance (soporte): precio de partida y condiciones */
.gw-rate { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 18px 20px; margin: 4px 0 8px; background: rgba(255, 107, 53, 0.06); }
.gw-rate .gw-mini { margin-top: 0; }
.gw-msg .gw-rate-price { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 4px 0 6px; }
.gw-rate-price .gw-price-iva { font-family: var(--sans); font-size: 0.5em; color: var(--ink-soft); white-space: nowrap; }
.gw-msg .gw-rate-hourly { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.gw-rate-cond summary { cursor: pointer; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gw-rate-cond summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.gw-rate-cond ul { margin-top: 10px; font-size: 14px; }
