/* =========================================================
   CPPA Growth Pages — portada y páginas de servicio (OGOS F5)
   Namespace .gp-*. Solo usa los tokens de /assets/cppa.css.
   No redefine estilos globales de cppa.css ni de growth-web.css.
   ========================================================= */

/* ---------- Home: hero ---------- */
/* La última línea del H1 («tu negocio.») tiene descendentes que el overflow:hidden de la
   animación recortaba; se amplía la caja sin mover el resto del diseño. */
#inicio .hero-title .line:last-child { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.gp-hero-alt {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.gp-hero-alt a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color 0.25s;
}
.gp-hero-alt a:hover { color: var(--accent-2); }

/* ---------- Home: servicios con acceso al asesor ---------- */
.gp-solution { cursor: default; }
.gp-solution .solution-title a { color: inherit; }
.gp-solution .solution-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.gp-solution-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}
.gp-solution-ctas .btn { white-space: normal; text-align: left; }
.gp-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-on-paper);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.28);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s;
}
.gp-link:hover { text-decoration-color: var(--accent); }
.gp-solution-more { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #55555a; }

/* ---------- Home: ¿No sabes por dónde empezar? ---------- */
.section.gp-start { padding: 110px 0; }
.gp-start-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 44px 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.gp-start-box > div { flex: 1 1 420px; max-width: 700px; }
.gp-start-box h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gp-start-box h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.gp-start-box p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.gp-start-box .gp-note { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); }

/* ---------- Botones secundarios legibles sobre fondo claro ---------- */
.section-light .btn-ghost { color: var(--ink-on-paper); border-color: rgba(0,0,0,0.24); }
.section-light .btn-ghost:hover { border-color: var(--ink-on-paper); }

/* ---------- Páginas de servicio ---------- */
.btn.gp-btn-wrap { white-space: normal; text-align: center; }
.gp-related-gap { margin-bottom: 72px; }
.page-cta .btn + .btn.gp-btn-wrap { margin: 12px 0 0 12px; }
@media (max-width: 768px) { .page-cta .btn + .btn.gp-btn-wrap { margin: 12px 0 0; } }
.contact .gp-final-ctas { justify-content: center; margin-top: 32px; }
.gp-faq-section .gw-faq { margin-top: 0; }

/* ---------- CTA fijo en móvil (solo <=768 px) ---------- */
.gp-sticky { display: none; }
@media (max-width: 768px) {
  .gp-sticky {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .gp-sticky.gp-sticky--on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .gp-sticky:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  /* Nunca a la vez que el banner de cookies ni con el menú móvil abierto. */
  .cppa-cc-open .gp-sticky { display: none; } /* mientras se ve el aviso de cookies (cppa-consent.js) */
  body:has(#mobile-menu.show) .gp-sticky { display: none; }

  .gp-start-box { padding: 28px 22px; }
  .gp-start-box .btn, .gp-final-ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-sticky, .gp-sticky.gp-sticky--on { transition: none; transform: none; }
  .gp-hero-alt a, .gp-link { transition: none; }
}

/* Rendimiento (PERF-01): la imagen del hero de la portada en WebP (1,4 MB → ~0,1 MB) con el PNG
   original como alternativa. Mismo encuadre y aspecto; cppa.css no se toca. */
#inicio .hero-bg-img {
  background-image: url('/imagen-inicio-v2.png');
  background-image: image-set(url('/imagen-inicio-v2.webp') type('image/webp'), url('/imagen-inicio-v2.png') type('image/png'));
}

/* ---------- Soporte: precio de partida y condiciones ---------- */
.gp-price-support { align-items: start; }
.gp-price-support .price-card h3 { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); font-weight: 400; line-height: 1.05; margin: 10px 0 12px; }
.gp-price-support .price-card h3 small { font-family: var(--sans); font-size: 0.4em; color: var(--ink-soft); }
.gp-price-support .gw-hero-ctas { margin-top: 20px; }
.gp-conditions { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.gp-conditions li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.gp-conditions li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
