/* =========================================================
   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; }
