/* VEIA — Precios. Mismo sistema que la home + componentes propios. */

:root {
  --ink: #16181D;
  --ink-soft: #5B5F66;
  --brand: #570080;
  --brand-dark: #43006B;
  --brand-tint: #F2E9F6;
  --accent: #F2006D;
  --bg: #FFFFFF;
  --surface: #F6F5F1;
  --border: #E2E0D9;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1rem;
  --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem; --fs-4xl: clamp(2.5rem, 6vw, 3.5rem);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-md: 0 6px 20px rgba(22,24,29,.08);
  --focus-ring: 0 0 0 3px rgba(14,107,78,.35);
}

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

body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-base);
  line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 var(--space-4); }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-5); }
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 60ch; }
.skip-link { position: absolute; left: -999px; background: var(--ink); color: #fff; padding: var(--space-3); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--brand); color: #fff; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: .02em; }
.nav { display: flex; gap: var(--space-5); margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a:hover { text-decoration: underline; }
.site-header__cta { margin-inline-start: var(--space-4); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; padding: 12px 22px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface); border-color: var(--ink-soft); }
.btn--wa { background: var(--ink); color: #fff; }
.btn--wa:hover { background: #000; }
.btn:focus-visible { box-shadow: var(--focus-ring); }

/* Hero / secciones */
.hero { padding-block: var(--space-9); }
.hero__inner { max-width: 720px; }
.section { padding-block: var(--space-9); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead { color: #C9CCD2; }
.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin-bottom: var(--space-2); }

.chip { display: inline-block; font-size: var(--fs-xs); font-weight: 600; background: var(--brand-tint); color: var(--brand); padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-4); }
.chip--accent { background: var(--accent); color: var(--ink); }

/* Planes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.card--plan { background: var(--bg); }
.card--featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--space-2); }
.card__desc { color: var(--ink-soft); font-size: var(--fs-sm); }
.card .btn { margin-top: var(--space-4); width: 100%; }
.price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--brand); margin-bottom: var(--space-2); }
.price--quote { font-size: var(--fs-xl); color: var(--ink); }
.list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.list li { padding-left: var(--space-5); position: relative; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Pasos 50/50 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-5); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-weight: 700; margin-bottom: var(--space-4); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); max-width: 720px; }
.faq__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.faq__item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--space-3); }

/* CTA final */
.cta { max-width: 640px; }
.cta__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/* Footer */
.site-footer { background: var(--ink); color: #C9CCD2; padding-block: var(--space-8) var(--space-5); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.footer__brand .brand__name { color: #fff; }
.footer__nav, .footer__contact { display: grid; gap: var(--space-2); align-content: start; }
.footer__nav a, .footer__contact a { color: #C9CCD2; text-decoration: none; font-size: var(--fs-sm); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid #2C2F36; font-size: var(--fs-xs); }

/* Responsive */
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 759px) {
  .hero { padding-block: var(--space-8); }
  .section { padding-block: var(--space-8); }
  .nav { order: 3; width: 100%; gap: var(--space-4); margin-inline-start: 0; }
  .site-header__cta { margin-inline-start: auto; }
}

/* --- Activos reales --- */
.brand img{ height: 30px; width: auto; }

/* --- Contraste: el texto dentro de tarjetas siempre oscuro --- */
.card{ color: var(--ink); }   /* no hereda blanco de secciones oscuras; no toca a los componentes */
.section--ink h2, .section--ink h3{ color: #fff; }

/* --- Guardia de legibilidad: resaltes con fondo de color -> texto claro --- */
.chip--accent{ background: #B0004F; color: #fff; }
.card .chip--accent{ color: #fff; }
.btn--primary, .btn--wa, .card .btn--primary, .card .btn--wa{ color: #fff; }
