/* =====================================================================
   Guías maquetadas — layout de lectura + bloques
   ===================================================================== */

/* Barra de progreso de lectura */
.read-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0;
	background: var(--gold); z-index: 60;
	transition: width .1s linear;
}

/* Cabecera de la guía */
.guide-head { max-width: 860px; margin: 0 auto; padding: 40px 24px 8px; }
.guide-head .kicker { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.guide-head .kicker:hover { color: var(--ink); }
.guide-title { font-size: clamp(30px, 4.4vw, 46px); max-width: 22ch; }
.guide-standfirst { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.guide-meta {
	display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
	margin-top: 24px; padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13.5px; color: var(--ink-faint);
}
.guide-meta strong { color: var(--ink-soft); font-weight: 600; }
.guide-hero-img { max-width: 860px; margin: 32px auto 0; padding: 0 24px; }
.guide-hero-img img { width: 100%; border-radius: var(--radius); }

/* Layout de dos columnas: TOC sticky + cuerpo */
.guide-layout {
	max-width: 1140px; margin: 0 auto;
	display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 64px;
	justify-content: center;
	padding: 40px 24px 32px;
}
@media (max-width: 980px) { .guide-layout { grid-template-columns: minmax(0, 720px); } }

.guide-toc { position: sticky; top: 92px; align-self: start; }
@media (max-width: 980px) {
	.guide-toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px; }
}
.guide-toc-label {
	font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--ink-faint); margin-bottom: 14px;
}
.guide-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.guide-toc a {
	display: block;
	font-size: 13.5px; line-height: 1.45;
	color: var(--ink-faint); text-decoration: none;
	padding: 6px 0 6px 14px;
	border-left: 2px solid var(--line);
	transition: color .15s, border-color .15s;
}
.guide-toc a:hover { color: var(--ink); }
.guide-toc a.is-active { color: var(--gold); border-left-color: var(--gold); font-weight: 600; }

/* Cuerpo */
.guide-body { font-size: 17.5px; line-height: 1.8; color: #33303F; }
.guide-body > * + * { margin-top: 26px; }

/* Answer box (GEO): lo primero que se lee y lo que citan los motores */
.gb-answer {
	background: var(--gold-wash);
	border: 1px solid #E4D5AE;
	border-radius: var(--radius);
	padding: 24px 28px;
}
.gb-answer-label {
	font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 8px;
}
.gb-answer-text { font-size: 18px; line-height: 1.65; color: var(--ink); font-weight: 500; }

/* Puntos clave */
.gb-keypoints { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.gb-keypoints-label {
	font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ink-faint); margin-bottom: 12px;
}
.gb-keypoints ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gb-keypoints li { position: relative; padding-left: 24px; font-size: 16px; }
.gb-keypoints li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 4px; }

/* Secciones */
.gb-section h2, .gb-steps h2, .gb-faq h2, .gb-affirmations h2, .gb-glossary h2, .gb-table-wrap h2 {
	font-size: clamp(23px, 2.6vw, 29px);
	color: var(--ink);
	margin: 22px 0 4px;
	scroll-margin-top: 90px;
}
.gb-section p { margin-top: 16px; }
.gb-section a { color: var(--gold); }

