/* ==========================================================================
   Tokens
   Claro, azul de marca y celeste solo en detalles. Manrope 400/700.
   ========================================================================== */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-12: .75rem;  --fs-14: .875rem; --fs-16: 1rem;   --fs-18: 1.125rem;
  --fs-20: 1.25rem; --fs-24: 1.5rem;  --fs-32: 2rem;   --fs-48: 3rem;

  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px;

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --border: #e1e7ef;
  --border-strong: #c9d3e0;
  --text: #0a2540;
  --text-2: #4b5d74;
  --text-3: #6b7c93;

  --brand: #0a5cff;
  --brand-hover: #0047d6;
  --brand-soft: #e9f1ff;
  --sky: #12b5e5;
  --sky-soft: #e3f7fd;
  --navy: #0a2540;
  --on-brand: #ffffff;

  --success: #0f8a5f; --success-soft: #e6f6ef;
  --danger: #c62f3b;  --danger-soft: #fdecee;
  --warning: #a35c00; --warning-soft: #fff4e0;

  --radius: 8px;
  --radius-lg: 12px;
  --focus: 0 0 0 3px rgba(10, 92, 255, .35);
  --shadow-pop: 0 10px 30px rgba(10, 37, 64, .12);

  --content: 1160px;
  --header-h: 64px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-16)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.icon { flex: none; }
.skip-link { position: absolute; left: var(--s-16); top: -48px; z-index: 100; background: var(--brand); color: #fff; padding: var(--s-8) var(--s-16); border-radius: var(--radius); }
.skip-link:focus { top: var(--s-8); color: #fff; }

.container { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--s-24); }
.container--text { max-width: 760px; }
.container--narrow { max-width: 560px; }
@media (max-width: 640px) { .container { padding-inline: var(--s-16); } }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: 44px; padding: 0 var(--s-24);
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 var(--fs-16)/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 36px; padding: 0 var(--s-16); font-size: var(--fs-14); }
.btn--lg { min-height: 52px; padding: 0 var(--s-32); }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text-3); color: var(--text); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-soft); color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--brand), var(--sky)); }
.site-header__bar { display: flex; align-items: center; gap: var(--s-32); height: var(--header-h); }
.brand { font-size: var(--fs-20); font-weight: 700; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--navy); text-decoration: none; }
.brand__accent { color: var(--brand); }
.custom-logo { max-height: 40px; width: auto; }

.site-nav__list { display: flex; gap: var(--s-24); list-style: none; }
.site-nav__list a { color: var(--text-2); font-size: var(--fs-14); font-weight: 700; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); padding-bottom: 4px; }
.site-nav__mobile-only { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--s-16); margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: var(--s-8); color: var(--text-2); font-size: var(--fs-14); font-weight: 700; }
.header-link:hover { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; }
.nav-toggle__close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-link, .site-header__actions .btn { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-pop); }
  .site-nav__list { flex-direction: column; gap: 0; padding: var(--s-8) var(--s-16) var(--s-16); }
  .site-nav__list a { display: block; padding: var(--s-12) 0; font-size: var(--fs-16); border-bottom: 1px solid var(--border); }
  .site-nav__list a[aria-current="page"] { box-shadow: none; color: var(--brand); }
  .site-nav__mobile-only { display: block; }
  .nav-open .site-nav { display: block; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.site-main { min-height: 60vh; }
.section { padding-block: var(--s-64); }
.section--tight { padding-block: var(--s-32) var(--s-64); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-24); flex-wrap: wrap; margin-bottom: var(--s-32); }
.section-title { font-size: var(--fs-32); }
.section-sub { margin-top: var(--s-8); color: var(--text-2); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-8); color: var(--brand); font-size: var(--fs-14); font-weight: 700; }
.page-title { font-size: var(--fs-32); margin-bottom: var(--s-16); }
.page-hero { padding-block: var(--s-48) var(--s-16); }
.page-section { padding-block: var(--s-48) var(--s-64); }
@media (max-width: 640px) {
  .section { padding-block: var(--s-48); }
  .section-title, .page-title { font-size: var(--fs-24); }
}

/* Chips de categoría */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-16); }
.section-head .chips { margin-top: 0; }
.chips a { padding: var(--s-4) var(--s-12); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: var(--fs-14); font-weight: 700; }
.chips a:hover { color: var(--text); border-color: var(--text-3); text-decoration: none; }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { padding-block: var(--s-64); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-64); align-items: center; }
.hero__title { margin-top: var(--s-16); font-size: var(--fs-48); line-height: 1.1; letter-spacing: -.03em; max-width: 16ch; }
.hero__text { margin-top: var(--s-16); font-size: var(--fs-18); color: var(--text-2); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-32); }

