/* ============================================================
   Webaldia — Páginas de servicio V1
   Diseño alineado con la landing: ritmo, componentes, CTAs
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */

.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 69, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 69, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 100%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 100%, black, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero__title { margin-top: 16px; text-wrap: balance; }
.page-hero__sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.65;
}

/* Hero CTA row */
.page-hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}

/* Hero trust badges */
.page-hero__badges {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
}
.page-hero__badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); font-weight: 500;
}
.page-hero__badge-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(76, 185, 68, 0.20);
  font-size: 16px;
}

/* ── Breadcrumb ───────────────────────────────────────────── */

.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

/* ── TOC / anchor nav ─────────────────────────────────────── */

.page-toc {
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-toc .container {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.page-toc__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
  margin-right: 8px;
}
.page-toc__link {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.page-toc__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Sections ─────────────────────────────────────────────── */

.section { padding: 80px 24px; }
.section--alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section__heading {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.section__num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(76, 185, 68, 0.25);
}
.section__heading h2 { margin: 0; }

/* ── Page content typography ──────────────────────────────── */

.page-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.page-content h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: clamp(18px, 1.6vw, 22px);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}
.page-content p  { margin-bottom: 16px; }

/* Styled lists */
.page-content ul,
.page-content ol {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}
.page-content ul li,
.page-content ol li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-content ul li:last-child,
.page-content ol li:last-child { border-bottom: none; }

.page-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.page-content ol { counter-reset: steps; }
.page-content ol li { counter-increment: steps; }
.page-content ol li::before {
  content: counter(steps);
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Links */
.page-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-content a:hover { color: var(--accent); }
.page-content a.btn,
.page-content a[class*="cta"],
.page-content .pricing-card a,
.page-content .calc-result__actions a {
  text-decoration: none;
}
.page-content a.btn--primary,
.page-content .pricing-card__cta--primary,
.page-content .calc-result__actions .btn--primary {
  color: white;
}
.page-content a.btn--ghost,
.page-content a.btn--secondary,
.page-content .calc-result__actions .btn--ghost {
  color: var(--primary);
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-content th {
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}
.page-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.page-content tr:nth-child(even) td { background: var(--bg-1); }

/* Blockquote */
.page-content blockquote {
  border: 1px solid rgba(76, 185, 68, 0.25);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
}
.page-content blockquote::before {
  content: '\201C';
  position: absolute; top: -8px; left: 12px;
  font-size: 48px; color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.4;
}

/* Images */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: 28px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
/* Don't let the image be too tall */
.page-content img[width="1024"] {
  max-width: 560px;
  display: block;
}

/* ── Inline CTA strip (between sections) ──────────────────── */

.page-cta-inline {
  padding: 48px 24px;
}
.page-cta-inline .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.page-cta-inline__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  background: var(--primary);
  border-radius: var(--r-xl);
  color: white;
  flex-wrap: wrap;
}
.page-cta-inline__text h3 {
  color: white;
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 4px;
}
.page-cta-inline__text p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin: 0;
}
.page-cta-inline__actions {
  display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0;
}

/* ── Bottom CTA strip (consistent with landing) ──────────── */

.cta-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(76, 185, 68, 0.06), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, rgba(11, 37, 69, 0.04), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  text-align: center;
}
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p {
  color: var(--text-2); font-size: 17px;
  margin-bottom: 28px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ── Pricing cards ───────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.pricing-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(76, 185, 68, 0.12);
}
.pricing-card--featured:hover {
  box-shadow: 0 16px 48px rgba(76, 185, 68, 0.18);
}
.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(76, 185, 68, 0.3);
}
.pricing-card__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.pricing-card__audience {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 20px;
}
.pricing-card__price {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.pricing-card__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
}
.pricing-card__annual {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pricing-card__annual strong { font-weight: 700; }
.pricing-card__annual del {
  color: var(--text-3);
  font-weight: 400;
}
.pricing-card__price-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.pricing-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.pricing-card__features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  border-bottom: none;
}
.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6L5 8.5L9.5 3.5' stroke='%234CB944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-card a {
  color: inherit;
  text-decoration: none;
}
.pricing-card__cta {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pricing-card__cta:active { transform: translateY(1px); }
.pricing-card__cta--primary {
  background: var(--accent);
  color: white !important;
  box-shadow: 0 6px 24px rgba(76, 185, 68, 0.25);
}
.pricing-card__cta--primary:hover {
  background: var(--accent-strong);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(76, 185, 68, 0.35);
}
.pricing-card__cta--secondary {
  background: var(--bg-1);
  color: var(--primary) !important;
  border: 1px solid var(--border-strong);
}
.pricing-card__cta--secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
}
.pricing-card__footnote {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card--featured { order: -1; }
}

