/* Generado por scripts/resources/build.ts: no editar a mano. */
.ws .sub { color: #6B7280; font-size: 10pt; margin-top: 1mm; }
.ws .who { display: flex; gap: 6mm; font-size: 10pt; color: #6B7280; margin: 3mm 0 2mm; }
.ws .who span { flex: 1; border-bottom: 0.6pt solid #9CA3AF; padding-bottom: 0.8mm; }
.ws .who span.short { flex: 0.6; }
.ws .legend { font-size: 9.5pt; color: #374151; display: flex; gap: 5mm; align-items: center; padding: 1.5mm 0 2.5mm; border-bottom: 0.6pt solid #E5E7EB; margin-bottom: 2.5mm; }
.ws .legend .fbox { display: inline-block; width: 7mm; height: 4mm; background: #FEF3C7; border: 1.2pt solid #1A1A1A; border-radius: 1.2mm; vertical-align: -0.8mm; margin-right: 1mm; }
.ws .d { color: #1D4ED8; font-weight: 700; }
.ws .q { color: #EA580C; font-weight: 700; border: 1.1pt dashed #EA580C; border-radius: 1.5mm; padding: 0 1.1mm; white-space: nowrap; }
.ws .r { color: #15803D; font-weight: 700; text-decoration: underline double; }
.ws .instr { font-size: 11pt; line-height: 1.35; margin: 0 0 2mm; }
.ws .small { font-size: 9pt; color: #6B7280; }
.ws .formula { background: #FEF3C7; border: 1.2pt solid #1A1A1A; border-radius: 2mm; padding: 2mm 3mm; margin: 1mm 0 2.5mm; font-size: 12.5pt; }
.ws .formula.cols { display: grid; gap: 2.5mm; }
.ws .formula .fcol { text-align: center; font-size: 10.5pt; line-height: 1.3; }
.ws .formula .fcol b { display: block; font-size: 9pt; color: #374151; margin-bottom: 0.5mm; }
.ws .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.05; margin: 0 0.6mm; font-size: 0.92em; }
.ws .frac > span:first-child { border-bottom: 0.9pt solid currentColor; padding: 0 0.6mm 0.2mm; }
.ws .frac > span:last-child { padding-top: 0.2mm; }
.ws .level { display: flex; align-items: baseline; gap: 2mm; font-size: 13pt; font-weight: 700; border-top: 1pt solid #1A1A1A; padding-top: 1.5mm; margin: 2mm 0 2mm; }
.ws .level .dots { font-size: 10pt; letter-spacing: 0.5mm; font-family: 'DejaVu Sans', sans-serif; }
.ws .cells { display: grid; gap: 3mm 4mm; }
.ws .ex { display: flex; flex-direction: column; gap: 1.2mm; break-inside: avoid; }
.ws .ex-head { display: flex; gap: 2mm; align-items: flex-start; }
.ws .num { flex: 0 0 6.5mm; height: 6.5mm; border-radius: 50%; background: #1A1A1A; color: #fff; font-size: 10pt; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ws .prompt { font-size: 11pt; line-height: 1.3; }
.ws .fig { display: flex; justify-content: center; }
.ws .side { display: grid; grid-template-columns: auto 1fr; gap: 2mm; align-items: stretch; }
.ws .work { flex: 1; min-height: 12mm; border: 0.5pt solid #C4C4C4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M50 0V50H0' fill='none' stroke='%23C8C8C8' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: 5mm 5mm; }
.ws .ans { display: flex; align-items: flex-end; gap: 2mm; font-size: 10pt; color: #374151; }
.ws .ans .line { flex: 1; border-bottom: 0.6pt solid #6B7280; height: 4mm; }
.ws .letter { display: flex; align-items: flex-end; gap: 1mm; font-size: 9pt; }
.ws .letter .box { width: 7mm; height: 7mm; border: 0.9pt solid #1A1A1A; border-radius: 1mm; }
.ws .bank { display: grid; grid-template-columns: repeat(7, 1fr); border: 0.6pt solid #9CA3AF; border-radius: 1.5mm; overflow: hidden; }
.ws .bank div { border-right: 0.4pt solid #D4D4D4; border-bottom: 0.4pt solid #D4D4D4; padding: 1.2mm 1mm; display: flex; justify-content: space-between; align-items: baseline; font-size: 11pt; }
.ws .bank div i { font-style: normal; font-size: 9.5pt; color: #1A1A1A; font-weight: 700; background: #F3F4F6; border-radius: 1mm; padding: 0 1.4mm; }
.ws .code { display: flex; gap: 4mm; justify-content: center; margin-top: 2mm; }
.ws .code .group { display: flex; gap: 1mm; }
.ws .code .cell { width: 11mm; text-align: center; }
.ws .code .cell div { height: 11mm; border: 0.9pt solid #1A1A1A; border-radius: 1mm; }
.ws .code .cell span { font-size: 8pt; color: #6B7280; }
.ws .care { background: #F3F4F6; border-radius: 2mm; padding: 2mm 3mm; font-size: 9.5pt; line-height: 1.45; }
.ws .care b { font-weight: 700; }
.ws .upside { transform: rotate(180deg); font-size: 9pt; color: #6B7280; border-top: 0.6pt dashed #9CA3AF; padding-top: 1.5mm; text-align: center; }
.ws .spacer { flex: 1; }
.ws .foot { display: flex; align-items: center; gap: 3mm; border-top: 0.6pt solid #E5E7EB; padding-top: 2mm; margin-top: 2mm; font-size: 9pt; color: #6B7280; line-height: 1.4; }
.ws .foot img { width: 15mm; height: 15mm; }

/* Ajustes para pantalla: las fichas fluyen y en celular van en una columna. */
.ws { color: #1A1A1A; }
.ws .ws-page + .ws-page { margin-top: 3mm; }
.ws svg { max-width: 100%; height: auto; }
.ws .print-only, .ws .upside, .ws .spacer { display: none; }
.ws .ex { padding-bottom: 8px; }
.ws .side { display: block; }
.ws .care { margin: 6px 0 10px; }
.ws-teacher { border: 1px solid #E4E7EC; border-radius: 12px; padding: 12px 18px; background: #F9FAFB; margin-top: 16px; }
.ws-teacher summary { font-weight: 700; cursor: pointer; }
.ws-teacher h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.ws-teacher .meta, .ws-teacher li, .ws-teacher p { font-size: 0.95rem; line-height: 1.5; }
.ws-teacher table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.ws-teacher th, .ws-teacher td { border-bottom: 1px solid #E5E7EB; padding: 4px 6px; text-align: start; vertical-align: top; }
@media (max-width: 700px) {
    .ws .cells { grid-template-columns: 1fr !important; }
    .ws .formula.cols { grid-template-columns: 1fr 1fr !important; }
    .ws .legend { flex-wrap: wrap; }
}

/* Páginas de recursos educativos (portada y ficha). build.ts lo agrega a recursos-v1.css. */
.rc-head { max-width: 760px; margin-bottom: 1.5rem; }
.rc-head h1 { font-size: 2rem; font-weight: 700; margin: .25rem 0 .5rem; }
.rc-intro p { font-size: 1.05rem; line-height: 1.6; }
.rc-meta { color: #6B7280; font-size: .92rem; }
.rc-topic { display: inline-block; background: #DBEAFE; color: #1D4ED8; font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: .2rem .7rem; }
.rc-download { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.rc-download .rc-meta { margin: 0; }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.rc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
.rc-card .rc-thumb { display: block; background: #F3F4F6; padding: 1rem 1rem 0; height: 230px; overflow: hidden; border: 0; border-bottom: 1px solid #E5E7EB; border-radius: 0; box-shadow: none; }
.rc-card .rc-thumb img { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.rc-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.25rem 1.25rem; }
.rc-body h2 { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 .4rem; line-height: 1.3; }
.rc-body h2 a { color: #111827; }
.rc-body p { margin-bottom: .5rem; }
.rc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }

.rc-thumb { display: block; border: 1px solid #E5E7EB; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.rc-thumb img { display: block; width: 100%; height: auto; }
.rc-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; margin-bottom: 2rem; }
.rc-previews { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rc-info h2, .rc-content h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .75rem; }
.rc-info ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.rc-info li { margin-bottom: .4rem; }
.rc-calculators { display: flex; flex-direction: column; gap: .5rem; }
.rc-calculator { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border: 1px solid #E5E7EB; border-radius: 8px; color: #111827; font-weight: 600; }
.rc-calculator:hover { background: #F9FAFB; text-decoration: none; }

.rc-content { margin-bottom: 2rem; }
.rc-content .ws { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 1.25rem; margin-top: 1rem; }
.rc-more { padding-left: 1.2rem; }
.rc-more li { margin-bottom: .5rem; }

@media (max-width: 767px) {
    .rc-head h1 { font-size: 1.6rem; }
    .rc-detail { grid-template-columns: 1fr; gap: 1.25rem; }
    .rc-content .ws { padding: .75rem; border-radius: 8px; }
}
