/* Club Santo — documentos descargables (web, PDF e impresión).
   Versión negra: .doc[data-theme="dark"]  ·  Versión blanca: .doc[data-theme="light"] */

.doc {
	--bg: #0E0E12;
	--paper: #141419;
	--card: #1E1E25;
	--ink: #FAFAF7;
	--soft: #C3C6CC;
	--mute: #8A8F98;
	--line: rgba(250, 250, 247, .12);
	--accent: #F28C28;
	--accent-2: #FFB26B;
	--accent-soft: rgba(242, 140, 40, .14);
	--sans: "Montserrat", system-ui, sans-serif;
	--serif: "Libre Caslon Text", Georgia, serif;
	font-family: var(--sans);
	color: var(--ink);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.doc[data-theme="light"] {
	--bg: #FFFFFF;
	--paper: #FFFFFF;
	--card: #F6F4EF;
	--ink: #16161B;
	--soft: #3D3D46;
	--mute: #6B6B74;
	--line: rgba(22, 22, 27, .14);
	--accent: #C2620F;
	--accent-2: #A85A0F;
	--accent-soft: rgba(242, 140, 40, .12);
}
.doc *, .doc *::before, .doc *::after { box-sizing: border-box; }
.doc .on-light { display: none; }
.doc[data-theme="light"] .on-light { display: block; }
.doc[data-theme="light"] .on-dark { display: none; }

/* Hoja */
.doc-page {
	position: relative;
	width: 100%;
	max-width: 8.5in;
	min-height: 11in;
	margin: 0 auto 28px;
	padding: .6in .65in .85in;
	background: var(--paper);
	border-radius: 6px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-size: 11.5pt;
	line-height: 1.55;
}
.doc[data-theme="light"] .doc-page { box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .35); outline: 1px solid rgba(0, 0, 0, .06); }
.doc-page p { margin: 0 0 .7em; color: var(--soft); }
.doc-page strong { color: var(--ink); }
.doc-page em { font-family: var(--serif); }

