/* =========================================================
   JDER · Páginas de contenido (blog, guías, precios, términos, reseñas)
   Se carga DESPUÉS de jder.css: usa sus mismos tokens (negro, rojo JDER,
   blanco), botones, header y pie. Acá solo se define la lectura.
   ========================================================= */
.seo { --w: 760px; }
.seo .top { padding-inline: max(14px, calc((100vw - 980px) / 2)); }
.seo .brand img { height: 40px; width: auto; }
.hpill { text-decoration: none; }
.hpill-red { background: linear-gradient(to right, var(--red), var(--red-2)); border-color: transparent; box-shadow: var(--red-glow); color: #fff; }
.hpill-red:hover { box-shadow: 0 0 24px rgba(229, 9, 20, .7); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Sub-navegación de la sección (chips) */
.seo-sub { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 12px max(14px, calc((100vw - var(--w)) / 2)); border-bottom: 1px solid var(--line); background: rgba(8, 8, 8, .6); }
.seo-sub::-webkit-scrollbar { display: none; }
.seo-sub-k { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); margin-right: 4px; }
.seo-sub a { flex: none; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seo-sub a:hover { border-color: var(--text); color: #fff; }
.seo-sub a[aria-current="page"] { background: var(--red-soft); border-color: var(--red-line); color: #fff; }

/* Columna de lectura */
.seo-main { max-width: var(--w); margin: 0 auto; padding: 0 16px 8px; }
.seo-main a:not(.btn):not(.s-link):not(.terms-option):not(.terms-index-link):not(.review-button) { color: var(--red-hi); text-decoration: underline; text-decoration-color: rgba(255, 51, 62, .45); text-underline-offset: 3px; }
.seo-main a:not(.btn):hover { text-decoration-color: currentColor; }
.seo-main p { margin: 0 0 14px; color: var(--text-2); line-height: 1.72; }
.seo-main strong { color: #fff; }
.seo-main h2 { font-size: clamp(21px, 4.6vw, 26px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 34px 0 12px; color: #fff; }
.seo-main h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 22px 0 8px; color: #fff; }

/* Hero */
.s-hero { position: relative; padding: 28px 0 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.s-hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px; background: var(--red); box-shadow: var(--red-glow); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.seo-main .crumbs a:not(.btn) { color: var(--muted); text-decoration: none; }
.seo-main .crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--text-2); }
.s-hero .eyebrow { margin-bottom: 8px; }
.seo-main .s-title { margin: 0; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.04; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.seo-main .s-lead { margin: 14px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--text-2); }
.s-hero .stars { display: block; margin-top: 12px; color: var(--gold); font-size: 24px; letter-spacing: .12em; }

/* Botones en contenido */
.s-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.s-actions .btn { flex: 1 1 220px; min-height: 52px; font-size: 15px; }
.s-actions .btn-main { flex: 1 1 220px; }
.btn-ghost.btn { border-style: solid; text-decoration: none; }
.seo-main .btn { text-decoration: none; }
.seo-main .btn-wa { color: var(--wa-ink); }
.seo-main .btn-main { color: #fff; }

/* Artículo */
.s-article { padding-top: 6px; }
.s-article > h2:first-child { margin-top: 22px; }
.s-article h2 { padding-left: 14px; border-left: 3px solid var(--red); }
.s-article ul, .s-card ul, .article ul, .notes ul { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 8px; }
.s-article ul li, .s-card ul li, .article ul li, .notes ul li { position: relative; padding: 12px 14px 12px 36px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--text-2); line-height: 1.55; }
.s-article ul li::before, .s-card ul li::before, .article ul li::before, .notes ul li::before { content: ""; position: absolute; left: 15px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(229, 9, 20, .6); }
.s-article ol { padding-left: 22px; color: var(--text-2); }
.s-article ol li { margin-bottom: 8px; }

/* Tarjetas (FAQ, relacionados, paneles) */
.s-faq, .s-related, .s-card, .side-card, .callout, .price-panel, .notes, .terms-chooser-card, .terminos-bloque, .review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.s-faq, .s-related { margin: 26px 0; padding: 20px 18px 6px; }
.seo-main .s-faq h2, .seo-main .s-related h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 20px; }
.s-faq h3 { color: #fff; font-size: 16.5px; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.s-faq h2 + h3 { border-top: 0; padding-top: 0; }

/* Secciones tipo Versus */
.s-body { padding-top: 6px; }
.s-sec { margin: 26px 0; }
.seo-main .s-h2 { margin: 0 0 14px; }
.s-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.s-grid:has(> .s-col > article), .s-grid:has(> .s-col > aside) { grid-template-columns: 1fr; }
.s-col { min-width: 0; display: grid; }
.s-card { padding: 18px; }
.s-card > :first-child { margin-top: 0; }
.seo-main .s-card h2 { font-size: 20px; margin-top: 0; }
.seo-main .s-card h3 { margin-top: 0; }
.s-card p:last-child { margin-bottom: 0; }
.s-accent { border-color: var(--red-line); background: linear-gradient(145deg, rgba(229, 9, 20, .14), rgba(13, 13, 14, .94) 60%); }
.stat-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.stat-line::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(229, 9, 20, .6); }

/* Tarjetas de enlace (seguir leyendo) */
.s-link { display: block; height: 100%; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; position: relative; }
.s-link::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--red-hi); font-weight: 700; }
.s-link:hover { transform: translateY(-2px); border-color: var(--red-line); }
.seo-main .s-link h3 { margin: 0 24px 6px 0; font-size: 17px; }
.seo-main .s-link p { margin: 0; font-size: 14.5px; color: var(--muted); }
.s-link > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 6px; }

/* Bloques tipo Historias Ocultas */
.layout { display: grid; gap: 18px; }
.article h2:first-child { margin-top: 18px; }
.article h2 { padding-left: 14px; border-left: 3px solid var(--red); }
.callout { padding: 16px 18px; margin: 18px 0; border-color: var(--red-line); border-left: 4px solid var(--red); }
.callout p { margin: 0 !important; }
.faq { display: grid; gap: 10px; margin-top: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-hi); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }
.side-card { padding: 18px; align-self: start; }
.seo-main .side-card h2 { margin-top: 0; font-size: 19px; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; }
.fact-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.fact-list li:first-child { border-top: 0; }
.more { margin: 30px 0 10px; }
.more .eyebrow { margin-bottom: 4px; }
.seo-main .more h2 { margin-top: 0; }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Cierre con llamado a la acción */
.s-cta { margin: 34px 0 10px; padding: 24px 20px; border-radius: var(--r-xl); text-align: center; border: 1px solid var(--red-line); background: radial-gradient(circle at 50% 0%, rgba(229, 9, 20, .28), transparent 70%), var(--card); box-shadow: var(--shadow); }
.seo-main .s-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 5vw, 28px); text-transform: uppercase; }
.s-cta p { margin-bottom: 0; }
.s-cta .s-actions { justify-content: center; }

