﻿/* ============================================================
   Noruegaya â€” Estilos de pÃ¡ginas interiores y calculadora
   ============================================================ */

/* ---- Page hero (blog, herramientas, calculadora) ---- */
.page-hero {
  padding: 4rem 0 3.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 65%);
  opacity: .45;
  pointer-events: none;
}

.page-hero--green::before {
  background: radial-gradient(circle, var(--green-light) 0%, transparent 65%);
}


.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  position: relative;
}

.page-hero__title em {
  font-style: italic;
  color: var(--primary);
}

html[data-theme="dark"] .page-hero__title em {
  color: var(--accent);
}
html[data-theme="dark"] .result-row--net {
  background: var(--green-light);
}

.page-hero--green .page-hero__title em { color: var(--green); }

.guide-count {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border);
  border-radius: 99px;
  padding: .15rem .6rem;
  vertical-align: middle;
  margin-left: .3rem;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.72;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.back-link:hover { color: var(--text); }


/* ---- Blog filters ---- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  position: relative;
}

.filter-btn {
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: background .15s, color .15s, border-color .15s;
}

.filter-btn:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}


/* ---- Blog listing ---- */
.blog-listing {
  padding: 3rem 0 6rem;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .blog-listing { background-color: #0A0A08; }
.blog-listing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/web/Oslo-corporativo.webp');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.blog-listing.photo-ready::before { opacity: 1; }
.blog-listing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 248, 246, .72);
  z-index: 1;
  pointer-events: none;
}
html[data-theme="dark"] .blog-listing::after { background: rgba(0,10,22,.88); }
.blog-listing > * { position: relative; z-index: 2; }
.blog-listing .article-card { background: var(--white); }

/* ArtÃ­culo destacado */
.article-featured {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.75rem;
  transition: box-shadow .22s, transform .22s;
}
.article-featured:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-featured__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.article-featured__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

.article-featured__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color .15s;
}
.article-featured:hover .article-featured__title { color: var(--primary); }

.article-featured__excerpt {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}


/* ---- Secciones por categorÃ­a ---- */
.guide-section__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

