/* Páginas por rubro (HTML estático, SEO). Mismos colores y fuente que la
   home (app/welcome.tsx). */
:root {
  --green: #1f5c4f;
  --green-hover: #174a3f;
  --green-tint: #e1ece7;
  --green-circle: #2a6e5f;
  --accent: #c67139;
  --accent-100: #fff2eb;
  --accent-700: #8c491a;
  --sage-100: #f0fae1;
  --sage-200: #e1eecc;
  --bg: #f5ead8;
  --page: #f9f4ed;
  --n200: #eee7db;
  --n700: #645c50;
  --n800: #474238;
  --text: #201e1d;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 10; background: rgba(249, 244, 237, 0.92); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.header .logo img { height: 48px; width: auto; }
.header nav { display: flex; align-items: center; gap: 24px; }
.header nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.link-login { color: var(--green); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-outline { border: 2px solid #dcd3c4; background: var(--bg); color: var(--text); }
.btn-outline:hover { border-color: var(--green); }
.btn-cream { background: var(--bg); color: var(--green); }
.btn-small { padding: 10px 20px; font-size: 15px; }

/* Secciones */
section { padding: 88px 0; }
.alt { background: var(--bg); }
.kicker { color: var(--accent-700); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--n800); max-width: 640px; margin: 0 0 28px; }
.sub { font-size: 17px; color: var(--n800); max-width: 640px; margin: 0 0 36px; }

.hero { padding: 56px 0 72px; }
.hero .pill { display: inline-block; background: var(--accent-100); color: #643312; font-weight: 500; font-size: 14px; border-radius: 999px; padding: 8px 16px; margin-bottom: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero .checks { display: flex; flex-wrap: wrap; gap: 18px; color: var(--n700); font-size: 14px; font-weight: 500; padding: 0; margin: 0; list-style: none; }
.hero .checks li::before { content: '✓ '; color: var(--green); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--page); border-radius: var(--radius); padding: 28px; }
.alt .card { background: var(--page); }
section:not(.alt) .card { background: var(--bg); }
.card p { margin: 0; color: var(--n800); }
.icon { width: 48px; height: 48px; border-radius: 999px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon .ico { width: 24px; height: 24px; display: block; }
.pain .icon { background: var(--accent-100); color: var(--accent-700); }

/* Planes */
.plans { align-items: stretch; }
.plan { background: var(--page); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; }
.plan.popular { border-color: var(--green); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { margin: 0; font-size: 22px; }
.plan .badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.plan .price { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 8px 0 4px; color: var(--text); }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--n700); margin-left: 4px; }
.plan p { margin: 0; color: var(--n800); }
.more { margin: 28px 0 0; }

.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 14px; }

/* Preguntas */
.faq { max-width: 820px; }
.faq details { background: var(--bg); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--n700); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--n800); }

/* Llamado final */
.cta { background: var(--green); color: #fff; border-radius: 24px; padding: 56px 40px; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 999px; background: var(--green-circle); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 620px; }
.cta p { color: var(--sage-100); max-width: 560px; font-size: 17px; margin: 0 0 24px; }

/* Pie */
footer { padding: 32px 0 44px; color: var(--n700); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.otros { padding: 0 0 8px; }
.otros h2 { font-size: 22px; }
.otros ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.otros a { display: inline-block; background: var(--bg); border-radius: 999px; padding: 10px 20px; text-decoration: none; font-weight: 500; }
.otros a:hover { background: var(--n200); }

/* Celular: menos aire entre bloques */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 44px 0; }
  .hero { padding: 28px 0 40px; }
  .header .logo img { height: 36px; }
  .header nav .hide-mobile, .more .hide-mobile { display: none; }
  .more { margin-top: 20px; }
  .more .btn { padding: 10px 20px; font-size: 15px; }
  .card { padding: 20px; }
  .cta { padding: 36px 24px; }
  .grid { gap: 12px; }
}

/* Título seguido directo de tarjetas o preguntas (sin bajada) */
h2 + .grid, h2 + .faq { margin-top: 24px; }