/* Precios */
.price-panel { padding: 18px; margin: 18px 0; }
.seo-main .price-panel h2 { margin: 0 0 12px; font-size: 20px; }
.table-responsive { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; border-bottom: 1px solid var(--line-2); }
.price-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .amount { font-family: var(--f-mono); font-weight: 500; color: #fff; white-space: nowrap; }
.price-table th:not(:first-child), .price-table td.amount { text-align: right; }
.notes { padding: 18px; margin: 18px 0; }
.seo-main .notes h2 { margin: 0 0 6px; font-size: 20px; }
.s-actions-end { margin-bottom: 8px; }

/* Reseñas */
.review-grid { display: grid; gap: 12px; margin: 22px 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.review-card { padding: 18px; display: grid; gap: 14px; align-content: start; }
.brand-area { display: grid; place-items: center; min-height: 96px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.brand-area img { width: 150px; }
.seo-main .review-card h2 { margin: 0 0 10px; font-size: 18px; text-align: center; }
.review-card .actions { display: grid; gap: 8px; }
.review-button { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; background: linear-gradient(to right, var(--red), var(--red-2)); box-shadow: var(--red-glow); }
.review-button.secondary { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); box-shadow: none; }
.review-button:hover { filter: brightness(1.08); }

/* Términos y condiciones (mantiene el selector original) */
.s-terms { padding-bottom: 10px; }
.terms-index { display: grid; gap: 10px; margin-top: 22px; }
.terms-index-link { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--card); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.terms-index-link::after { content: "Ver opciones →"; font-size: 13px; font-weight: 600; color: var(--red-hi); }
.terms-index-link:hover { border-color: var(--red-line); border-left-color: var(--red); }
.terms-chooser { margin-top: 20px; }
.terms-chooser-card { padding: 18px; margin-bottom: 12px; }
.terms-card-icon { display: none; }
.seo-main .terms-chooser-card h2 { margin: 0; font-size: 18px; text-transform: uppercase; }
.terms-chooser-card p { margin: 4px 0 14px; color: var(--muted); }
.terms-options { display: grid; gap: 8px; }
.terms-option { display: flex; align-items: center; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #fff; font-weight: 600; text-decoration: none; }
.terms-option::after { content: "Ver términos"; margin-left: auto; padding-left: 12px; font-size: 13px; color: var(--muted); }
.terms-option[aria-current="true"] { border-color: var(--red-line); background: var(--red-soft); }
.terms-option:hover { border-color: var(--text); }
.terms-price-option { border-color: var(--red-line); background: var(--red-soft); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
.terms-price-option::after { content: "Ver precios"; color: #fff; font-weight: 700; }
.terms-index-page #termsChooser, .terms-index-page #termsContact, .terms-subpage #termsIndex { display: none; }
.terms-page-particulares .terms-chooser-card:not([data-category="particulares"]),
.terms-page-cumpleanos .terms-chooser-card:not([data-category="cumpleanos"]),
.terms-page-colegios .terms-chooser-card:not([data-category="colegios-empresas"]) { display: none; }
.d-none { display: none !important; }
.terms-section { display: none; }
.terms-section.is-active { display: block; }
.terminos-bloque { padding: 20px 18px; margin-top: 18px; }
.seo-main .terminos-bloque h2 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--red-line); font-size: 21px; color: #fff; scroll-margin-top: 80px; }
.seo-main .terminos-bloque h3 { font-size: 17px; margin: 22px 0 12px; }
.terminos-bloque ol, .terminos-bloque ul { padding-left: 22px; color: var(--text-2); }
.terminos-bloque ol > li { margin-bottom: 18px; }
.terminos-bloque ul > li { margin-bottom: 8px; }
.terminos-bloque li strong { color: #fff; }
.terminos-bloque li p { margin: 6px 0; }
.terminos-bloque hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.alert-warning { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(242, 215, 125, .5); background: rgba(242, 215, 125, .08); color: var(--gold); font-weight: 600; margin: 16px 0; }
.alert-warning * { color: var(--gold) !important; }
.terms-context-note { padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--red); background: rgba(255, 255, 255, .04); color: var(--text-2); margin-bottom: 16px; }
#termsContact { margin-top: 20px; text-align: center; }
#termsContact a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; background: var(--wa); color: var(--wa-ink) !important; font-weight: 700; text-decoration: none !important; }
.s-terms footer { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
.s-terms footer p { color: var(--muted); }

/* Pie: misma pieza que la página principal, centrada */
.seo-foot { max-width: var(--w); margin: 0 auto; }

@media (min-width: 760px) {
  .seo-main { padding-inline: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; }
  .side-card { position: sticky; top: 90px; margin-top: 26px; }
  .s-grid:has(> .s-col > article) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .terms-options { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .terms-price-option { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .hpill span { display: none; }
  .hpill { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-link { transition: none; }
}