.guide-section__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-section__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-section__icon--burocracia { background: rgba(0,51,102,.1); }
.guide-section__icon--burocracia svg { stroke: var(--primary); }
.guide-section__icon--trabajo    { background: rgba(192,80,56,.1); }
.guide-section__icon--trabajo svg { stroke: #9A3820; }
.guide-section__icon--vivienda   { background: rgba(0,51,102,.1); }
.guide-section__icon--vivienda svg { stroke: var(--primary); }
.guide-section__icon--fiscal     { background: rgba(26,122,72,.1); }
.guide-section__icon--fiscal svg { stroke: var(--green); }
.guide-section__icon--vida         { background: rgba(192,80,56,.1); }
.guide-section__icon--vida svg     { stroke: #9A3820; }
.guide-section__icon--naturaleza   { background: rgba(26,122,72,.1); }
.guide-section__icon--naturaleza svg { stroke: var(--green); }
.guide-section__icon--ciudades     { background: rgba(0,51,102,.1); }
.guide-section__icon--ciudades svg { stroke: var(--primary); }
.guide-section__icon--experiencias { background: rgba(139,76,175,.1); }
.guide-section__icon--experiencias svg { stroke: var(--purple); }

html[data-theme="dark"] .guide-section__icon--burocracia { background: rgba(0,51,102,.3); }
html[data-theme="dark"] .guide-section__icon--burocracia svg { stroke: #7AABDB; }
html[data-theme="dark"] .guide-section__icon--trabajo    { background: rgba(192,80,56,.2); }
html[data-theme="dark"] .guide-section__icon--trabajo svg { stroke: #D4826A; }
html[data-theme="dark"] .guide-section__icon--vivienda   { background: rgba(0,51,102,.3); }
html[data-theme="dark"] .guide-section__icon--vivienda svg { stroke: #7AABDB; }
html[data-theme="dark"] .guide-section__icon--fiscal     { background: rgba(26,122,72,.2); }
html[data-theme="dark"] .guide-section__icon--fiscal svg { stroke: #4EBE82; }
html[data-theme="dark"] .guide-section__icon--vida         { background: rgba(192,80,56,.2); }
html[data-theme="dark"] .guide-section__icon--vida svg     { stroke: #D4826A; }
html[data-theme="dark"] .guide-section__icon--naturaleza   { background: rgba(26,122,72,.2); }
html[data-theme="dark"] .guide-section__icon--naturaleza svg { stroke: #4EBE82; }
html[data-theme="dark"] .guide-section__icon--ciudades     { background: rgba(0,51,102,.3); }
html[data-theme="dark"] .guide-section__icon--ciudades svg { stroke: #7AABDB; }
html[data-theme="dark"] .guide-section__icon--experiencias { background: rgba(139,76,175,.2); }
html[data-theme="dark"] .guide-section__icon--experiencias svg { stroke: #C08EE8; }

/* Tarjetas turismo: fondo blanco para contrastar con secciÃ³n */
.blog-listing--turismo {
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .blog-listing--turismo { background-color: #0A0A08; }
.blog-listing--turismo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/web/Calle-noruega.webp');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.blog-listing--turismo.photo-ready::before { opacity: 1; }
.blog-listing--turismo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 248, 246, .72);
  z-index: 1;
  pointer-events: none;
}
html[data-theme="dark"] .blog-listing--turismo::after { background: rgba(0,10,22,.88); }
.blog-listing--turismo > * { position: relative; z-index: 2; }
.blog-listing--turismo .article-card { background: var(--white); }

.guide-section__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.guide-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.guide-section[hidden] { display: none; }

/* Grid de artÃ­culos normales (kept for other uses) */
.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Layout por secciones (guÃ­as main) â€” debe ir despuÃ©s de la regla base */
.blog-listing__grid--sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-listing__empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Badge en tarjeta destacada */
.article-card__featured-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: .1rem;
}

.article-card--featured {
  border: 2px solid var(--primary);
  border-top: 3px solid var(--primary);
}

/* ArtÃ­culo oculto por filtro */
.article-card[hidden],
.article-featured[hidden] { display: none; }


/* ---- Herramientas listing ---- */
.tools-listing {
  padding: 3rem 0 5.5rem;
  background-color: var(--bg);
  position: relative;
}
.tools-listing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/web/Arquitectura.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tools-listing.photo-ready::before { opacity: 1; }
.tools-listing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 248, 246, .72);
  z-index: 1;
  pointer-events: none;
}
html[data-theme="dark"] .tools-listing::after {
  background: rgba(0,10,22,.88);
}
.tools-listing > * { position: relative; z-index: 2; }

/* Herramienta destacada */
.tool-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.tool-feature__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-feature__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.tool-feature__desc {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.tool-feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.75rem;
}
.tool-feature__list li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
}
.tool-feature__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .82rem;
}

.tools-listing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Banner prÃ³ximamente */
.tools-coming {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  flex-wrap: wrap;
}

.tools-coming__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tools-coming__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tools-coming__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.tools-coming__desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.tools-coming .btn { margin-left: auto; }

.tools-group__disclaimer {
  font-size: .72rem;
  color: var(--text-muted);
  opacity: .7;
}

.tool-notice {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.tool-notice__box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 700px;
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
}

.tool-notice__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.tool-notice__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  display: block;
}

.tool-notice__label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

.tool-notice__body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}


/* ---- Grupos de herramientas ---- */
.tools-group {
  margin-bottom: 4rem;
}

.tools-group__header {
  margin-bottom: 2rem;
}

.tools-group__chip {
  display: inline-flex;
  align-items: center;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,51,102,.2);
  border-radius: 999px;
  padding: .2rem .7rem;
}

.tools-group__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Tarjetas en modo expandido */
.tool-card--large {
  padding: 2rem;
}

/* Badge "Recomendado" */
.tool-card--accent-green {
  border: 2px solid var(--green);
}
html[data-theme="dark"] .tool-card--accent-green {
  border-color: #52c48a;
}

.tool-card--accent-blue {
  border: 2px solid #3b6bc8;
}
html[data-theme="dark"] .tool-card--accent-blue {
  border-color: #6b9bf0;
}

.tool-card--accent-amber {
  border: 2px solid #b07d2a;
}
html[data-theme="dark"] .tool-card--accent-amber {
  border-color: #d4a84b;
}

/* Badge en guÃ­a destacada (mismo formato) */
.article-card--featured {
  border: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  position: relative;
}

.article-card__featured-badge {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 0 0 6px 6px;
  display: block;
  margin-bottom: 0;
}

/* Badge y borde por categorÃ­a */
.article-card--featured[data-cat="burocracia"],
.article-card--featured[data-cat="vivienda"]  { border-color: var(--primary); }
.article-card--featured[data-cat="burocracia"] .article-card__featured-badge,
.article-card--featured[data-cat="vivienda"]  .article-card__featured-badge { background: var(--primary); }

.article-card--featured[data-cat="trabajo"],
.article-card--featured[data-cat="vida"]      { border-color: #9A3820; }
.article-card--featured[data-cat="trabajo"]   .article-card__featured-badge,
.article-card--featured[data-cat="vida"]      .article-card__featured-badge { background: #9A3820; }

.article-card--featured[data-cat="fiscal"]    { border-color: var(--green); }
.article-card--featured[data-cat="fiscal"]    .article-card__featured-badge { background: var(--green); }

/* Badge "Gratis" */
.article-card--free { border-color: var(--green); }
.article-card--free .article-card__featured-badge { background: var(--green); }

.tool-card--large .tool-card__title {
  font-size: 1.15rem;
}

.tool-card--large .tool-card__desc {
  font-size: .92rem;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  display: block;
}

/* Variantes de color para los iconos */
.tool-card__icon--green {
  background: var(--green-light);
}
.tool-card__icon--green svg {
  stroke: var(--green);
}
html[data-theme="dark"] .tool-card__icon--green {
  background: #0a2318;
}
html[data-theme="dark"] .tool-card__icon--green svg {
  stroke: #52c48a;
}

.tool-card__icon--blue {
  background: #e8f0fe;
  color: #3b6bc8;
}
.tool-card__icon--blue svg {
  stroke: #3b6bc8;
}
html[data-theme="dark"] .tool-card__icon--blue {
  background: #0e1e40;
}

.tool-card__icon--amber {
  background: #fef3e2;
}
.tool-card__icon--amber svg {
  stroke: #b07d2a;
}
html[data-theme="dark"] .tool-card__icon--amber {
  background: #2a1e08;
}
html[data-theme="dark"] .tool-card__icon--amber svg {
  stroke: #d4a84b;
}

.tool-card__icon--purple {
  background: #f3effe;
}
.tool-card__icon--purple svg {
  stroke: #6d3ec4;
}
html[data-theme="dark"] .tool-card__icon--purple {
  background: #1a0e30;
}
html[data-theme="dark"] .tool-card__icon--purple svg {
  stroke: #9d71e8;
}


/* ---- Calculadora ---- */
.calc-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.calc-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 65%);
  opacity: .45;
  pointer-events: none;
}

.calc-body {
  padding: 2rem 0 5.5rem;
  background: var(--bg);
}

.calc-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Panel izquierdo */
.calc-panel {
  background: var(--white);
  border: 1.5px solid #c0705a;
  border-radius: var(--r-lg);
  padding: 2rem;
  position: sticky;
  top: 80px;
}

.calc-panel__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.5rem; }

.field__label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.field__hint {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: .1rem;
}

.field__input-wrap {
  position: relative;
}

.field__input {
  width: 100%;
  padding: .7rem 3rem .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field__input:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.field__select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6A82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  cursor: pointer;
}

.field__suffix {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.field__note {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* Slider */
.slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--green);
  cursor: pointer;
  transition: box-shadow .15s;
}
.slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(26,122,72,.2);
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--green);
  cursor: pointer;
}

.slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  flex-shrink: 0;
  margin-top: .05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--green);
  border-color: var(--green);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.calc-btn { width: 100%; justify-content: center; margin-top: .5rem; }


/* Panel de resultados */
.calc-results {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.result-highlight {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.result-highlight__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .6rem;
}

.result-highlight__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}

.result-highlight__sub {
  font-size: .9rem;
  opacity: .75;
}

.result-breakdown {
  display: block;
  padding: 2rem;
}

.result-breakdown__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.result-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: none; }

.sistema-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: .25rem;
}
.sistema-toggle__btn {
  flex: 1;
  padding: .55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.sistema-toggle__btn.active {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--text);
}

.result-row--info {
  background: var(--bg);
  margin: 0 -2rem;
  padding: .35rem 2rem;
  border-bottom: 1px solid var(--border);
}
.result-row--info .result-row__label {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}
.result-row--info .result-row__value {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.result-row--total {
  background: var(--bg);
  margin: 0 -2rem;
  padding: .65rem 2rem;
  border-bottom: none;
  border-top: 2px solid var(--border);
}

.result-row--net {
  background: #EAF5EE;
  margin: 0 -2rem;
  padding: .8rem 2rem;
  border-bottom: none;
}

.result-row__label {
  font-size: .87rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.result-row--total .result-row__label,
.result-row--net .result-row__label {
  font-weight: 600;
  color: var(--text);
}

.result-row__rate {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
}

.result-row--deduction .result-row__label { color: var(--text); }

.result-row__value {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
}

.result-row--deduction .result-row__value { color: #C0392B; }

.result-row__value--green { color: var(--green) !important; }

.result-row--total .result-row__value { font-size: 1rem; }
.result-row--net .result-row__value {
  font-size: 1.1rem;
  color: var(--green);
}

/* Barra tipo efectivo */
.result-rate {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.result-rate__bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: .6rem;
}

.result-rate__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e5a30, var(--green));
  transition: width .4s ease;
}

.result-rate__labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
}
.result-rate__labels strong { color: var(--text); }