.doc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-logo img { height: 34px; width: auto; display: block; }
.doc-foot {
	position: absolute; left: .65in; right: .65in; bottom: .4in;
	display: flex; justify-content: space-between;
	padding-top: 10px; border-top: 1px solid var(--line);
	font-size: 8pt; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

/* Portada */
.doc-cover { justify-content: space-between; padding-bottom: .6in; }
.doc-cover::before {
	content: ""; position: absolute; inset: auto -20% -30% auto; width: 9in; height: 9in;
	background: radial-gradient(closest-side, rgba(242, 140, 40, .22), transparent 70%);
	pointer-events: none;
}
.doc[data-theme="light"] .doc-cover::before { background: radial-gradient(closest-side, rgba(242, 140, 40, .12), transparent 70%); }
.doc-cover__mark {
	position: absolute; right: -.6in; bottom: .3in; width: 5.6in; height: 5.6in;
	background: url("../img/club-santo-simbolo-claro.svg") center/contain no-repeat;
	opacity: .07; pointer-events: none;
}
.doc[data-theme="light"] .doc-cover__mark { background-image: url("../img/club-santo-simbolo-oscuro.svg"); opacity: .06; }
.doc-cover__top .doc-logo img { height: 56px; }
.doc-cover__mid { position: relative; max-width: 6.2in; }
.doc-cover__bot { position: relative; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; }
.doc-cover__bot p { margin: 0; font-size: 9pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.doc-cover__note { margin-top: 18px !important; font-size: 10.5pt; color: var(--mute) !important; }

.doc-eyebrow { margin: 0 0 12px !important; font-size: 8.5pt; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent) !important; }
.doc-title { margin: 0 0 14px; font-weight: 900; font-size: 46pt; line-height: .98; letter-spacing: -.03em; color: var(--ink); }
.doc-title--page { font-size: 28pt; line-height: 1.05; }
.doc-sub { margin: 0 !important; font-family: var(--serif); font-style: italic; font-size: 20pt; line-height: 1.25; color: var(--accent-2) !important; }
.doc-lema { color: var(--accent) !important; }
.doc-h2 { margin: 18px 0 10px; font-weight: 800; font-size: 17pt; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.doc-h2:first-child, .doc-head + .doc-h2, .doc-head + .doc-eyebrow + .doc-h2 { margin-top: 0; }
.doc-h2__tag { font-size: 9pt; font-weight: 700; letter-spacing: .14em; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.doc-h3 { margin: 0 0 8px; font-weight: 800; font-size: 13pt; line-height: 1.2; color: var(--ink); }
.doc-lead { font-size: 12.5pt; color: var(--soft); }
.doc-small { font-size: 9.5pt; color: var(--mute) !important; }
.doc-kicker { font-family: var(--serif); font-style: italic; color: var(--accent-2) !important; }

.doc-verse {
	margin: 22px 0 10px; padding: 0 0 0 18px;
	border-left: 3px solid var(--accent);
	font-family: var(--serif); font-style: italic; font-size: 15pt; line-height: 1.45; color: var(--ink);
}
.doc-verse--sm { font-size: 12.5pt; margin: 6px 0 16px; }
.doc-reads { font-size: 10pt; color: var(--mute) !important; }

/* Listas */
.doc-ol, .doc-ul { margin: 6px 0 14px; padding: 0; list-style: none; }
.doc-ol { counter-reset: n; }
.doc-ol > li, .doc-ul > li { position: relative; padding-left: 30px; margin-bottom: 8px; color: var(--soft); }
.doc-ol > li { counter-increment: n; }
.doc-ol > li::before {
	content: counter(n); position: absolute; left: 0; top: 1px;
	width: 20px; height: 20px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent); font-size: 9pt; font-weight: 800;
}
.doc-ul > li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc-ol--points > li { padding-left: 38px; margin-bottom: 12px; }
.doc-ol--points > li::before { width: 26px; height: 26px; font-size: 11pt; background: var(--accent); color: #0E0E12; }
.doc-ol--points strong { display: block; margin-bottom: 2px; font-size: 12pt; }
.doc-ol--q > li { font-family: var(--serif); font-size: 11.5pt; color: var(--ink); }
.doc-ol--big > li { font-size: 14pt; margin-bottom: 14px; padding: 12px 14px 12px 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.doc-ol--big > li::before { left: 14px; top: 13px; width: 24px; height: 24px; }
.doc-checks { list-style: none; margin: 8px 0 0; padding: 0; }
.doc-checks li { position: relative; padding-left: 24px; margin-bottom: 7px; font-size: 10.5pt; color: var(--soft); }
.doc-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 13px; height: 13px; border: 1.5px solid var(--accent); border-radius: 3px; }

/* Tarjetas, notas, oración */
.doc-card { margin: 14px 0; padding: 16px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); break-inside: avoid; }
.doc-card > :last-child { margin-bottom: 0; }
.doc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-grid2 .doc-card { margin: 0; }
.doc-note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); font-size: 10pt; color: var(--soft); break-inside: avoid; }
.doc-prayer { margin: 16px 0; padding: 18px 20px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(242, 140, 40, .3); break-inside: avoid; }
.doc-prayer p { font-family: var(--serif); font-style: italic; font-size: 12pt; color: var(--ink); }
.doc-prayer--covenant { margin-top: 12px; padding: 26px 30px; }
.doc-prayer--covenant p { margin: 0 0 .55em; font-size: 13.5pt; line-height: 1.5; }
.doc-prayer cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 9pt; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.doc-credits { margin-top: auto !important; padding-top: 14px; font-size: 8pt; color: var(--mute) !important; padding-bottom: 6px; }
.doc-practice { padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); font-size: 10pt; }