.price-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.price-list__head { padding: var(--s-16) var(--s-24); font-size: var(--fs-14); font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border); }
.price-list ul { list-style: none; }
.price-list li + li { border-top: 1px solid var(--border); }
.price-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); padding: var(--s-16) var(--s-24); color: var(--text); transition: background-color .15s; }
.price-list a:hover { background: var(--brand-soft); text-decoration: none; }
.price-list__name { display: grid; gap: 2px; min-width: 0; }
.price-list__name strong { font-size: var(--fs-16); }
.price-list__name span { font-size: var(--fs-14); color: var(--text-3); }
.price-list__price { font-size: var(--fs-18); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list__price small { margin-left: var(--s-4); font-size: var(--fs-14); font-weight: 400; color: var(--text-3); }
.price-list__foot { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-12) var(--s-24); background: var(--bg-alt); border-top: 1px solid var(--border); font-size: var(--fs-14); color: var(--text-2); }

@media (max-width: 900px) {
  .hero { padding-block: var(--s-48); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-32); }
  .hero__title { font-size: var(--fs-32); }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-32); margin-top: var(--s-32); counter-reset: none; }
.steps li { padding-top: var(--s-24); border-top: 2px solid var(--border-strong); }
.steps li:first-child { border-top-color: var(--brand); }
.steps__n { display: block; font-size: var(--fs-32); font-weight: 700; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.steps strong { display: block; margin-top: var(--s-16); font-size: var(--fs-18); }
.steps p { margin-top: var(--s-8); color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--s-24); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-48); }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-16); padding: var(--s-16) 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-24); font-weight: 400; color: var(--brand); line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-16); color: var(--text-2); max-width: 65ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: var(--s-24); } }

/* Banda de contacto */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); flex-wrap: wrap; padding: var(--s-48); background: var(--navy); border-radius: var(--radius-lg); color: #fff; }
.cta-band h2 { font-size: var(--fs-24); }
.cta-band p { margin-top: var(--s-8); color: #b9c6d8; }
@media (max-width: 640px) { .cta-band { padding: var(--s-32) var(--s-24); } .cta-band .btn { width: 100%; } }

/* ==========================================================================
   Tarjetas de producto
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.product-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .product-grid, .product-grid--pair { grid-template-columns: 1fr; } }

.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s; }
.product-card:hover { border-color: var(--border-strong); }
.product-card__media { display: block; aspect-ratio: 16 / 10; background: var(--brand-soft); border-bottom: 1px solid var(--border); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-24); }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); font-size: var(--fs-14); color: var(--text-3); font-weight: 700; }
.product-card__title { margin-top: var(--s-8); font-size: var(--fs-20); }
.product-card__title a { color: var(--text); }
.product-card__excerpt { margin-top: var(--s-8); color: var(--text-2); }
.product-card .checklist { margin-top: var(--s-16); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap; margin-top: auto; padding-top: var(--s-24); }

.tag { padding: 2px var(--s-8); border-radius: 4px; background: var(--bg-alt); color: var(--text-2); font-size: var(--fs-12); font-weight: 700; white-space: nowrap; }
.tag--sub { background: var(--sky-soft); color: #075e7a; }

.price { display: flex; align-items: baseline; gap: var(--s-4); white-space: nowrap; }
.price__amount { font-size: var(--fs-24); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price__period { color: var(--text-3); font-size: var(--fs-14); }
.price--lg .price__amount { font-size: var(--fs-32); }

.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--sky-soft)); }
.media-placeholder span { font-size: var(--fs-48); font-weight: 700; color: var(--brand); letter-spacing: -.04em; }

.checklist { list-style: none; display: grid; gap: var(--s-8); }
.checklist li { display: flex; gap: var(--s-8); align-items: flex-start; }
.checklist .icon { margin-top: 3px; color: var(--success); }
.checklist--sm li { font-size: var(--fs-14); color: var(--text-2); }

.empty { padding: var(--s-48) var(--s-24); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty h2, .empty h3 { font-size: var(--fs-20); }
.empty p { margin: var(--s-8) auto var(--s-24); color: var(--text-2); max-width: 46ch; }

/* ==========================================================================
   Página de producto
   ========================================================================== */
.product { padding-block: var(--s-48) var(--s-64); }
.product__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-48); align-items: start; }
.product__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--brand-soft); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.back-link { font-size: var(--fs-14); font-weight: 700; }
.product__title { margin-top: var(--s-8); font-size: var(--fs-32); }
.product__lead { margin-top: var(--s-12); color: var(--text-2); font-size: var(--fs-18); }
.buy-box { margin-top: var(--s-24); padding: var(--s-24); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.buy-box__note { margin: var(--s-8) 0 var(--s-16); color: var(--text-2); font-size: var(--fs-14); }
.buy-box__trust { list-style: none; display: grid; gap: var(--s-8); margin-top: var(--s-16); padding-top: var(--s-16); border-top: 1px solid var(--border); font-size: var(--fs-14); color: var(--text-2); }
.buy-box__trust li { display: flex; align-items: center; gap: var(--s-8); }
.buy-box__trust .icon { color: var(--brand); }
.product__subtitle { margin: var(--s-32) 0 var(--s-16); font-size: var(--fs-20); }
.product__content { margin-top: var(--s-48); padding-top: var(--s-32); border-top: 1px solid var(--border); }

.mobile-buy { display: none; }
@media (max-width: 900px) {
  .product { padding-top: var(--s-24); }
  .product__top { grid-template-columns: 1fr; gap: var(--s-24); }
  .product__title { font-size: var(--fs-24); }
  .mobile-buy {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s-12) var(--s-16) calc(var(--s-12) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(10, 37, 64, .08);
    transform: translateY(100%); transition: transform .2s;
  }
  .mobile-buy.is-visible { transform: none; }
  .mobile-buy strong { font-size: var(--fs-20); font-variant-numeric: tabular-nums; }
  .mobile-buy span { color: var(--text-3); font-size: var(--fs-14); }
  .single-dp_producto .wa-float { bottom: 88px; }
}

/* ==========================================================================
   Texto largo (términos, páginas)
   ========================================================================== */
.prose { color: var(--text-2); max-width: 70ch; }
.prose h2 { margin: var(--s-32) 0 var(--s-12); font-size: var(--fs-20); color: var(--text); }
.prose h3 { margin: var(--s-24) 0 var(--s-8); font-size: var(--fs-18); color: var(--text); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s-16); }
.prose ul, .prose ol { padding-left: var(--s-24); }
.prose li + li { margin-top: var(--s-4); }
.prose strong { color: var(--text); }