.calc-disclaimer {
  padding: 1rem 2rem 1.5rem;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}


/* SecciÃ³n explicativa */
.calc-explainer {
  padding-top: 1rem;
}

.calc-explainer__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.calc-explainer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.explainer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
}

.explainer-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.explainer-card {
  position: relative;
  cursor: pointer;
}
[data-n360="true"] .explainer-card {
  cursor: auto;
}
.explainer-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  filter: blur(4px);
  user-select: none;
  transition: filter .25s ease;
}
[data-n360="true"] .explainer-card p {
  filter: none;
  user-select: auto;
}

.explainer-card strong { color: var(--text); }

.calc-explainer__cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.calc-explainer__cta p {
  font-size: .95rem;
  color: var(--text-muted);
  flex: 1;
}


/* ---- Article page ---- */
.article-layout {
  padding: 3rem 0 5.5rem;
  background: var(--bg);
}

.article-layout__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.article-content {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  scroll-margin-top: 90px;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 .75rem;
}

.article-content p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 1.25rem;
}

.article-content strong { color: var(--text); font-weight: 600; }

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-references a { word-break: break-all; }

.calc-references {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

.calc-references__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
}

.calc-references__intro {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 55ch;
}

.calc-references .article-references {
  counter-reset: ref;
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-references .article-references a {
  word-break: normal;
}

.calc-references .article-references li {
  counter-increment: ref;
  display: grid;
  grid-template-columns: 2.25rem 13rem 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: .3rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-references .article-references li:last-child {
  border-bottom: none;
}

.calc-references .article-references li::before {
  content: counter(ref, decimal-leading-zero);
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: .02em;
  align-self: center;
}

.ref-value {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.ref-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .83rem;
  line-height: 1.3;
  transition: color .15s;
}

.ref-link:hover {
  color: var(--primary);
}

.ref-link__org {
  display: inline-block;
  padding: .1rem .4rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}

.ref-link:hover .ref-link__org {
  border-color: var(--primary);
  color: var(--primary);
}

.ref-link__arrow {
  width: .7rem;
  height: .7rem;
  flex-shrink: 0;
  opacity: .4;
  transition: opacity .15s, transform .15s;
}

.ref-link:hover .ref-link__arrow {
  opacity: .8;
  transform: translate(1px, -1px);
}

@media (max-width: 600px) {
  .calc-references .article-references li {
    grid-template-columns: 2.25rem 1fr;
    row-gap: .4rem;
  }
  .calc-references .article-references .ref-link {
    grid-column: 2;
  }
}

.article-content li {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.68;
  padding-left: .25rem;
}

.article-content a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Callout / info box */
.callout {
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout--green {
  border-color: var(--green);
  background: var(--green-light);
}

.callout p {
  margin-bottom: 0 !important;
  font-size: .9rem !important;
  color: var(--text) !important;
}

.callout strong { color: var(--primary-dark) !important; }
.callout--green strong { color: var(--green) !important; }

/* Step list */
.step-list {
  list-style: none !important;
  margin-left: 0 !important;
  counter-reset: steps;
  gap: 1rem !important;
}

.step-list li {
  counter-increment: steps;
  display: flex !important;
  gap: 1rem;
  padding: 1rem 1.25rem !important;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.step-list li::before {
  content: counter(steps);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.sidebar-card--toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sidebar-card--toc a {
  font-size: .83rem;
  color: var(--text-muted);
  transition: color .15s;
  display: block;
  padding: .2rem 0;
  border-left: 2px solid transparent;
  padding-left: .6rem;
  transition: color .15s, border-color .15s;
}
.sidebar-card--toc a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-card--cta {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  text-align: center;
}

.sidebar-card--cta .sidebar-card__title { color: white; }

.sidebar-card--cta p {
  font-size: .85rem;
  opacity: .85;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.sidebar-card--cta .btn {
  width: 100%;
  justify-content: center;
  background: white;
  color: var(--primary);
  font-weight: 700;
}
.sidebar-card--cta .btn:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0 0;
}

.article-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .65rem 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.article-nav a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   ARTICLE PAGE â€” apunte individual
   ============================================================ */

/* Cabecera */
.article-hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 65%);
  opacity: .4;
  pointer-events: none;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  position: relative;
}
.article-hero__meta time,
.article-hero__meta span:not(.tag):not(.article-card__meta-dot) {
  font-size: .82rem;
  color: var(--text-muted);
}
.article-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  position: relative;
}
.article-hero__title em {
  font-style: italic;
  color: var(--primary);
}
.article-hero__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 700px;
  position: relative;
}

/* Layout dos columnas */
.article-body {
  padding: 3rem 0 5rem;
  background: var(--bg);
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Callouts */
.article-callout {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  border-left: 3px solid;
}
.article-callout strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text) !important;
}
.article-callout p {
  margin-bottom: 0 !important;
  font-size: .88rem !important;
  line-height: 1.65 !important;
}
.article-callout--info {
  background: var(--primary-light);
  border-color: var(--primary);
}
.article-callout--info strong { color: var(--primary-dark) !important; }
.article-callout--warn {
  background: #fef5e4;
  border-color: #c8872a;
}
.article-callout--warn strong { color: #7a4f10 !important; }
html[data-theme="dark"] .article-callout--warn { background: #2a1e08; border-color: #c8872a; }
html[data-theme="dark"] .article-callout--warn strong { color: #d4a84b !important; }
.article-callout--tip {
  background: var(--green-light);
  border-color: var(--green);
}
.article-callout--tip strong { color: var(--green) !important; }
.article-callout--alert {
  background: #fdecea;
  border-color: var(--red);
}
.article-callout--alert strong { color: #8b1a0a !important; }
html[data-theme="dark"] .article-callout--alert { background: rgba(181,71,44,.12); border-color: var(--red); }
html[data-theme="dark"] .article-callout--alert strong { color: #e07060 !important; }

/* Tables inside article-content */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: .88rem;
  overflow-x: auto;
  display: block;
}
.article-content table th {
  background: var(--primary);
  color: #fff;
  padding: 9px 13px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.15);
}
.article-content table td {
  padding: 8px 13px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}
.article-content table tr:nth-child(odd)  td { background: var(--bg); }
.article-content table tr:nth-child(even) td { background: var(--white); }
html[data-theme="dark"] .article-content table th { background: #0D2340; }
html[data-theme="dark"] .article-content table tr:nth-child(even) td { background: rgba(255,255,255,.03); }

/* FAQ acordeÃ³n */
.article-faq {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: .2rem 0;
  overflow: hidden;
}
.article-faq summary {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text);
  padding: 1rem 3rem 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: block;
  position: relative;
  user-select: none;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.article-faq[open] summary::after { content: ‘\2212’; }
.article-faq[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.article-faq p {
  padding: 1rem 1.25rem;
  font-size: .88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* Sidebar */
.sidebar-card__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: block;
}
.sidebar-card--tool {
  background: var(--primary-light);
  border-color: var(--red);
}
.sidebar-card--tool .sidebar-card__title {
  font-size: .95rem;
  margin-bottom: .4rem;
}
.sidebar-card--tool p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.sidebar-toc__item {
  font-size: .82rem;
  color: var(--text-muted);
  padding: .3rem .6rem;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color .15s, border-color .15s, background .15s;
  display: block;
}
.sidebar-toc__item:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-related:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related:first-of-type { padding-top: .25rem; }
.sidebar-related__title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: color .15s;
}
.sidebar-related:hover .sidebar-related__title { color: var(--primary); }


/* Responsive artÃ­culo */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}


/* ============================================================
   RESPONSIVE â€” pÃ¡ginas interiores
   ============================================================ */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel { position: static; }

  .article-layout__inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {


  .blog-listing__grid { grid-template-columns: repeat(2, 1fr); }
  .guide-section__grid { grid-template-columns: repeat(2, 1fr); }

  .tools-listing__grid { grid-template-columns: 1fr; }

  .tool-feature {
    grid-template-columns: 1fr;
  }

  .tools-group__grid { grid-template-columns: 1fr; }

  .calc-explainer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-hero { padding: 2.5rem 0 2rem; }

  .blog-listing__grid { grid-template-columns: 1fr; }
  .guide-section__grid { grid-template-columns: 1fr; }

  .blog-filters { gap: .4rem; }
  .filter-btn { font-size: .78rem; padding: .35rem .85rem; }

  .calc-panel { padding: 1.5rem; }
  .calc-results .result-highlight { padding: 2rem 1.5rem 1.5rem; }
  .result-breakdown { padding: 1.5rem; }
  .result-row--total, .result-row--net { margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .result-rate, .calc-disclaimer { padding-left: 1.5rem; padding-right: 1.5rem; }

  .article-content { padding: 1.75rem; }

  .tools-coming { flex-direction: column; align-items: flex-start; }
  .tools-coming .btn { margin-left: 0; }
}

/* ---- Breakdown lock state ---- */
.result-breakdown.is-locked > .result-row:not(.result-row--net),
.result-breakdown.is-locked > #rows-ordinario,
.result-breakdown.is-locked > #row-paye {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.breakdown-lock { display: none; }
.result-breakdown.is-locked .breakdown-lock {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .75rem;
  padding: .5rem .85rem;
  background: rgba(0,51,102,.05);
  border: 1px solid rgba(0,51,102,.12);
  border-radius: 8px;
  font-size: .78rem;
  color: var(--text-muted);
}
.breakdown-lock svg { flex-shrink: 0; }
.breakdown-lock a { color: var(--primary); font-weight: 600; text-decoration: none; }
.breakdown-lock a:hover { text-decoration: underline; }
html[data-theme="dark"] .result-breakdown.is-locked .breakdown-lock {
  background: rgba(91,155,213,.07);
  border-color: rgba(91,155,213,.18);
}

/* Desbloqueo CSS cuando el usuario tiene n360 activo */
html[data-n360="true"] .result-breakdown.is-locked > .result-row:not(.result-row--net),
html[data-n360="true"] .result-breakdown.is-locked > #rows-ordinario,
html[data-n360="true"] .result-breakdown.is-locked > #row-paye {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}
html[data-n360="true"] .result-breakdown.is-locked .breakdown-lock { display: none; }

html[data-theme="dark"] .result-highlight {
  background: #1A5C38;
}

html[data-theme="dark"] .slider {
  background: #505050;
}

html[data-theme="dark"] .field__input {
  border: none !important;
  box-shadow: inset 0 0 0 1.5px #505050 !important;
}
html[data-theme="dark"] .field__input:focus {
  border: none !important;
  box-shadow: inset 0 0 0 1.5px var(--green) !important;
}

html[data-theme="dark"] .tools-group__chip {
  color: rgba(200,215,235,.95);
  border-color: rgba(200,215,235,.3);
  background: rgba(255,255,255,.09);
}

html[data-theme="dark"] .tool-card__tag {
  color: rgba(200,215,235,.55);
}

html[data-theme="dark"] .tool-card__link {
  color: var(--red);
}

/* ---- Chapter recap (cierre de capÃ­tulo N360) ---- */
.chapter-recap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border);
}
.chapter-recap__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.chapter-recap__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chapter-recap__list li {
  padding-left: 1.75rem;
  position: relative;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
}
.chapter-recap__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.chapter-recap__next {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
}
.chapter-recap__next-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.chapter-recap__next p {
  font-size: .9rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}


@media (hover: none) {
  .blog-listing::before,
  .blog-listing--turismo::before,
  .tools-listing::before { background-attachment: scroll; }
}

/* ---- Paywall blur ---- */
.article-paywall {
  position: relative;
}

.article-paywall__content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.article-paywall__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.article-paywall__cta {
  pointer-events: auto;
  text-align: center;
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-top: 2.5rem;
}

.article-paywall__cta-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.article-paywall__cta h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 .75rem;
}

.article-paywall__cta p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

html[data-theme="dark"] .article-paywall__cta {
  background: var(--surface-dark, #222);
}

html[data-n360="true"] .article-paywall__content {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}
html[data-n360="true"] .article-paywall__overlay,
html[data-n360="true"] #n360-float {
  display: none !important;
}

html:not([data-n360="true"]) .article-faq--locked > *:not(summary) {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
