/* Páginas interiores: misma navegación, tipografía y ritmo que la portada. */
.detail-page { background: var(--n-50); }
.detail-page main { padding-top: var(--header-h); }
.detail-page .header { --header-bg: 1; --header-brand-opacity: 1; }
.detail-page .detail-hero { position: relative; overflow: hidden; padding: clamp(76px, 10vw, 132px) 0 78px; background: var(--navy-700); color: #fff; }
.detail-page .detail-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(252,175,23,.16), transparent 30%), linear-gradient(145deg, transparent 20%, rgba(11,65,124,.55)); pointer-events: none; }
.detail-page .detail-hero .container { position: relative; }
.detail-page .breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: rgba(255,255,255,.66); font-size: .85rem; text-decoration: none; }
.detail-page .breadcrumb:hover { color: #fff; }
/* Nombre de la seccion, en grande.
   --------------------------------------------------------------------------
   Las cinco paginas de detalle comparten portada, y el nombre de la seccion
   —«Ayuntamientos», «ONG y asociaciones»— iba en el `eyebrow` generico: 0,78rem
   en versalitas. El titulo grande es el eslogan, que es distinto en cada una
   pero no dice DONDE estas. Resultado: las cinco se parecian entre si y habia
   que leer el parrafo para saber en cual habias entrado.

   Aqui el nombre pasa a leerse como lo que es, el titulo de la seccion, y el
   eslogan se queda de titular debajo. Solo dentro de esta portada: el
   `eyebrow` del resto del sitio no se toca.

   Sin versalitas a proposito. A 2rem, «ONG Y ASOCIACIONES» grita y las tildes
   se leen peor; en caja normal se lee como un titulo y no como una etiqueta.

   Ambar 300 sobre azul marino 700 da 10,8:1 de contraste, holgado para AAA. */
.detail-page .detail-hero .eyebrow {
  display: block;
  max-width: 20ch;
  margin-bottom: 16px;
  color: var(--amber-300);
  font-size: clamp(1.4rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

/* Filete corto: separa el nombre del eslogan sin meter una linea entera de
   aire, y ata visualmente los dos como una sola cabecera. */
.detail-page .detail-hero .eyebrow::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--amber-500);
}

.detail-page .detail-hero h1 { max-width: 17ch; color: #fff; font-size: clamp(2.45rem, 6vw, 5rem); line-height: 1.04; text-wrap: balance; }
.detail-page .detail-hero__lead { max-width: 64ch; margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.detail-page .detail-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.detail-page .detail-hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.detail-page .detail-hero__actions .btn--ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.detail-page .detail-section { padding: 84px 0; }
.detail-page .detail-section--white { background: #fff; }
.detail-page .detail-section--navy { background: var(--navy-600); color: #fff; }
.detail-page .detail-heading { max-width: 720px; margin-bottom: 42px; }
.detail-page .detail-heading h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 4vw, 3.1rem); text-wrap: balance; }
.detail-page .detail-heading p { color: var(--text-soft); }
.detail-page .detail-section--navy .detail-heading p { color: rgba(255,255,255,.76); }
.detail-page .benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.detail-page .benefit-card { min-height: 230px; padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.detail-page .benefit-card__number { display: block; margin-bottom: 46px; color: var(--amber-700); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.detail-page .benefit-card h3 { margin-bottom: 10px; color: var(--navy-600); }
.detail-page .benefit-card p { margin: 0; color: var(--text-soft); font-size: .94rem; }
.detail-page .steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: steps; }
.detail-page .step { padding: 28px 26px; border-top: 1px solid rgba(255,255,255,.18); counter-increment: steps; }
.detail-page .step + .step { border-left: 1px solid rgba(255,255,255,.18); }
.detail-page .step::before { content: '0' counter(steps); display: block; margin-bottom: 28px; color: var(--amber-300); font-size: .76rem; font-weight: 700; }
.detail-page .step h3 { margin-bottom: 8px; color: #fff; }
.detail-page .step p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.detail-page .trial-banner { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 30px; padding: 24px 28px; border: 1px solid #f2d177; border-radius: 18px; background: var(--amber-50); }
.detail-page .trial-banner__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--amber-500); color: var(--navy-800); font-weight: 700; }
.detail-page .trial-banner h3 { color: var(--navy-600); }
.detail-page .trial-banner p { margin: 4px 0 0; color: var(--text-soft); font-size: .92rem; }
.detail-page .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.detail-page .price-card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: 22px; outline: 0; background: #fff; transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.detail-page .price-card:is(:hover, :focus, :focus-within) { color: #fff; background: var(--navy-600); border-color: var(--navy-600); box-shadow: 0 22px 48px rgba(0,37,87,.2); transform: translateY(-8px); }
.detail-page .price-card h3 { color: var(--navy-600); }
.detail-page .price-card__size { min-height: 46px; margin: 8px 0 18px; color: var(--text-soft); font-size: .85rem; }
.detail-page .price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; color: var(--navy-700); }
.detail-page .price strong { font-size: 2.5rem; line-height: 1; }
.detail-page .price span { color: var(--text-mute); font-size: .84rem; }
.detail-page .price-card ul { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--text-soft); font-size: .9rem; }
.detail-page .price-card li { display: flex; gap: 9px; }
.detail-page .price-card li::before { content: '✓'; color: var(--amber-700); font-weight: 700; }
.detail-page .price-card .btn { width: 100%; margin-top: auto; }
.detail-page .price-card:is(:hover, :focus, :focus-within) h3,
.detail-page .price-card:is(:hover, :focus, :focus-within) .price { color: #fff; }
.detail-page .price-card:is(:hover, :focus, :focus-within) .price-card__size,
.detail-page .price-card:is(:hover, :focus, :focus-within) .price span,
.detail-page .price-card:is(:hover, :focus, :focus-within) ul { color: rgba(255,255,255,.8); }
.detail-page .price-card:is(:hover, :focus, :focus-within) li::before { color: var(--amber-300); }
.detail-page .price-card:is(:hover, :focus, :focus-within) .btn { color: var(--navy-800); background: var(--amber-500); border-color: var(--amber-500); }
.detail-page .pricing-note { max-width: 76ch; margin: 26px auto 0; color: var(--text-mute); font-size: .82rem; text-align: center; }
.detail-page .info-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.detail-page .info-band h2 { margin-bottom: 18px; }
.detail-page .info-band .checklist { margin: 0; }
.detail-page .cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; border-radius: 24px; background: var(--navy-600); color: #fff; }
.detail-page .cta-panel h2 { color: #fff; }
.detail-page .cta-panel p { max-width: 62ch; margin: 8px 0 0; color: rgba(255,255,255,.72); }
.detail-page .document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.detail-page .document-card { min-height: 245px; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.detail-page .document-card:hover { color: inherit; transform: translateY(-5px); box-shadow: var(--shadow-raised); }
.detail-page .document-card span { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 46px; border-radius: 12px; background: var(--navy-50); color: var(--navy-600); }
.detail-page .document-card h3 { margin-bottom: 8px; color: var(--navy-600); }
.detail-page .document-card p { color: var(--text-soft); font-size: .91rem; }
.detail-page .document-card strong { color: var(--navy-500); font-size: .85rem; }
.detail-page .resource-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.detail-page .resource-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.detail-page .resource-gallery img { width: 100%; height: auto; }
.detail-page .resource-gallery figcaption { padding: 14px 18px; color: var(--text-soft); font-size: .85rem; }
.detail-page .legal-shell { width: min(100% - 2 * var(--s-lg), 820px); margin-inline: auto; padding: 84px 0; }
.detail-page .legal-shell h1 { margin: 10px 0 14px; color: var(--navy-700); }
.detail-page .legal-shell h2 { margin: 42px 0 12px; color: var(--navy-600); font-size: 1.45rem; }
.detail-page .legal-shell h3 { margin: 26px 0 8px; color: var(--navy-600); }
.detail-page .legal-shell p, .detail-page .legal-shell li, .detail-page .legal-shell dd { color: var(--text-soft); }
.detail-page .legal-shell dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; }
.detail-page .legal-shell dt { font-weight: 600; color: var(--navy-600); }
.detail-page .legal-shell dd { margin: 0; }
.detail-page .legal-note { padding: 22px 24px; border-left: 4px solid var(--amber-500); border-radius: 10px; background: var(--amber-50); }
.detail-page .footer { background: var(--navy-800); }

@media (max-width: 900px) {
  .detail-page .benefit-grid, .detail-page .pricing-grid, .detail-page .document-grid { grid-template-columns: 1fr; }
  .detail-page .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-page .step:nth-child(3) { border-left: 0; }
  .detail-page .info-band { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .detail-page main { padding-top: 64px; }
  .detail-page .detail-hero { padding: 60px 0; }
  .detail-page .detail-section { padding: 64px 0; }
  .detail-page .steps { grid-template-columns: 1fr; }
  .detail-page .step + .step { border-left: 0; }
  .detail-page .trial-banner { grid-template-columns: 1fr; }
  .detail-page .cta-panel { align-items: stretch; flex-direction: column; }
  .detail-page .cta-panel .btn { width: 100%; }
  .detail-page .resource-gallery { grid-template-columns: 1fr; }
  .detail-page .legal-shell dl { grid-template-columns: 1fr; gap: 2px; }
  .detail-page .legal-shell dd { margin-bottom: 12px; }
}