.nav-links { display: flex; gap: var(--s-8); margin-top: var(--s-32); }
.page-numbers { padding: var(--s-8) var(--s-12); border: 1px solid var(--border); border-radius: var(--radius); }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { margin-top: var(--s-32); padding-top: var(--s-48); background: var(--bg-alt); border-top: 1px solid var(--border); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-32); padding-bottom: var(--s-32); }
.site-footer__brand p { margin-top: var(--s-12); color: var(--text-2); max-width: 36ch; font-size: var(--fs-14); }
.site-footer__title { font-size: var(--fs-14); color: var(--text); margin-bottom: var(--s-12); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-8); }
.site-footer ul a { color: var(--text-2); font-size: var(--fs-14); }
.site-footer ul a:hover { color: var(--text); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap; padding-block: var(--s-16) var(--s-24); border-top: 1px solid var(--border); font-size: var(--fs-12); color: var(--text-3); }
.site-footer__secure { display: inline-flex; align-items: center; gap: var(--s-4); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

.wa-float {
  position: fixed; right: var(--s-16); bottom: var(--s-16); z-index: 45;
  display: inline-flex; align-items: center; gap: var(--s-8); height: 48px; padding: 0 var(--s-16) 0 var(--s-12);
  background: #128c4b; color: #fff; border-radius: var(--radius); font-weight: 700; font-size: var(--fs-14);
  box-shadow: var(--shadow-pop); transition: background-color .15s;
}
.wa-float:hover { background: #0e7340; color: #fff; text-decoration: none; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 0 var(--s-12); } .site-main { padding-bottom: var(--s-48); } }

/* ==========================================================================
   Plugin: página "Mi acceso" y avisos
   ========================================================================== */
.dp-access { display: grid; gap: var(--s-24); }
.dp-access__card { padding: var(--s-32); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.dp-access__card h2 { font-size: var(--fs-20); }
.dp-access__card > p { margin-top: var(--s-8); }
.dp-access__help { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); }
.dp-access__help h3 { font-size: var(--fs-16); }
.dp-access__help p { margin: var(--s-4) 0 var(--s-8); font-size: var(--fs-14); }
@media (max-width: 560px) { .dp-access__card { padding: var(--s-24) var(--s-16); } .dp-access__help { grid-template-columns: 1fr; } }

.dp-muted { color: var(--text-2); }
.dp-small { font-size: var(--fs-14); }
.dp-link { font-weight: 700; font-size: var(--fs-14); }

.dp-form { display: grid; gap: var(--s-16); margin-top: var(--s-24); }
.dp-field { display: grid; gap: var(--s-8); }
.dp-field label { font-weight: 700; font-size: var(--fs-14); }
.dp-field input {
  width: 100%; min-height: 48px; padding: 0 var(--s-16);
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff;
  font: 400 var(--fs-16) var(--font); color: var(--text);
}
.dp-field input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.dp-help { font-size: var(--fs-12); color: var(--text-3); }

.dp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-24); border: 1px solid transparent; border-radius: var(--radius); font: 700 var(--fs-16)/1 var(--font); cursor: pointer; white-space: nowrap; }
.dp-btn--primary { background: var(--brand); color: #fff; }
.dp-btn--primary:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.dp-btn--block { width: 100%; }

.dp-notice { padding: var(--s-12) var(--s-16); border-radius: var(--radius); border: 1px solid; font-size: var(--fs-14); }
.dp-notice--success { background: var(--success-soft); border-color: #bfe6d4; color: #0b5e41; }
.dp-notice--error { background: var(--danger-soft); border-color: #f5c4c9; color: #9b1c27; }
.dp-notice--info { background: var(--brand-soft); border-color: #c8dafd; color: #0a3a9e; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
