/* Plantillas: approved glass-document identity, isolated from the shared shell. */
.templates-page {
  --tpl-ink: #08142e;
  --tpl-muted: #43536b;
  --tpl-paper: #fbfaf7;
  --tpl-line: #dce3e8;
  --tpl-orange: #ff6b00;
  --tpl-orange-dark: #ad420c;
  color: var(--tpl-ink);
  background: var(--tpl-paper);
}
.templates-page *, .templates-page *::before, .templates-page *::after { box-sizing: border-box; }
.templates-page .contenedor { max-width: 1320px; width: calc(100% - 64px); margin-inline: auto; }
.templates-page .tpl-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.templates-page a { text-underline-offset: 5px; }
.templates-page a:focus-visible, .templates-page summary:focus-visible {
  outline: 3px solid #1681b8;
  outline-offset: 5px;
}
.templates-page .tpl-hero { padding-block: 12px 0; overflow: hidden; overflow: clip; }
.templates-page .migas { font-size: 14px; line-height: 1.7; color: var(--tpl-muted); margin: 0 0 24px; }
.templates-page .migas a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.templates-page .tpl-hero-grid { display: grid; grid-template-columns: 1fr 1.13fr; align-items: center; gap: 10px; }
.templates-page .tpl-hero-copy { position: relative; z-index: 1; padding-block: 24px 35px; }
.templates-page .tpl-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #28425b; margin: 0 0 23px; }
.templates-page .tpl-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tpl-orange); flex: 0 0 7px; }
.templates-page h1 { font-size: clamp(42px, 4.6vw, 65px); line-height: 1.055; letter-spacing: -0.055em; font-weight: 750; margin: 0 0 25px; max-width: 620px; color: var(--tpl-ink); }
.templates-page h1 span { display: block; }
.templates-page h1 .tpl-title-accent { color: var(--tpl-orange-dark); }
.templates-page .respuesta-corta { max-width: 510px; font-size: 19px; line-height: 1.65; color: #324760; margin: 0 0 20px; background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
.templates-page .tpl-hero-note { max-width: 480px; font-size: 14px; line-height: 1.7; margin: 0 0 26px; color: #5a6372; }
.templates-page .tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.templates-page .tpl-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 13px; color: var(--tpl-ink); font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none; text-align: center; box-shadow: 0 6px 16px rgb(12 29 49 / 5%); transition: background-color 180ms ease, box-shadow 180ms ease; }
.templates-page .tpl-primary { background: var(--tpl-orange); border-color: #ed6100; }
.templates-page .tpl-primary:hover { background: #ff7b1c; box-shadow: 0 7px 20px rgb(174 69 9 / 14%); }
.templates-page .tpl-secondary { background: rgb(255 255 255 / 76%); border-color: #d3dde6; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgb(21 44 66 / 5%); }
.templates-page .tpl-secondary:hover { background: #fff; border-color: #9cafc3; }
.templates-page .tpl-hero-art { min-width: 0; position: relative; margin: -16px -24px 0 -10px; }
.templates-page .tpl-hero-art img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: contain; }
.templates-page .tpl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 31px 0 39px; margin: 15px 0 0; border-bottom: 1px solid var(--tpl-line); }
.templates-page .tpl-steps li { position: relative; display: grid; grid-template-columns: 53px minmax(0, 1fr); column-gap: 17px; align-items: center; }
.templates-page .tpl-step-number { display: flex; align-items: center; justify-content: center; grid-row: auto; width: 53px; height: 53px; border: 1px solid #d1dfe3; border-radius: 50%; background: linear-gradient(135deg, #fff 10%, #edf7f9 49%, #f9f0e5); box-shadow: inset 0 0 0 4px rgb(255 255 255 / 70%), 0 5px 14px rgb(12 43 62 / 7%); font-size: 17px; font-weight: 650; color: #425367; }
.templates-page .tpl-steps h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 5px; }
.templates-page .tpl-steps p { font-size: 14px; line-height: 1.5; color: var(--tpl-muted); margin: 0; }
.templates-page .tpl-downloads { padding-block: 65px 72px; scroll-margin-top: 115px; }
.templates-page .tpl-section-head { margin-bottom: 27px; }
.templates-page .tpl-section-head h2 { font-size: clamp(29px, 3vw, 40px); line-height: 1.18; letter-spacing: -.045em; margin: 0 0 12px; }
.templates-page .tpl-section-head p { color: var(--tpl-muted); font-size: 17px; line-height: 1.6; margin: 0; }
.templates-page .tpl-resource-list { display: grid; gap: 16px; }
.templates-page .tpl-resource { display: grid; grid-template-columns: 75px 28px minmax(0, 1fr) auto; gap: 19px; align-items: center; padding: 27px 28px; border: 1px solid #dce3e6; border-radius: 20px; background: linear-gradient(115deg, rgb(255 255 255 / 97%), rgb(255 255 255 / 85%) 75%, rgb(245 248 248 / 90%)); box-shadow: inset 0 1px 0 #fff, 0 5px 15px rgb(29 48 67 / 3%); }
.templates-page .tpl-file-art { display: flex; align-items: center; justify-content: center; width: 75px; height: 88px; perspective: 400px; }
.templates-page .tpl-file-art > span { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 70px; border: 1px solid #b5ccd5; border-radius: 8px 14px 8px 8px; background: linear-gradient(135deg, #fff 10%, #e6f3f7 60%, #d7e7f1); color: #375775; transform: rotate(-7deg); box-shadow: 3px 4px 0 #f6fafb, 4px 5px 0 #d4e2e8, 8px 10px 17px rgb(27 55 78 / 11%), inset 2px 2px 3px #fff; }
.templates-page .tpl-file-art > span::after { content: ""; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 0 12px 0 3px; border-left: 1px solid #b6cdd9; border-bottom: 1px solid #b6cdd9; background: linear-gradient(135deg, #fff, #d6e9f1); }
.templates-page .tpl-file-art .tpl-icon { width: 30px; height: 30px; stroke-width: 1.3; }
.templates-page .tpl-resource-number { font-size: 14px; font-weight: 650; color: #a64a1d; align-self: start; margin-top: 8px; }
.templates-page .tpl-resource-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.templates-page .tpl-resource h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.035em; color: var(--tpl-ink); margin: 0; }
.templates-page .tpl-resource-meta { margin: 0 0 6px; color: #34526b; font-size: 14px; font-weight: 600; line-height: 1.5; }
.templates-page .tpl-resource-description { font-size: 15px; line-height: 1.65; color: var(--tpl-muted); margin: 0; max-width: 610px; }
.templates-page .tpl-install-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #294d69; font-size: 14px; font-weight: 550; }
.templates-page .tpl-install-link .tpl-icon { width: 17px; height: 17px; flex-basis: 17px; }
.templates-page .tpl-resource-action { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.templates-page .tpl-format { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 6px 9px; color: #4f6070; font-size: 14px; font-weight: 600; line-height: 1.3; border: 1px solid #dfe5e8; border-radius: 7px; background: #f7f9f9; }
.templates-page .tpl-resource-action .tpl-button { min-width: 192px; }
.templates-page .tpl-experimental { padding: 4px 10px; border: 1px solid #e4d3bb; border-radius: 20px; color: #865222; background: #fff9ed; font-size: 14px; font-weight: 550; line-height: 1.35; }
.templates-page .tpl-method { margin-top: 24px; border-bottom: 1px solid var(--tpl-line); }
.templates-page .tpl-method summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 12px 4px; color: #2d4a65; cursor: pointer; list-style: none; font-size: 14px; line-height: 1.5; font-weight: 600; }
.templates-page .tpl-method summary::-webkit-details-marker { display: none; }
.templates-page .tpl-method summary > .tpl-icon { transition: transform 180ms ease; }
.templates-page .tpl-method[open] summary > .tpl-icon { transform: rotate(180deg); }
.templates-page .tpl-method-content { padding: 6px 4px 24px; }
.templates-page .tpl-method-content > p { font-size: 15px; line-height: 1.7; color: var(--tpl-muted); margin: 0 0 20px; }
.templates-page .tpl-method-content dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 40px; margin: 0; }
.templates-page .tpl-method-content dt { font-size: 15px; font-weight: 650; margin: 0 0 7px; line-height: 1.5; }
.templates-page .tpl-method-content dd { font-size: 14px; line-height: 1.75; color: var(--tpl-muted); margin: 0; }
.templates-page .tpl-before { background: #09162e; color: #edf4f9; padding-block: 62px; }
.templates-page .tpl-before-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; }
.templates-page .tpl-before h2 { font-size: clamp(31px, 3.5vw, 47px); line-height: 1.15; letter-spacing: -.045em; margin: 0 0 25px; color: #fff; }
.templates-page .tpl-before h2 span { display: block; color: #ffc18c; }
.templates-page .tpl-before-note { color: #c4d1e1; font-size: 16px; line-height: 1.7; margin: 0; max-width: 420px; }
.templates-page .tpl-checks { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0 0 22px; }
.templates-page .tpl-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.55; }
.templates-page .tpl-check { display: flex; align-items: center; justify-content: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid #587385; border-radius: 50%; color: #b9d8e4; background: #152d40; margin-top: 1px; }
.templates-page .tpl-check .tpl-icon { width: 16px; height: 16px; flex-basis: 16px; }
.templates-page .tpl-install-note { font-size: 14px; line-height: 1.7; color: #bfcede; margin: 0 0 22px; }
.templates-page .tpl-light { background: #f8fafb; border-color: #d1e1e6; box-shadow: inset 0 1px 0 #fff, 0 4px 20px rgb(0 0 0 / 8%); }
.templates-page .tpl-light:hover { background: #e6f1f7; }
.templates-page .tpl-before a:focus-visible { outline-color: #83d7fb; }
.templates-page .tpl-help { padding-block: 65px 52px; }
.templates-page .tpl-help-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px 40px; align-items: center; }
.templates-page .tpl-niseus { display: flex; align-items: center; gap: 14px; align-self: center; text-decoration: none; color: var(--tpl-ink); font-weight: 650; font-size: 23px; letter-spacing: -.035em; }
.templates-page .tpl-niseus img { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; }
.templates-page .tpl-help h2 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 10px; }
.templates-page .tpl-help p { font-size: 15px; line-height: 1.65; color: var(--tpl-muted); margin: 0; }
.templates-page .tpl-help .tpl-actions { margin-top: 23px; }
.templates-page .tpl-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; font-weight: 550; color: #284b68; padding-inline: 7px; }
.templates-page .tpl-help .tpl-independence { grid-column: 2; margin-top: 18px; font-size: 14px; color: #5a6573; }
@media (min-width: 1200px) {
  .templates-page .tpl-steps { gap: 90px; }
  .templates-page .tpl-steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; right: -64px; width: 52px; height: 1px; background: #d5dee2; }
}
@media (max-width: 1100px) {
  .templates-page .tpl-hero-grid { grid-template-columns: 1fr 1fr; }
  .templates-page h1 { font-size: 51px; }
  .templates-page .tpl-resource { grid-template-columns: 64px 24px minmax(0, 1fr) auto; gap: 14px; padding: 24px; }
  .templates-page .tpl-file-art { width: 64px; }
  .templates-page .tpl-resource-action { flex-direction: column; gap: 9px; margin-left: 0; }
  .templates-page .tpl-resource-action .tpl-button { min-width: 178px; padding-inline: 15px; }
  .templates-page .tpl-before-grid { gap: 45px; }
}
@media (max-width: 800px) {
  .templates-page .contenedor { width: calc(100% - 40px); }
  .templates-page .migas { margin-bottom: 12px; }
  .templates-page .tpl-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .templates-page .tpl-hero-copy { padding-block: 15px 0; }
  .templates-page h1 { font-size: clamp(43px, 7vw, 58px); }
  .templates-page .respuesta-corta, .templates-page .tpl-hero-note { max-width: 580px; }
  .templates-page .tpl-hero-art { margin: -5px auto -10px; width: min(100%, 640px); }
  .templates-page .tpl-steps { margin-top: 0; gap: 22px; padding-block: 24px 31px; }
  .templates-page .tpl-steps li { grid-template-columns: 1fr; row-gap: 10px; align-content: start; }
  .templates-page .tpl-step-number { grid-row: auto; }
  .templates-page .tpl-steps h2 { font-size: 17px; margin-bottom: 0; }
  .templates-page .tpl-steps p { font-size: 14px; }
  .templates-page .tpl-downloads { padding-block: 45px 48px; }
  .templates-page .tpl-resource { grid-template-columns: 57px 22px minmax(0, 1fr); gap: 14px; }
  .templates-page .tpl-file-art { width: 57px; align-self: start; }
  .templates-page .tpl-resource-action { grid-column: 3; flex-direction: row; justify-content: flex-start; margin-top: 3px; }
  .templates-page .tpl-resource h3 { font-size: 23px; }
  .templates-page .tpl-before { padding-block: 45px; }
  .templates-page .tpl-before-grid { grid-template-columns: 1fr; gap: 30px; }
  .templates-page .tpl-before-note { max-width: 620px; }
  .templates-page .tpl-before h2 { margin-bottom: 18px; }
  .templates-page .tpl-help-grid { grid-template-columns: 1fr; gap: 23px; }
  .templates-page .tpl-niseus { grid-row: auto; justify-self: start; }
  .templates-page .tpl-help .tpl-independence { grid-column: auto; }
  .templates-page .tpl-help { padding-block: 43px; }
}
@media (max-width: 480px) {
  .templates-page .contenedor { width: calc(100% - 32px); }
  .templates-page .tpl-eyebrow { font-size: 14px; margin-bottom: 20px; }
  .templates-page h1 { font-size: clamp(38px, 10.5vw, 49px); }
  .templates-page .respuesta-corta { font-size: 17px; line-height: 1.65; }
  .templates-page .tpl-actions { align-items: stretch; flex-direction: column; }
  .templates-page .tpl-actions .tpl-button { width: 100%; }
  .templates-page .tpl-actions .tpl-link { justify-content: center; }
  .templates-page .tpl-hero-art { margin-block: 6px -5px; }
  .templates-page .tpl-steps { gap: 14px; }
  .templates-page .tpl-step-number { width: 45px; height: 45px; font-size: 15px; }
  .templates-page .tpl-steps li { row-gap: 9px; }
  .templates-page .tpl-steps h2 { font-size: 15px; }
  .templates-page .tpl-section-head h2 { font-size: 29px; }
  .templates-page .tpl-section-head p { font-size: 16px; }
  .templates-page .tpl-resource { grid-template-columns: 46px minmax(0, 1fr); gap: 10px 13px; padding: 22px 17px; border-radius: 17px; }
  .templates-page .tpl-file-art { width: 46px; height: 58px; }
  .templates-page .tpl-file-art > span { width: 39px; height: 51px; border-radius: 6px 11px 6px 6px; }
  .templates-page .tpl-file-art > span::after { width: 10px; height: 10px; }
  .templates-page .tpl-file-art .tpl-icon { width: 23px; height: 23px; }
  .templates-page .tpl-resource-number { grid-column: 1; grid-row: 2; text-align: center; margin-top: 0; }
  .templates-page .tpl-resource-copy { grid-column: 2; grid-row: 1 / 3; }
  .templates-page .tpl-resource h3 { font-size: 21px; line-height: 1.25; }
  .templates-page .tpl-resource-description { font-size: 14px; line-height: 1.7; }
  .templates-page .tpl-resource-action { grid-column: 1 / -1; margin-top: 12px; gap: 12px; }
  .templates-page .tpl-resource-action .tpl-button { min-width: 0; flex: 1; padding-inline: 12px; }
  .templates-page .tpl-format { min-width: 46px; }
  .templates-page .tpl-method-content dl { grid-template-columns: 1fr; gap: 22px; }
  .templates-page .tpl-before h2 { font-size: 33px; }
  .templates-page .tpl-before .tpl-button { width: 100%; }
  .templates-page .tpl-before-note, .templates-page .tpl-checks li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .templates-page .tpl-button, .templates-page .tpl-method summary > .tpl-icon { transition: none; }
}
@media (forced-colors: active) {
  .templates-page .tpl-button, .templates-page .tpl-resource, .templates-page .tpl-format, .templates-page .tpl-step-number, .templates-page .tpl-check { border: 1px solid ButtonText; }
  .templates-page .tpl-file-art > span { border-color: CanvasText; box-shadow: none; }
}
