/* Carta de Santa / Reyes: hoja tamaño carta imprimible. Sin estilos en línea (CSP). */
@page { size: Letter; margin: 0; }
* { box-sizing: border-box; }
body.ct { margin: 0; background: #f1e7d0; font-family: "FreeSerif", "Liberation Serif", Georgia, "Times New Roman", serif; color: #2b2113; }
.ct-escena { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 16px 8px 40px; overflow-x: auto; }
.ct-hoja { font-family: "FreeSerif", "Liberation Serif", Georgia, "Times New Roman", serif; color: #2b2113; text-align: left; line-height: normal; letter-spacing: normal; flex: none; width: 8.5in; height: 11in; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fffaf0 0%, #f7ecd4 60%, #ead9b4 100%); padding: .6in .9in; box-shadow: 0 10px 40px rgb(0 0 0 / .25); }
.ct-borde { position: absolute; inset: .3in; border: 3px solid #9b1c1c; border-radius: 10px; box-shadow: inset 0 0 0 6px #f7ecd4, inset 0 0 0 8px #1f5c3a; }
.ct-cab { text-align: center; position: relative; margin-top: .15in; }
.ct-de { letter-spacing: .35em; font-size: 11pt; color: #1f5c3a; text-transform: uppercase; }
.ct-cab h1 { font-size: 25pt; color: #9b1c1c; margin: .05in 0 0; font-style: italic; font-weight: bold; line-height: 1.1; }
.ct-dir { font-size: 10.5pt; color: #6b5a3a; margin-top: .04in; }
.ct-reg { height: 2px; background: linear-gradient(90deg, transparent, #c9a24a, transparent); margin: .18in 0; }
.ct-fecha { text-align: right; font-style: italic; color: #4a3a20; font-size: 12pt; }
.ct-cuerpo { font-size: 13.5pt; line-height: 1.45; color: #2b2113; margin-top: .15in; }
.ct-cuerpo p { margin: 0 0 .13in; }
.ct-nombre { color: #9b1c1c; font-weight: bold; }
.ct-lista { background: rgb(255 255 255 / .55); border-left: 4px solid #1f5c3a; padding: .1in .2in; margin: .08in 0 .16in; border-radius: 4px; }
.ct-lista div { margin: .03in 0; overflow-wrap: anywhere; }
.ct-firma { margin-top: .08in; display: flex; justify-content: space-between; align-items: flex-end; }
.ct-f { font-style: italic; font-size: 26pt; color: #9b1c1c; transform: rotate(-4deg); max-width: 4.6in; line-height: 1.1; }
.ct-f small { display: block; font-size: 10.5pt; color: #6b5a3a; font-style: normal; }
.ct-sello { width: 1.3in; height: 1.3in; flex: none; font-family: "FreeSerif", "Liberation Serif", serif; }
.ct-pie { position: absolute; bottom: .45in; left: 0; right: 0; text-align: center; font-size: 8.5pt; color: #8a7650; letter-spacing: .08em; }
.ct-copo { position: absolute; top: .55in; color: #c9a24a; opacity: .55; font-size: 18pt; }
.ct-copo-i { left: .65in; } .ct-copo-d { right: .65in; }
.ct-marca { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 1.5in; font-weight: 900; letter-spacing: .1em; color: rgb(155 28 28 / .16); pointer-events: none; font-family: Arial, sans-serif; }
.ct-barra { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; background: #1f5c3a; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.ct-barra p { margin: 0; } .ct-acciones { display: flex; flex-wrap: wrap; gap: 10px; } .ct-acciones form { margin: 0; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; background: #c9a24a; color: #2b2113; font: 700 1rem system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.ct-btn--ghost { background: transparent; color: #fff; border: 1.5px solid #ffffff99; }
.ct-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ct-aviso { max-width: 560px; margin: 12vh auto; padding: 24px; text-align: center; font-family: system-ui, sans-serif; } .ct-aviso h1 { color: #9b1c1c; } .ct-aviso .ct-btn { background: #1f5c3a; color: #fff; }
@media (max-width: 860px) { .ct-hoja { zoom: .62; } .ct-escena { align-items: flex-start; } }
@media (max-width: 560px) { .ct-hoja { zoom: .42; } }
@media print { body.ct { background: #fff; } .ct-barra, .ct-noprint { display: none !important; } .ct-escena { padding: 0; display: block; } .ct-hoja { zoom: 1 !important; box-shadow: none; break-after: page; page-break-after: always; } .ct-hoja:last-child { break-after: auto; page-break-after: auto; } }
.ct-cuerpo.ct-chico { font-size: 12pt; line-height: 1.4; }
.ct-marca small { display: block; font-size: .28em; letter-spacing: .3em; text-align: center; }
.ct-cuerpo.ct-mini { font-size: 11pt; line-height: 1.35; }
.ct-cuerpo.ct-mini p { margin-bottom: .09in; }
.ct-ps { font-size: .9em; color: #4a3a20; font-style: italic; overflow-wrap: anywhere; }

/* Hojas 2 y 3 del paquete (tamaño carta, fondo blanco para ahorrar tinta) */
.ct-pag { background: #fff; padding: 0; }
.ct-sobre { position: absolute; inset: 0; width: 100%; height: 100%; font-family: "FreeSerif", "Liberation Serif", Georgia, serif; }
.ct-instr { position: absolute; left: .35in; top: .35in; width: 1.75in; margin: 0; padding-left: 1.1em; font: 9pt/1.35 system-ui, sans-serif; color: #5b4a40; }
.ct-diploma { position: absolute; left: .4in; right: .4in; top: .35in; height: 4.9in; border: 3px solid #9b1c1c; border-radius: 10px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px #1f5c3a; background: radial-gradient(ellipse at 50% 40%, #fffaf0, #f7ecd4); }
.ct-diploma-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .25in .6in; }
.ct-diploma h2 { margin: .04in 0; font-size: 28pt; font-style: italic; color: #9b1c1c; line-height: 1.05; }
.ct-diploma p { margin: .03in 0; font-size: 13pt; color: #2b2113; }
.ct-dip-a { font-style: italic; color: #6b5a3a !important; }
.ct-dip-nombre { font-size: 30pt !important; font-weight: bold; color: #1f5c3a !important; border-bottom: 2px solid #c9a24a; padding: 0 .3in .03in; }
.ct-dip-firma { display: flex; align-items: center; gap: .3in; margin-top: .08in; font-style: italic; font-size: 18pt; color: #9b1c1c; }
.ct-dip-firma .ct-sello { width: 1.05in; height: 1.05in; }
.ct-corte { position: absolute; left: 0; right: 0; top: 5.5in; border-top: 2px dashed #b9a98c; text-align: center; font: 9pt system-ui, sans-serif; color: #8a7650; }
.ct-corte::first-line { background: #fff; }
.ct-etqs { position: absolute; left: .4in; right: .4in; top: 5.75in; bottom: .4in; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.ct-etq { position: relative; border: 1.5px dashed #b9a98c; display: flex; flex-direction: column; justify-content: center; padding: .1in .2in .1in .5in; background: linear-gradient(135deg, #fffaf0, #f7ecd4); }
.ct-etq small { font: 9pt system-ui, sans-serif; color: #6b5a3a; text-transform: uppercase; letter-spacing: .12em; }
.ct-etq b { font-size: 18pt; font-style: italic; color: #9b1c1c; margin-bottom: .06in; overflow-wrap: anywhere; }
.ct-etq span:not(.ct-etq-hoyo) { font-size: 13pt; color: #1f5c3a; font-style: italic; }
.ct-etq-hoyo { position: absolute; left: .18in; top: 50%; width: .16in; height: .16in; margin-top: -.08in; border-radius: 50%; border: 1.5px solid #9b1c1c; }
.ct-hoja h1, .ct-hoja h2 { font-family: inherit; letter-spacing: normal; }

/* Versión gratis: marca de Kit Micronegocio (rojo por fuera, dorado por dentro; nombre en rojo y blanco) */
.ct-kmn { display: inline-flex; align-items: center; gap: .08in; font-family: "Helvetica Neue", Arial, sans-serif; color: #b91c1c; white-space: nowrap; }
.ct-kmn svg { width: .34in; height: .34in; flex: none; }
.ct-kmn b { display: inline-block; padding: .03in .1in; border-radius: 999px; background: #b91c1c; color: #fff; font-size: 10pt; letter-spacing: .01em; }
.ct-kmn b i { font-style: normal; color: #fff; }
.ct-kmn small { font-size: 7.5pt; color: #8a7650; letter-spacing: .04em; }
.ct-pie-kmn { letter-spacing: 0; }
.ct-kmn-sobre { position: absolute; left: 0; right: 0; top: 7.78in; text-align: center; transform: scale(.82); }
.ct-kmn-dip { margin-top: .06in; transform: scale(.85); }
.ct-btn--gratis { background: #fff; color: #1f5c3a; }
/* Hoja 4 (versión pagada): llave mágica + lista de deseos */
.ct-llave-caja { position: absolute; left: .4in; right: .4in; top: .35in; height: 4.9in; border: 3px solid #c9a24a; border-radius: 10px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px #9b1c1c; background: radial-gradient(ellipse at 50% 40%, #fffaf0, #f7ecd4); }
.ct-llave-caja h2 { margin: .02in 0; font-size: 30pt; font-style: italic; color: #9b1c1c; }
.ct-llave-caja p { margin: .03in 0; font-size: 13pt; }
.ct-llave { width: 3.2in; height: auto; margin: .04in 0; }
.ct-deseos { position: absolute; left: .7in; right: .7in; top: 5.85in; bottom: .45in; text-align: center; }
.ct-deseos h2 { margin: 0; font-size: 22pt; font-style: italic; color: #1f5c3a; }
.ct-deseos p { margin: .03in 0; font-size: 12pt; }
.ct-deseos ol { text-align: left; margin: .12in auto; padding-left: .35in; width: 85%; font-size: 13pt; color: #9b1c1c; }
.ct-deseos li { height: .5in; border-bottom: 1.5px dashed #c9a24a; }
