.cot-page {
 background: radial-gradient(ellipse at 78% 0, #26355d, transparent 48rem), #0b1730;
 color: #eaf3ff;
}
.cot-page .site-header { position: static; }
.cot-page .cot-skip {
 position: absolute;
 inset: 10px auto auto 10px;
 z-index: 11;
 padding: 8px 12px;
 border-radius: 8px;
 background: #142b4e;
 transform: translateY(-200%);
}
.cot-page .cot-skip:focus { transform: none; }
.cot-visually-hidden {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
.cot-page h1, .cot-page h2, .cot-page h3, .cot-page p { margin-top: 0; }
.cot-page h2 { margin-bottom: .65em; font-size: clamp(1.34rem, 2.6vw, 1.85rem); }
.cot-page h3 { margin-bottom: .6em; font-size: 1.05rem; }
.cot-page p, .cot-panel li, .cot-definitions dd { line-height: 1.62; }
.cot-hero {
 display: grid;
 grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
 align-items: center;
 gap: clamp(18px, 4vw, 45px);
 margin-top: 22px;
 padding: clamp(23px, 4vw, 43px);
 border: 1px solid #48678f;
 border-radius: 21px;
 background: linear-gradient(130deg, #18385e, #2d2856);
}
.cot-hero h1 {
 margin-bottom: .4em;
 font-size: clamp(2.15rem, 5.8vw, 4.65rem);
 letter-spacing: -.052em;
 line-height: 1.04;
}
.cot-hero h1 span { color: #a9dcff; }
.cot-hero p:not(.eyebrow) { max-width: 47ch; color: #d5e6fa; font-size: clamp(.98rem, 1.45vw, 1.12rem); }
.cot-hero img {
 display: block;
 width: 100%;
 height: auto;
 border: 1px solid #4d6d95;
 border-radius: 13px;
 box-shadow: 0 16px 34px #080d254c;
}
.cot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cot-print-button[hidden] { display: none; }
.cot-print-button svg { width: 1.12em; height: 1.12em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.cot-index {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 margin: 14px 0 17px;
 padding: 10px;
 border: 1px solid #395881;
 border-radius: 12px;
 background: #102540;
}
.cot-index a { padding: 7px 9px; border-radius: 7px; color: #cde8ff; font-size: .86rem; font-weight: 650; }
.cot-index a:hover, .cot-index a:focus-visible { background: #23476d; }
.cot-lessons { display: grid; gap: 14px; }
.cot-panel, .cot-practice {
 min-width: 0;
 padding: clamp(16px, 3.5vw, 29px);
 border: 1px solid #345782;
 border-radius: 16px;
 background: #132a48;
 scroll-margin-top: 12px;
}
.cot-panel p { color: #d1e1f5; }
.cot-panel strong { color: #edf6ff; }
.cot-two, .cot-three { display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cot-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cot-page figure { margin: 0; min-width: 0; }
.cot-page figure img { width: 100%; height: auto; display: block; border-radius: 10px; }
.cot-page figcaption { margin-top: 7px; color: #bfd5ee; font-size: .86rem; line-height: 1.48; }
.cot-note {
 margin: 12px 0 0;
 padding: 10px 13px;
 border-left: 3px solid #8acbff;
 border-radius: 8px;
 background: #1c4164;
}
.cot-card { min-width: 0; padding: 13px; border: 1px solid #3a5d86; border-radius: 11px; background: #112642; }
.cot-card p { margin: 9px 0 0; font-size: .92rem; }
.cot-comparison { margin-block: 18px 13px; }
.cot-panel .cot-ok { color: #9defce; }
.cot-panel .cot-error { color: #ffb7b8; }
.cot-definitions { display: grid; gap: 11px; margin: 0; }
.cot-definitions dt { color: #a9d8ff; font-weight: 800; }
.cot-definitions dd { margin: 3px 0 0; color: #d1e1f5; }
.cot-table { width: 100%; border-collapse: collapse; text-align: left; color: #dceafb; margin-block: 8px; }
.cot-table caption { padding: 6px 0; color: #c7def6; font-size: .88rem; text-align: left; }
.cot-table th, .cot-table td { padding: 9px clamp(5px, 1vw, 12px); border-bottom: 1px solid #3c5877; vertical-align: top; }
.cot-table thead th { background: #1e3d60; }
.line-sample { display: block; width: clamp(26px, 8vw, 72px); height: 2px; margin-top: 9px; background: #c9dff7; }
.line-thick { height: 4px; }
.line-dashed { background: repeating-linear-gradient(90deg, #c9dff7 0 8px, transparent 8px 13px); }
.line-axis { background: repeating-linear-gradient(90deg, #c9dff7 0 11px, transparent 11px 15px, #c9dff7 15px 17px, transparent 17px 21px); }
.cot-rules, .cot-steps, .cot-list, .cot-errors { padding-left: 1.36em; color: #d1e1f5; margin-block: 0 10px; }
.cot-rules li, .cot-steps li, .cot-errors li { padding: 3px 0; }
.cot-rules li::marker, .cot-steps li::marker { color: #9bd4ff; font-weight: 800; }
.cot-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 34px; }
.cot-rules li { min-width: 0; padding: 12px; border: 1px solid #3a5d86; border-radius: 10px; background: #112642; }
.cot-rules p { margin-bottom: 9px; }
.cot-rule-examples { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cot-rules figure { width: min(100%, 420px); margin-inline: auto; }
.cot-rules figcaption { color: #cfdfef; }
.cot-normas-aplicacion { margin-top: 16px; }
.cot-errors { columns: 2; }
.cot-errors li { break-inside: avoid; }
.cot-practice { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; background: #1b3b5f; }
.cot-practice p { margin-bottom: 0; }
.cot-references { padding: 10px 4px 0; color: #becfe6; }
.cot-references h2 { font-size: 1.07rem; }
.cot-references li { margin-bottom: 6px; }
.cot-references a { color: #a6d9ff; text-decoration: underline; text-underline-offset: 3px; }
#quiz-progress { color: #a6d9ff; font-weight: 700; }
#quiz-questions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.cot-question {
 min-width: 0;
 padding: 10px;
 border: 1px solid #466991;
 border-radius: 10px;
 margin: 0;
 background: #102540;
}
.cot-question legend { padding-inline: 5px; font-weight: 750; }
.cot-question label { display: flex; align-items: center; gap: 8px; padding-block: 6px; cursor: pointer; }
.cot-question input { margin: 0; accent-color: #82c5ff; }
.cot-question [data-result="correct"] { color: #a4f2d2; }
.cot-question [data-result="wrong"] { color: #ffc3c5; }
.cot-question .cot-feedback { margin: 5px 0 0; font-size: .87rem; }
#quiz-result { margin: 9px 0 0; min-height: 1.45em; font-weight: 750; }
@media screen and (max-width:980px) {
 .cot-rules { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:720px) {
 .cot-hero,.cot-two,.cot-three,.cot-rules,#quiz-questions { grid-template-columns: minmax(0,1fr); }
 .cot-errors { columns: 1; }
 .cot-table { font-size: .88rem; }
}
@media screen and (max-width:480px) {
 .cot-rule-examples { grid-template-columns: minmax(0,1fr); }
}

@media print {
 @page { size: A4 portrait; margin: 12mm 14mm; }

 .cot-page { min-height: 0; background: #fff; color: #172633; font-size: 9.8pt; }
 .cot-page .container { width: 100%; max-width: none; }
 .cot-page .site-header, .cot-skip, .cot-actions, .cot-index, .cot-hero > img,
 #test, .cot-practice, .cot-summary-number { display: none !important; }

 .cot-hero { display: block; margin: 0 0 5mm; padding: 0 0 4mm; background: none; border: 0; border-bottom: 1pt solid #426582; border-radius: 0; }
 .cot-hero .eyebrow { color: #365a77; margin-bottom: 2mm; font-size: 8.5pt; }
 .cot-hero h1 { margin-bottom: 2mm; font-size: 26pt; }
 .cot-hero h1 span { color: inherit; }
 .cot-hero p:not(.eyebrow) { max-width: none; margin-bottom: 0; color: #304658; font-size: 10.75pt; }

 .cot-lessons { display: block; }
 .cot-panel, .cot-references { margin: 0 0 3mm; padding: 0; border: 0; border-radius: 0; background: none; }
 .cot-page h2 { margin-bottom: 2mm; color: #142d43; font-size: 15pt; break-after: avoid; }
 .cot-page h3 { margin-bottom: 1.5mm; font-size: 11pt; break-after: avoid; }
 .cot-page p, .cot-panel li, .cot-definitions dd { line-height: 1.35; }
 .cot-page p { margin-bottom: 2mm; orphans: 2; widows: 2; }
 .cot-panel p, .cot-panel strong, .cot-definitions dd, .cot-table, .cot-table caption, .cot-rules, .cot-steps, .cot-list, .cot-errors, .cot-references { color: #172633; }
 .cot-definitions dt { color: #264e6c; }
 .cot-definitions { gap: 2mm; }
 .cot-note { margin-block: 2mm 0; padding: 1.6mm 3mm; border-left: 1.5pt solid #6689a4; border-radius: 0; background: none; }
 .cot-panel .cot-ok { color: #166149; }
 .cot-panel .cot-error { color: #8a2e32; }
 .cot-rules li::marker, .cot-steps li::marker { color: #315b7c; }
 .cot-two, .cot-rules { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .cot-two, .cot-three { gap: 3.5mm; }
 .cot-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .cot-two, .cot-three, .cot-page figure, .cot-rules li, .cot-table tr { break-inside: avoid; }
 #concepto .cot-two, #elementos .cot-two { grid-template-columns: minmax(0,1.34fr) minmax(0,.66fr); }
 #ejemplo .cot-two { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
 #ejemplo figure img { width: 92%; margin-inline: auto; }
 #normas, #procedimiento, .cot-normas-aplicacion { break-before: page; }
 .cot-normas-aplicacion { margin-top: 0; }
 .cot-card, .cot-rules li { padding: 2mm; border: .65pt solid #9fb1c1; border-radius: 1.5mm; background: none; }
 .cot-rules { gap: 2mm 6mm; margin-bottom: 0; font-size: 9.5pt; }
 .cot-rules li:nth-child(5) { break-before: page; }
 .cot-rules p { margin-bottom: 1.5mm; }
 .cot-rule-examples { grid-template-columns: minmax(0,1fr); gap: 2mm; }
 .cot-rules figure { width: 100%; }
 .cot-rules figure img { width: min(100%, 70mm); margin-inline: auto; }
 .cot-page figure img { border-radius: 1mm; }
 .cot-page figcaption { margin-top: 1mm; color: #334c60; font-size: 9pt; line-height: 1.38; }
 .cot-card p { margin: 1.5mm 0 0; font-size: 9pt; }
 .cot-three figure { width: 83%; margin-inline: auto; }
 .cot-comparison figure img { width: 70%; margin-inline: auto; }
 .cot-comparison { margin-block: 2mm; }
 .cot-table { margin-block: 1mm; font-size: 9.5pt; }
 .cot-table caption { padding: 1mm 0; font-size: 9pt; }
 .cot-table th, .cot-table td { padding: 1.3mm 2mm; border-color: #b1c1ce; }
 .cot-table thead th { border-bottom-color: #71899d; background: none; }
 .line-sample { width: 15mm; margin-top: 2mm; background: #1b3246; print-color-adjust: exact; }
 .line-dashed { background: repeating-linear-gradient(90deg, #1b3246 0 8px, transparent 8px 13px); }
 .line-axis { background: repeating-linear-gradient(90deg, #1b3246 0 11px, transparent 11px 15px, #1b3246 15px 17px, transparent 17px 21px); }
 .cot-steps li, .cot-errors li { padding-block: .55mm; }
 .cot-errors { columns: 2; }
 #titulo-resumen::before { content: '10. '; }
 .cot-references h2 { font-size: 11pt; }
 .cot-references ul { margin-block: 0; }
 .cot-references a { color: #244a68; }
 .cot-page footer { margin-top: 0; padding: 2mm 0 0; border-top: .7pt solid #9fb1c1; color: #334c60; font-size: 8.5pt; break-inside: avoid; }
 .cot-page footer strong { color: #243f54; }
}