/* ── Calculator widget ────────────────────────────────────── */

.calc-widget {
  max-width: 640px;
  margin: 0 auto;
}
.calc-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.calc-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.calc-step__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.calc-step__question {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.calc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-0);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: var(--text-1);
}
.calc-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(4px);
}
.calc-option__radio {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.calc-option:hover .calc-option__radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px white;
}
.calc-option__label {
  font-weight: 500;
}
.calc-back {
  margin-top: 20px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.calc-back:hover { color: var(--accent-strong); }

/* Result */
.calc-result {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(76,185,68,0.10);
  margin-bottom: 24px;
}
.calc-result__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.calc-result__plan {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.calc-result__price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.calc-result__annual {
  font-size: 14px;
  color: var(--accent-strong);
  font-weight: 500;
  margin-bottom: 16px;
}
.calc-result__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px;
}
.calc-result__features {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 28px;
}
.calc-result__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.calc-result__features li:last-child { border-bottom: none; }
.calc-result__features li svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.calc-result__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.calc-result__actions .btn { min-width: 180px; text-align: center; }

/* Summary */
.calc-summary {
  background: var(--bg-1);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.calc-summary h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.calc-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.calc-summary__row:last-child { border-bottom: none; }
.calc-summary__q { color: var(--text-3); }
.calc-summary__a { color: var(--text-1); font-weight: 600; text-align: right; }

.calc-restart { display: block; margin: 0 auto; }

@media (max-width: 520px) {
  .calc-step__question { font-size: 18px; }
  .calc-result { padding: 28px 20px; }
  .calc-result__price { font-size: 28px; }
  .calc-result__actions { flex-direction: column; }
  .calc-result__actions .btn { width: 100%; }
  .calc-summary__row { flex-direction: column; gap: 2px; }
  .calc-summary__a { text-align: left; }
}

/* ── Pending content ──────────────────────────────────────── */

.page-pending {
  padding: 48px 32px;
  background: var(--bg-1);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
}

/* ── Blog grid (keep from original) ───────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card { padding: 28px; display: flex; flex-direction: column; }
.blog-card__format {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px; align-self: flex-start;
}
.blog-card__title { font-size: 20px; margin-bottom: 10px; }
.blog-card__title a { color: var(--primary); transition: color 0.2s; }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt {
  color: var(--text-2); font-size: 14px; line-height: 1.6;
  flex: 1; margin-bottom: 16px;
}
.blog-card__link {
  color: var(--accent-strong); font-weight: 600;
  font-size: 14px; transition: color 0.2s;
}
.blog-card__link:hover { color: var(--accent); }

.blog-article { }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 880px) {
  .page-hero { padding: calc(60px + 32px) 0 32px; }
  .page-toc { top: 60px; }
  .section { padding: 64px 20px; }
  .page-cta-inline { padding: 32px 20px; }
  .page-cta-inline__box {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .cta-strip { padding: 40px 24px; }
  .page-toc { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-toc .container { gap: 6px; flex-wrap: nowrap; }
  .page-toc__link { font-size: 12px; padding: 5px 10px; flex-shrink: 0; }
}

@media (max-width: 600px) {
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 32px; }
  .page-hero__title { font-size: clamp(28px, 6vw, 36px); }
  .page-hero__cta { flex-direction: column; }
  .page-hero__cta .btn { width: 100%; text-align: center; justify-content: center; }
  .page-hero__badges { flex-direction: column; gap: 12px; }
  .page-toc__label { display: none; }
  .section { padding: 48px 16px; }
  .section .container { padding: 0 8px; }
  .section__heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section__num { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
  .page-content { font-size: 16px; }
  .page-content h3 { font-size: 18px; }
  .page-content blockquote { padding: 16px 18px; }
  .page-content table { font-size: 13px; }
  .page-content th,
  .page-content td { padding: 10px 12px; }
  .page-cta-inline__actions { width: 100%; }
  .page-cta-inline__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .cta-strip { padding: 32px 20px; margin: 0 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-content img[width="1024"] { max-width: 100%; }
}