/* Pasos numerados */
.gb-steps-list { list-style: none; counter-reset: paso; margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.gb-step {
	counter-increment: paso;
	position: relative;
	padding: 20px 0 24px 66px;
	border-bottom: 1px solid var(--line);
}
.gb-step:last-child { border-bottom: 0; }
.gb-step::before {
	content: counter(paso, decimal-leading-zero);
	position: absolute; left: 0; top: 20px;
	font-family: var(--serif);
	font-size: 26px; font-weight: 600;
	color: var(--gold);
}
.gb-step-title { font-size: 19px; font-family: var(--sans); font-weight: 700; color: var(--ink); }
.gb-step p { margin-top: 8px; font-size: 16.5px; }

/* Callouts */
.gb-callout { border-radius: var(--radius); padding: 20px 26px; border-left: 3px solid; }
.gb-callout-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.gb-callout p:last-child { font-size: 16px; }
.gb-callout-tip { background: #EFF3EA; border-color: #6F8F5E; }
.gb-callout-tip .gb-callout-label { color: #557446; }
.gb-callout-warning { background: #F8ECE4; border-color: #B96A45; }
.gb-callout-warning .gb-callout-label { color: #A05531; }
.gb-callout-data { background: #EAEDF4; border-color: #5C6B95; }
.gb-callout-data .gb-callout-label { color: #48557B; }

/* Tabla */
.gb-table-wrap { overflow-x: auto; }
.gb-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15.5px; }
.gb-table th {
	text-align: left; font-family: var(--sans);
	font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ink-soft);
	border-bottom: 2px solid var(--ink);
	padding: 10px 14px;
}
.gb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gb-table tr:nth-child(even) td { background: var(--paper-deep); }

/* Cita */
.gb-quote { margin: 0; padding: 8px 0 8px 30px; border-left: 3px solid var(--gold); }
.gb-quote p { font-family: var(--serif); font-size: 22px; line-height: 1.5; font-style: italic; color: var(--ink); }
.gb-quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--ink-faint); }

/* FAQ */
.gb-faq-item { border-bottom: 1px solid var(--line); }
.gb-faq-item summary {
	cursor: pointer; list-style: none;
	font-family: var(--sans); font-weight: 600; font-size: 16.5px;
	padding: 18px 30px 18px 0;
	position: relative;
}
.gb-faq-item summary::-webkit-details-marker { display: none; }
.gb-faq-item summary::after {
	content: "+"; position: absolute; right: 4px; top: 14px;
	font-family: var(--serif); font-size: 22px; color: var(--gold);
	transition: transform .2s;
}
.gb-faq-item[open] summary::after { transform: rotate(45deg); }
.gb-faq-item p { padding: 0 0 20px; font-size: 16px; color: var(--ink-soft); }

/* Afirmaciones copiables */
.gb-affirmations-list { list-style: none; counter-reset: afirmacion; margin-top: 20px; display: flex; flex-direction: column; }
.gb-affirmations-list li {
	counter-increment: afirmacion;
	display: flex; align-items: baseline; gap: 16px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--line);
}
.gb-affirmations-list li::before {
	content: counter(afirmacion);
	font-family: var(--serif); font-size: 15px; font-weight: 600;
	color: var(--gold); min-width: 22px;
}
.gb-affirmation-text { flex: 1; font-family: var(--serif); font-size: 18.5px; line-height: 1.55; color: var(--ink); }
.gb-copy {
	font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	background: none; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink-faint); padding: 6px 12px; cursor: pointer;
	transition: all .15s;
}
.gb-copy:hover { border-color: var(--gold); color: var(--gold); }
.gb-copy.is-copied { background: var(--gold); border-color: var(--gold); color: #fff; }

/* CTA contextual */
.gb-cta {
	background: var(--night); color: var(--night-ink);
	border-radius: var(--radius);
	padding: 34px 36px;
}
.gb-cta-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.gb-cta-title { font-size: 23px; color: #fff; margin: 10px 0 12px; }
.gb-cta-text { font-size: 15.5px; color: #C9C5DA; line-height: 1.7; }
.gb-cta-actions { margin-top: 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.gb-cta-alt { font-size: 14px; color: var(--gold-soft); text-decoration: none; }
.gb-cta-alt:hover { text-decoration: underline; }

/* Glosario */
.gb-glossary dl { margin-top: 18px; }
.gb-glossary dt { font-weight: 700; font-size: 16.5px; margin-top: 16px; color: var(--ink); }
.gb-glossary dd { margin: 4px 0 0; font-size: 16px; color: var(--ink-soft); }

/* Sigue leyendo (interlinking) */
.gb-related { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; }
.gb-related-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.gb-related ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gb-related a { font-family: var(--serif); font-size: 17px; font-weight: 600; text-decoration: none; }
.gb-related a:hover { color: var(--gold); }

/* Contenido clásico (fallback sin bloques) */
.guide-classic h2 { font-size: 27px; margin: 34px 0 12px; }
.guide-classic h3 { font-size: 21px; margin: 26px 0 10px; }
.guide-classic p { margin: 0 0 18px; }
.guide-classic ul, .guide-classic ol { margin: 0 0 18px 24px; }
.guide-classic a { color: var(--gold); }

/* Caja de autor (E-E-A-T) */
.guide-author {
	max-width: 720px; margin: 12px auto 0; padding: 26px 24px;
	border-top: 1px solid var(--line);
	display: flex; gap: 18px; align-items: flex-start;
}
.guide-author-avatar {
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--night); color: var(--gold-soft);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 22px; flex-shrink: 0;
}
.guide-author-name { font-weight: 700; font-size: 15px; }
.guide-author-role { font-size: 13px; color: var(--gold); margin-top: 1px; }
.guide-author-bio { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* Relacionadas al pie */
.guide-more { max-width: 1140px; margin: 0 auto; padding: 48px 24px 72px; }
.guide-more h2 { font-size: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 30px; }