/* Tablas */
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 10pt; }
.doc-table th { text-align: left; padding: 8px 10px; font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); }
.doc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--soft); }
.doc-table--rhythm td:first-child { white-space: nowrap; font-weight: 700; color: var(--ink); }
.doc-table--rhythm tr.is-fast td { background: var(--accent-soft); }
.doc-daybadge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: var(--accent); color: #0E0E12; font-size: 9pt; font-weight: 900; }
.doc-table--month td { padding: 0 10px; height: .46in; }
.doc-table--month small { display: block; font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.doc-num { width: .45in; font-weight: 900; font-size: 14pt; color: var(--accent) !important; }
.doc-fill { width: 1.2in; }
.doc-fill::after { content: ""; display: block; height: 1px; margin-top: 16px; background: var(--line); }
.doc-week { width: 2in; white-space: nowrap; }
.doc-week span { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-right: 2px; border-radius: 50%; border: 1px solid var(--line); font-size: 7.5pt; font-weight: 700; color: var(--mute); }
.doc-check { width: .4in; text-align: center; }
.doc-check span { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--accent); border-radius: 4px; }

/* Fechas */
.doc-dates { display: grid; gap: 12px; }
.doc-date { display: grid; grid-template-columns: 1.35in 1fr; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); break-inside: avoid; }
.doc-date p:last-child { margin-bottom: 0; }
.doc-date__d { margin: 0 !important; font-weight: 900; font-size: 14pt; line-height: 1.1; color: var(--accent) !important; }

/* Reglas */
.doc-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.doc-rule { position: relative; padding: 16px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.doc-rule__n { position: absolute; right: 8px; top: -10px; margin: 0 !important; font-weight: 900; font-size: 54pt; line-height: 1; color: var(--accent-soft) !important; }
.doc-rule .doc-h3 { position: relative; font-size: 12pt; }
.doc-lines { margin: 8px 0 20px; padding-left: 22px; color: var(--accent); font-weight: 800; }
.doc-lines li { height: .55in; border-bottom: 1px solid var(--line); }
.doc-sign p { display: flex; align-items: end; gap: 10px; margin: 0 0 18px; font-size: 10pt; color: var(--mute); }
.doc-sign i { flex: 1; height: 1px; background: var(--line); margin-bottom: 4px; }
.doc-sign__row i { flex: 1; }

/* Tarjeta de preguntas */
.doc-cardpage .doc-tcard { flex: 1; display: flex; flex-direction: column; }
.doc-soul { margin: 30px 0 20px !important; font-family: var(--serif); font-style: italic; font-size: 44pt; line-height: 1.05; color: var(--ink) !important; }

/* ---------------------------------------------------------------------
   Impresión / PDF: tamaño carta, una hoja por página
   ------------------------------------------------------------------ */
@page { size: letter; margin: 0; }
@media print {
	html, body { margin: 0 !important; padding: 0 !important; background: var(--doc-bg, #fff) !important; }
	.doc { background: var(--paper); }
	.doc-page {
		width: 8.5in; max-width: none; height: 11in; min-height: 0;
		margin: 0; border-radius: 0; box-shadow: none !important; outline: 0 !important;
		break-after: page; page-break-after: always;
	}
	.doc-page:last-child { break-after: auto; page-break-after: auto; }
}

/* Pantallas pequeñas (solo en la web) */
@media screen and (max-width: 720px) {
	.doc-page { min-height: 0; padding: 26px 20px 60px; font-size: 15px; margin-bottom: 18px; }
	.doc-cover { min-height: 78vh; }
	.doc-foot { left: 20px; right: 20px; bottom: 16px; font-size: 9px; }
	.doc-title { font-size: 40px; }
	.doc-title--page { font-size: 28px; }
	.doc-sub { font-size: 22px; }
	.doc-grid2, .doc-rules { grid-template-columns: 1fr; }
	.doc-date { grid-template-columns: 1fr; gap: 4px; }
	.doc-table--month .doc-week, .doc-table--month th:nth-child(3) { display: none; }
	.doc-table--rhythm td, .doc-table--rhythm th { padding: 8px 6px; }
	.doc-cover__mark { width: 70vw; height: 70vw; }
}
.doc-h2--gap { margin-top: 22px; }

