/* =========================================================
   Páginas interiores (servicios, artículos y legales)
   Usa las variables y botones de styles.css
   ========================================================= */

.pg-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); background: rgba(14,15,17,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pg-top { flex-wrap: wrap; }
.pg-top__links { display: flex; order: 3; flex: 1 0 100%; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--stone); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pg-top__links::-webkit-scrollbar { display: none; }
.pg-top__links a:hover, .pg-top__links a[aria-current="page"] { color: var(--amber); }
.pg-top .btn { height: 44px; padding: 0 18px; font-size: 14px; }

.pg { padding-top: 56px; padding-bottom: 96px; }
.pg__crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--smoke); margin-bottom: 28px; }
.pg__crumbs a:hover { color: var(--amber); }
.pg__crumbs span[aria-hidden] { opacity: .5; }

.pg__head { display: grid; gap: 22px; max-width: 980px; margin-bottom: 56px; }
.pg__head h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 8.4vw, 96px); line-height: .92; letter-spacing: -.005em; margin: 0; }
.pg__head h1 em { font-family: var(--f-serif); font-style: italic; text-transform: none; color: var(--amber); font-size: 1.02em; letter-spacing: 0; }
.pg__lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: rgba(243,236,221,.86); max-width: 60ch; margin: 0; }
.pg__meta { color: var(--smoke); }
.pg__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pg__body { display: grid; gap: 0; max-width: 760px; }
.pg__body > section { padding: 40px 0; border-top: 1px solid var(--line); }
.pg__body h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 5vw, 44px); line-height: .98; margin: 0 0 18px; }
.pg__body h3 { font-size: 19px; font-weight: 600; margin: 26px 0 8px; color: var(--cream); }
.pg__body p, .pg__body li { font-size: 17px; line-height: 1.68; color: rgba(243,236,221,.86); }
.pg__body p { margin: 0 0 16px; }
.pg__body ul, .pg__body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.pg__body li::marker { color: var(--amber); }
.pg__body a:not(.btn) { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg__body strong { color: var(--cream); font-weight: 600; }
.pg__body blockquote { margin: 8px 0 20px; padding: 6px 0 6px 20px; border-left: 2px solid var(--amber); font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--cream); }

.pg-callout { margin: 8px 0 20px; padding: 22px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.pg-callout p:last-child { margin-bottom: 0; }

.pg-steps { list-style: none; padding: 0 !important; counter-reset: s; }
.pg-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pg-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--amber); }

.pg-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 15px; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); color: rgba(243,236,221,.86); }
.pg-table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); font-weight: 400; }
.pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pg-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.pg-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--amber); font-family: var(--f-mono); }
.pg-faq details[open] summary::after { content: "–"; }
.pg-faq details p { margin: 12px 0 0; }

.pg-author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.pg-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.pg-author p { margin: 0 !important; font-size: 15px !important; }

.pg-end { margin-top: 56px; padding: 36px; border-radius: 22px; background: var(--amber); color: var(--ink); display: grid; gap: 16px; justify-items: start; max-width: 980px; }
.pg-end h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 56px); line-height: .92; margin: 0; }
.pg-end p { font-size: 17px; max-width: 54ch; margin: 0; }
.pg-end .btn { background: var(--ink); color: var(--cream); }
.pg-end .btn:hover { background: var(--ink-3); }

.pg-related { margin-top: 56px; display: grid; gap: 12px; max-width: 980px; }
.pg-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pg-related a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.pg-related a:hover { border-color: var(--amber); color: var(--amber); }

.pg-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--smoke); }
.pg-foot .wrap { display: grid; gap: 14px; }
.pg-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--stone); }
.pg-foot nav a:hover { color: var(--amber); }

@media (min-width: 900px) {
  .pg-top { flex-wrap: nowrap; }
  .pg-top__links { display: flex; order: 0; flex: 0 1 auto; overflow: visible; }
  .pg { padding-top: 72px; padding-bottom: 120px; }
}
