/* Doctor Online MX v2 — /aviso-permiso-cofepris (guía + servicio)
   Idea visual: «el anuncio que pasa la revisión». El hero muestra un anuncio que se escanea, se corrige
   y recibe el sello; el resto de la página es la guía que explica por qué. */

@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

.page-cofe .section { padding-block: clamp(3.75rem, 2.5rem + 5vw, 7.5rem); }
.page-cofe .section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.page-cofe [id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Barra de lectura ---------- */
.cf-progress { position: fixed; z-index: 95; inset: 0 0 auto 0; height: 3px; pointer-events: none; }
.cf-progress span { display: block; height: 100%; background: linear-gradient(90deg, #5B8CFF, var(--electric)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(0, 85, 255, .55); }

/* ---------- Hero ---------- */
.cf-hero h1 { font-size: clamp(2.15rem, 8.4cqi, 4.2rem); }
.cf-h1__key { color: var(--sky); }
.cf-h1 .cf-h1__sub { font-family: var(--font); font-size: .45em; font-weight: 560; word-spacing: normal; letter-spacing: -.01em; line-height: 1.18; color: rgba(255, 255, 255, .8); padding-top: .45em; }
.cf-byline { font-size: var(--fs-xs); color: rgba(255, 255, 255, .62); }
.cf-hero__price .price__num { font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); color: var(--sky); }
.cf-hero__price small { max-width: 30rem; }
.cf-hero .s-hero__trust .i { width: 1.05rem; height: 1.05rem; }

/* Escena: el anuncio que se revisa */
.cf-stage { position: relative; isolation: isolate; width: 100%; max-width: 540px; margin-inline: auto; padding: .75rem 0 3.25rem; perspective: 1300px; }
.cf-stage::before { content: ""; position: absolute; z-index: -1; inset: 6% 2% 10% 8%; border-radius: 42% 58% 52% 48%; background: radial-gradient(closest-side, rgba(0, 85, 255, .26), rgba(0, 85, 255, 0)); filter: blur(6px); }
.cf-scan { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.cf-ad { position: relative; color: var(--ink); width: 74%; margin-left: 3%; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); animation: cf-ad-in 1.1s .3s var(--ease-out) both; transform-origin: 50% 100%; }
@keyframes cf-ad-in { from { opacity: 0; transform: translateY(26px) rotateX(16deg) rotateZ(-2deg); } }
.cf-ad__head { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; }
.cf-ad__head img { width: 2.3rem; height: 2.3rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.cf-ad__head span { display: grid; line-height: 1.2; min-width: 0; }
.cf-ad__head b { font-size: .9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-ad__head em { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.cf-ad__head .i { margin-left: auto; color: var(--electric); width: 1.15rem; height: 1.15rem; }
.cf-ad__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.cf-ad__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.cf-ad__copy { display: grid; gap: .35rem; padding: .85rem 1rem 1.05rem; }
.cf-ad__line { display: grid; min-height: 2.55em; font-size: clamp(.9rem, .82rem + .35vw, 1.05rem); font-weight: 660; font-stretch: var(--semi-wide); letter-spacing: -.01em; line-height: 1.25; }
.cf-ad__line > span { grid-area: 1 / 1; }
.cf-bad { color: #B42318; opacity: 0; animation: cf-bad 2.8s .2s both; }
@keyframes cf-bad { 0%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.45em); } }
.cf-bad s { position: relative; text-decoration: none; }
.cf-bad s::after { content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: 2.5px; border-radius: 2px; background: #B42318; transform-origin: 0 50%; animation: cf-strike .5s 1.5s var(--ease-out) both; }
@keyframes cf-strike { from { transform: scaleX(0); } }
.cf-good { color: var(--ink); animation: cf-good .6s 2.5s var(--ease-out) both; }
@keyframes cf-good { from { opacity: 0; transform: translateY(.45em); } }
.cf-ad__sub { font-size: .76rem; color: var(--ink-2); line-height: 1.35; }
.cf-ad__ced { justify-self: start; margin-left: -.4rem; padding: .15rem .4rem; border-radius: 6px; font-size: .72rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; animation: cf-ced 1.3s 2.85s both; }
@keyframes cf-ced { 30% { background: rgba(0, 85, 255, .12); box-shadow: inset 0 0 0 1px rgba(0, 85, 255, .45); color: var(--electric-600); } }
.cf-ad__beam { position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(0, 85, 255, 0), rgba(0, 85, 255, .12) 72%, rgba(0, 85, 255, .5) 97%, rgba(255, 255, 255, .95) 100%); animation: cf-beam 1.5s .95s var(--ease-in-out) both; }
@keyframes cf-beam { 0% { opacity: 1; transform: translateY(-100%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(300%); } }

.cf-checks { color: var(--ink); position: absolute; right: 0; bottom: -2.25rem; width: 56%; max-width: 270px; margin: 0; padding: .85rem .95rem; display: grid; gap: .5rem; border-radius: 18px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); transform: translateZ(40px); animation: enter-in .8s 2.3s var(--ease-out) both; }
.cf-checks li { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 620; line-height: 1.25; color: var(--ink); animation: cf-check .5s var(--d, 2.5s) var(--ease-out) both; }
@keyframes cf-check { from { opacity: 0; transform: translateX(-8px); } }
.cf-checks .i { width: 1.3rem; height: 1.3rem; padding: .22rem; border-radius: 50%; background: rgba(62, 207, 191, .2); color: var(--mint-ink); flex: none; }

.cf-seal { position: absolute; right: 3%; top: -.25rem; width: 30%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--electric); color: #fff; box-shadow: 0 18px 40px -14px rgba(0, 85, 255, .85), inset 0 0 0 4px rgba(255, 255, 255, .16); transform: translateZ(70px) rotate(-12deg); animation: cf-stamp .6s 3.4s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes cf-stamp { from { opacity: 0; transform: translateZ(70px) scale(1.9) rotate(-38deg); } }
.cf-seal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(0, 85, 255, .55); opacity: 0; animation: cf-ripple 1s 3.7s ease-out both; }
@keyframes cf-ripple { from { opacity: 1; transform: scale(.85); } to { opacity: 0; transform: scale(1.4); } }
.cf-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cf-seal__ring text { fill: #fff; font-size: 9.6px; font-weight: 700; letter-spacing: .04em; font-family: var(--font); }
.cf-seal__core { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--electric); }
.cf-seal__core .i { width: 56%; height: 56%; }
@media (max-width: 1023px) { .cf-stage { max-width: 440px; margin-top: .5rem; } }
@media (max-width: 559px) { .cf-stage { padding-bottom: 6.25rem; } .cf-checks { bottom: -5.5rem; width: 62%; } }

/* ---------- Frase grande ---------- */
.cf-why__note { margin-top: 1.1rem; max-width: 62ch; }

/* ---------- Índice ---------- */
.cf-index { border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.cf-index summary { list-style: none; display: flex; align-items: center; gap: 1rem; min-height: 44px; padding: 1.1rem 1.25rem; cursor: pointer; border-radius: var(--r-panel); }
.cf-index summary::-webkit-details-marker { display: none; }
.cf-index summary::after { content: ""; flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 999px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1D3B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px no-repeat; transition: transform .35s var(--ease-out); }
.cf-index[open] summary::after { transform: rotate(180deg); }
.cf-index .i-box { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--electric-050); color: var(--electric); flex: none; }
.cf-index__head b { display: block; font-weight: 640; font-stretch: var(--semi-wide); font-size: 1.08rem; line-height: 1.25; }
.cf-index__head small { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.cf-index__list { list-style: none; margin: 0; padding: 0 1.25rem 1.1rem; display: grid; counter-reset: idx; }
@media (min-width: 760px) { .cf-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 1100px) { .cf-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cf-index__list li { counter-increment: idx; border-top: 1px solid var(--line); }
.cf-index__list a { display: flex; align-items: baseline; gap: .75rem; min-height: 44px; padding: .75rem 0; font-weight: 560; font-size: var(--fs-small); color: var(--ink); transition: color .2s var(--ease-out); }
.cf-index__list a::before { content: counter(idx, decimal-leading-zero); flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--electric); font-variant-numeric: tabular-nums; }
.cf-index__list a:hover { color: var(--electric); }

/* ---------- Diagnóstico ---------- */
.dx { display: grid; gap: 1.25rem; }
.dx__pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.dx__legend { padding: 0; margin-bottom: .75rem; font-weight: 640; font-size: var(--fs-small); color: var(--ink-2); }
.dx__opts { display: grid; gap: .65rem; }
@media (min-width: 760px) { .dx__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dx__opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dx-opt { position: relative; display: block; cursor: pointer; }
.dx-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dx-opt__box { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .85rem; align-items: start; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); transition: box-shadow .25s var(--ease-out), transform .35s var(--ease-out), background-color .25s var(--ease-out); }
.dx-opt__box b { display: block; font-weight: 640; font-stretch: var(--semi-wide); line-height: 1.25; }
.dx-opt__box small { display: block; margin-top: .25rem; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.dx-opt .i-box { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--electric-050); color: var(--electric); transition: background-color .25s, color .25s; }
.dx-opt:hover .dx-opt__box { box-shadow: 0 0 0 1.5px rgba(0, 85, 255, .45), var(--shadow-2); transform: translateY(-2px); }
.dx-opt input:checked + .dx-opt__box { background: linear-gradient(180deg, #fff, var(--electric-050)); box-shadow: 0 0 0 2px var(--electric), var(--shadow-2); }
.dx-opt input:checked + .dx-opt__box .i-box { background: var(--electric); color: #fff; }
.dx-opt input:focus-visible + .dx-opt__box { outline: 2.5px solid var(--electric); outline-offset: 3px; }
.dx-opt--soft .dx-opt__box { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.dx__results { display: grid; gap: 1.25rem; margin-top: .5rem; }
@media (min-width: 760px) { .dx__results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dx-card { position: relative; display: grid; gap: .9rem; align-content: start; padding: clamp(1.35rem, 1rem + 1.3vw, 2.1rem); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); transition: opacity .45s var(--ease-out), transform .5s var(--ease-out), box-shadow .3s var(--ease-out), filter .45s; }
.dx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 70% at 100% 0%, rgba(0, 85, 255, .1), rgba(0, 85, 255, 0) 70%); }
.dx-card--permiso::before { background: radial-gradient(60% 70% at 100% 0%, rgba(6, 20, 51, .09), rgba(6, 20, 51, 0) 70%); }
.dx-card .t-h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.dx-card .ticks li { font-size: var(--fs-small); }
.dx.has-pick .dx-card:not(.is-match):not(.is-focus) { opacity: .5; transform: scale(.985); filter: saturate(.5); }
.dx-card.is-match, .dx-card.is-focus { box-shadow: 0 0 0 2px var(--electric), var(--shadow-3); }
.dx-card__stamp { position: absolute; z-index: 2; top: -.8rem; right: 1.1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: var(--electric); color: #fff; font-size: var(--fs-xs); font-weight: 700; box-shadow: 0 10px 22px -10px rgba(0, 85, 255, .9); opacity: 0; transform: rotate(-5deg) scale(.6); pointer-events: none; }
.dx-card__stamp .i { width: 1rem; height: 1rem; }
.dx-card.is-match .dx-card__stamp { opacity: 1; transform: rotate(-5deg); animation: cf-stamp-sm .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes cf-stamp-sm { from { opacity: 0; transform: rotate(-22deg) scale(1.9); } }
.dx-card__verdict { padding: .9rem 1rem; border-radius: 14px; background: var(--electric-050); color: var(--ink); font-size: var(--fs-small); line-height: 1.5; animation: enter-in .5s var(--ease-out) both; }
.dx-card__verdict b { display: block; margin-bottom: .2rem; font-size: var(--fs-xs); color: var(--electric-600); }
.dx-card__more { font-size: var(--fs-small); color: var(--ink-2); padding-top: .9rem; border-top: 1px solid var(--line); }
.dx__out { display: grid; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--paper-2); }
@media (min-width: 900px) { .dx__out { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.dx__status { font-weight: 600; color: var(--ink); font-size: var(--fs-small); line-height: 1.5; }
.dx__out .cluster small { max-width: 18rem; }

/* ---------- Comparativa (tabla que no desborda en celular) ---------- */
.cmp { border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); overflow: clip; }
.cmp__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-small); }
.cmp__table th, .cmp__table td { text-align: left; vertical-align: top; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.cmp__table tbody tr:last-child > * { border-bottom: 0; }
.cmp__table tbody th { width: 20%; color: var(--ink); font-weight: 620; }
.cmp__table td b { color: var(--ink); font-weight: 650; }
.cmp__table thead th { padding: 1.3rem 1.3rem 1.15rem; vertical-align: bottom; background: var(--paper-2); }
.cmp__corner { background: var(--paper-2); }
.cmp__col { width: 40%; }
.cmp__tag { display: block; font-size: var(--fs-xs); font-weight: 620; color: var(--ink-3); }
.cmp__name { display: block; margin-top: .15rem; font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: var(--electric); }
.cmp__table thead .cmp__col--permiso { background: var(--electric); }
.cmp__col--permiso .cmp__tag { color: rgba(255, 255, 255, .78); }
.cmp__col--permiso .cmp__name { color: #fff; }
.cmp__table tbody td:last-child { background: rgba(0, 85, 255, .028); }
.cmp__table tbody tr > * { transition: background-color .2s var(--ease-out); }
.cmp__table tbody tr:hover > * { background-color: rgba(0, 85, 255, .05); }
.cmp__mono { font-variant-numeric: tabular-nums; font-weight: 640; color: var(--ink) !important; letter-spacing: .01em; }
.cmp__mono .nw { white-space: nowrap; }
@media (max-width: 759px) {
  .cmp__table, .cmp__table thead, .cmp__table tbody { display: block; }
  .cmp__table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp__table thead { position: sticky; top: 0; z-index: 2; }
  .cmp__table th, .cmp__table td { width: auto; }
  .cmp__table thead .cmp__corner { display: none; }
  .cmp__table thead th { padding: .85rem 1rem .8rem; }
  .cmp__table tbody tr { border-bottom: 1px solid var(--line); }
  .cmp__table tbody tr:last-child { border-bottom: 0; }
  .cmp__table tbody th { grid-column: 1 / -1; width: auto; padding: .9rem 1rem .2rem; border-bottom: 0; font-size: var(--fs-xs); font-weight: 680; color: var(--electric-600); }
  .cmp__table tbody td { padding: .25rem 1rem .95rem; border-bottom: 0; font-size: .9375rem; }
  .cmp__table tbody td + td { border-left: 1px solid var(--line); }
  .cmp__mono { font-size: .84rem; }
}

/* ---------- Requisitos (lista que se marca) ---------- */
.cf-req { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cf-req { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 4rem; align-items: start; } .cf-req__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.cf-req__intro { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.req-meter { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 24rem; padding: .9rem 1.1rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.req-meter__ring { position: relative; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--electric) calc(var(--p) * 1%), var(--paper-2) 0); transition: --p .7s var(--ease-out); }
.req-meter__ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.req-meter__ring b { position: relative; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.req-meter.is-done .req-meter__ring { background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--paper-2) 0); }
.req-meter p { display: grid; gap: .1rem; line-height: 1.3; }
.req-meter small { font-size: var(--fs-xs); color: var(--ink-3); }
.cf-req__permiso { max-width: 40ch; }
.req-list { display: grid; gap: .65rem; }
.req { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .9rem; align-items: start; padding: 1rem 1.15rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s var(--ease-out), background-color .25s var(--ease-out); }
.req:hover { box-shadow: 0 0 0 1.5px rgba(0, 85, 255, .4); }
.req input { position: absolute; top: 1rem; left: 1.15rem; width: 1.6rem; height: 1.6rem; margin: 0; opacity: 0; cursor: pointer; }
.req__box { width: 1.6rem; height: 1.6rem; margin-top: .05rem; border-radius: 8px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px var(--line-strong); transition: background-color .2s, box-shadow .2s; }
.req__box::after { content: ""; width: .42rem; height: .78rem; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.2, 1.5, .4, 1); }
.req input:checked + .req__box { background: var(--electric); box-shadow: none; }
.req input:checked + .req__box::after { transform: translateY(-2px) rotate(45deg) scale(1); }
.req input:focus-visible + .req__box { outline: 2.5px solid var(--electric); outline-offset: 3px; }
.req:has(input:checked) { background: linear-gradient(180deg, #fff, var(--electric-050)); box-shadow: 0 0 0 1.5px rgba(0, 85, 255, .35); }
.req__txt { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.req__txt b { color: var(--ink); font-weight: 620; }

/* ---------- Costo y tiempos ---------- */
.cf-cost { display: grid; gap: 1rem; }
@media (min-width: 900px) { .cf-cost { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cf-tile { position: relative; overflow: hidden; display: grid; gap: .75rem; align-content: start; grid-template-rows: auto auto auto 1fr; padding: clamp(1.35rem, 1rem + 1.3vw, 2.1rem); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.cf-tile h3 { font-size: var(--fs-small); font-weight: 650; font-stretch: var(--semi-wide); color: var(--ink-2); }
.cf-tile__num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.7rem + 2vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-tile__lbl { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.cf-tile__time { align-self: end; display: flex; align-items: flex-start; gap: .55rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 560; color: var(--ink); line-height: 1.45; }
.cf-tile__time .i { width: 1.05rem; height: 1.05rem; margin-top: .15rem; color: var(--electric); }
.cf-tile--us { background: var(--electric); box-shadow: 0 34px 60px -30px rgba(0, 85, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .2); }
.cf-tile--us::before { content: ""; position: absolute; width: 22rem; height: 22rem; right: -9rem; top: -11rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.cf-tile--us > * { position: relative; }
.cf-tile--us h3 { color: rgba(255, 255, 255, .85); }
.cf-tile--us .cf-tile__num { color: #fff; }
.cf-tile--us .cf-tile__lbl { color: rgba(255, 255, 255, .9); }
.cf-tile--us .btn { align-self: end; }
.cf-tile--us :focus-visible { outline-color: #fff; }
.cf-fees { margin-top: 1rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.cf-fees summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; padding: .9rem 1.25rem; font-weight: 620; font-stretch: var(--semi-wide); cursor: pointer; border-radius: var(--r-card); }
.cf-fees summary::-webkit-details-marker { display: none; }
.cf-fees summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1D3B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease-out); }
.cf-fees[open] summary::after { transform: rotate(45deg); }
.cf-fees__body { display: grid; gap: .75rem; padding: 0 1.25rem 1.25rem; }
.cf-fees table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cf-fees th, .cf-fees td { padding: .7rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cf-fees thead th { color: var(--ink); font-weight: 640; }
.cf-fees tbody th { color: var(--ink-2); font-weight: 500; }
.cf-fees td, .cf-fees thead th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- Reglas de contenido (banda oscura) ---------- */
.cf-rules { display: grid; gap: 1rem; }
@media (min-width: 760px) { .cf-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-rule { display: grid; gap: .6rem; align-content: start; padding: 1.35rem 1.4rem 1.4rem; border-radius: var(--r-card); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cf-rule__no { display: flex; gap: .7rem; align-items: flex-start; font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -.005em; line-height: 1.2; color: #fff; }
.cf-rule__no::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; margin-top: .05em; border-radius: 50%; background: rgba(255, 122, 110, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A7F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 60% no-repeat; }
.cf-rule__no span { background-image: linear-gradient(#FF7A6E, #FF7A6E); background-repeat: no-repeat; background-position: 0 60%; background-size: 100% 3px; transition: background-size .75s var(--ease-out) .2s; }
.cf-rule > p { color: rgba(255, 255, 255, .74); font-size: var(--fs-small); line-height: 1.5; }
.cf-rule__yes { margin-top: .35rem; padding: .75rem .9rem; border-radius: 12px; background: rgba(143, 182, 255, .1); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .26); color: #fff !important; font-size: var(--fs-small); line-height: 1.45; transition: opacity .6s var(--ease-out) .75s, transform .7s var(--ease-out) .75s; }
.cf-rule__yes span { display: flex; align-items: center; gap: .35rem; margin-bottom: .2rem; font-size: var(--fs-xs); font-weight: 700; color: var(--sky); }
.cf-rule__yes span::before { content: ""; width: .9rem; height: .9rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FB6FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-anim .cf-rule:not(.is-on) .cf-rule__no span { background-size: 0% 3px; }
.cf-anim .cf-rule:not(.is-on) .cf-rule__yes { opacity: 0; transform: translateY(10px); }
.cf-rules__law { margin-top: 1.5rem; max-width: 76ch; }
.cf-must { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 1024px) { .cf-must { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; } }
.cf-must .ticks { gap: .75rem; }

/* ---------- Redes ---------- */
.cf-redes { display: grid; gap: 2rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 1024px) { .cf-redes { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; align-items: center; } }
.cf-chan { display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.cf-chan li { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; background: var(--paper-2); font-size: var(--fs-small); font-weight: 560; color: var(--ink); }
.cf-chan .i { width: 1rem; height: 1rem; color: var(--electric); }

/* ---------- Multas: escala en UMA ---------- */
.cf-fine { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cf-fine { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.cf-fine__intro { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
@media (min-width: 1024px) { .cf-fine__intro, .cf-src__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.cf-scale { display: grid; gap: 1.4rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.cf-scale__axis { position: relative; height: 1.4rem; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; border-bottom: 1px dashed var(--line-strong); }
.cf-scale__axis span { position: absolute; top: 0; white-space: nowrap; }
.cf-scale__axis span:nth-child(1) { left: 0; }
.cf-scale__axis span:nth-child(2) { left: 25%; transform: translateX(-50%); }
.cf-scale__axis span:nth-child(3) { left: 50%; transform: translateX(-50%); }
.cf-scale__axis span:nth-child(4) { left: 75%; transform: translateX(-50%); }
.cf-scale__axis span:nth-child(5) { right: 0; }
@media (max-width: 559px) { .cf-scale__axis span:nth-child(2), .cf-scale__axis span:nth-child(4) { display: none; } }
.cf-scale__rows { display: grid; gap: 1.4rem; }
.cf-scale__rows li { display: grid; gap: .5rem; }
.cf-scale__what { font-size: var(--fs-small); font-weight: 620; color: var(--ink); line-height: 1.35; }
.cf-scale__track { position: relative; display: block; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(11, 29, 59, .1) calc(25% - 1px) 25%), var(--paper-2); }
.cf-scale__bar { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%); border-radius: 4px; background: linear-gradient(90deg, #5B8CFF, var(--electric)); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out); }
.cf-scale__rows li:nth-child(2) .cf-scale__bar { transition-delay: .15s; }
.cf-scale__rows li:nth-child(3) .cf-scale__bar { transition-delay: .3s; }
.cf-anim .cf-scale:not(.is-on) .cf-scale__bar { transform: scaleX(0); }
.cf-scale__amt { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.4; }
.cf-scale__amt b { color: var(--ink); font-weight: 700; }
.cf-scale__more { display: grid; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); line-height: 1.55; }
.cf-scale__more b { color: var(--ink); }

/* ---------- Proceso + qué incluye ---------- */
.cf-incl { display: grid; gap: 1.75rem; margin-top: 1.25rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
@media (min-width: 1024px) { .cf-incl { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; } }
.cf-incl .stack { justify-items: start; display: grid; }
@media (min-width: 640px) { .cf-incl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }

/* ---------- Formulario ---------- */
.page-cofe #formulario .stack > .ticks { margin-top: 1.25rem; }

/* ---------- Fuentes oficiales ---------- */
.cf-src-sec { padding-top: clamp(3rem, 2rem + 4vw, 6rem) !important; }
.cf-src { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.cf-src > * { min-width: 0; }
@media (min-width: 1024px) { .cf-src { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.cf-src__intro { display: grid; gap: 1rem; align-content: start; }
.cf-src__list { display: grid; gap: .5rem; counter-reset: src; }
.cf-src__list li { counter-increment: src; }
.cf-src__list a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease-out), transform .35s var(--ease-out); }
.cf-src__list a::before { content: counter(src); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--electric-050); color: var(--electric-600); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cf-src__list a::after { content: ""; width: 1rem; height: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7690' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease-out); }
.cf-src__list a:hover { box-shadow: 0 0 0 1.5px var(--electric), var(--shadow-2); transform: translateY(-1px); }
.cf-src__list a:hover::after { transform: translate(2px, -2px); }
.cf-src__t { display: grid; gap: .15rem; min-width: 0; }
.cf-src__t b { font-weight: 620; color: var(--ink); line-height: 1.3; }
.cf-src__t span { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }

/* ---------- Riel de secciones (escritorio ancho) ---------- */
.cf-rail { display: none; }
@media (min-width: 1360px) and (pointer: fine) {
  .cf-rail { display: block; position: fixed; z-index: 60; right: 16px; top: 50%; transform: translate(12px, -50%); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s; }
  .cf-rail.is-shown { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }
  .cf-rail ol { list-style: none; margin: 0; padding: .55rem .3rem; display: grid; gap: .1rem; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
  .cf-rail a { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
  .cf-rail a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(11, 29, 59, .28); transition: transform .3s var(--ease-out), background-color .3s; }
  .cf-rail a:hover::before { background: var(--ink); }
  .cf-rail a.is-on::before { background: var(--electric); transform: scale(1.55); }
  .cf-rail a span { position: absolute; right: calc(100% + 10px); top: 50%; padding: .35rem .75rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
  .cf-rail a:hover span, .cf-rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cf-scan { transition: none; }
}

/* =====================================================================
   v3 — bandas oscuras con aurora, galería de DIGIPRiS y precio como clímax
   ===================================================================== */
.page-cofe .stack-panel:not(.hg) { padding-top: clamp(4.25rem, 3rem + 4.5vw, 7.75rem); }
.swipe-hint.cf-swipe { display: none; }

/* ---------- Comparativa sobre la banda oscura ---------- */
.cf-cmp-sec .cmp { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -50px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cf-cmp-sec .cmp__table th, .cf-cmp-sec .cmp__table td { color: rgba(255, 255, 255, .74); border-bottom-color: rgba(255, 255, 255, .1); }
.cf-cmp-sec .cmp__table tbody th, .cf-cmp-sec .cmp__table td b { color: #fff; }
.cf-cmp-sec .cmp__table thead th, .cf-cmp-sec .cmp__corner { background: rgba(255, 255, 255, .05); }
.cf-cmp-sec .cmp__tag { color: rgba(255, 255, 255, .6); }
.cf-cmp-sec .cmp__name { color: var(--sky); }
.cf-cmp-sec .cmp__table thead .cmp__col--permiso { background: linear-gradient(160deg, #2D74FF, var(--electric) 55%, #0039B8); }
.cf-cmp-sec .cmp__col--permiso .cmp__tag { color: rgba(255, 255, 255, .85); }
.cf-cmp-sec .cmp__table tbody td:last-child { background: rgba(0, 85, 255, .1); }
.cf-cmp-sec .cmp__table tbody tr:hover > * { background-color: rgba(143, 182, 255, .07); }
.cf-cmp-sec .cmp__mono { color: #fff !important; }
@media (max-width: 759px) {
  .cf-cmp-sec .cmp__table tbody tr { border-bottom-color: rgba(255, 255, 255, .1); }
  .cf-cmp-sec .cmp__table tbody th { color: var(--sky); }
  .cf-cmp-sec .cmp__table tbody td + td { border-left-color: rgba(255, 255, 255, .1); }
  .cf-cmp-sec .cmp__table thead { background: var(--night); }
}

/* ---------- DIGIPRiS: galería horizontal fijada ---------- */
.page-cofe .cf-dg-sec.hg { padding-block: 0; color: rgba(255, 255, 255, .8); }
.cf-dg-sec .hg__pin { padding-block: clamp(4.5rem, 3.5rem + 4vw, 7rem) clamp(3rem, 2rem + 3vw, 5rem); }
.cf-dg-sec .hg__head { align-items: end; }
.cf-dg-sec .hg__head .t-d2 { max-width: 17ch; font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.8rem); }
.cf-dg__side { display: grid; gap: 1rem; justify-items: start; max-width: 30rem; }
.cf-dg__side > p { font-size: var(--fs-small); line-height: 1.55; color: rgba(255, 255, 255, .74); }
.cf-dg__steps { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: .8rem; font-weight: 650; }
.cf-dg__steps li { padding: .4rem .8rem; border-radius: 999px; color: rgba(255, 255, 255, .62); }
.cf-dg__steps li.is-on { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(143, 182, 255, .9); }
/* ol[class] del reset (0,1,1) anula el padding del kit (.hg__track, 0,1,0): se repone aquí */
.cf-dg-sec .hg__track { align-items: stretch; padding: .5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.25rem; }
.cf-dg-sec .hg__track > .dg-card { width: min(84vw, 440px); }
.dg-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transform-style: preserve-3d; transition: box-shadow .45s var(--ease-out), transform .6s var(--ease-out); }
.dg-card:hover { box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .5), 0 40px 80px -40px rgba(0, 85, 255, .85); }
.dg-card__art { position: relative; flex: none; height: 11rem; display: grid; align-items: center; justify-items: end; padding-right: 2.25rem; overflow: hidden; background: radial-gradient(70% 95% at 72% 100%, rgba(0, 85, 255, .55), rgba(0, 85, 255, 0) 70%), linear-gradient(180deg, rgba(7, 20, 55, .95), rgba(7, 20, 55, 0)); perspective: 420px; }
.dg-card__art::before { content: ""; position: absolute; left: -40%; right: -40%; bottom: -10%; height: 90%; background-image: linear-gradient(rgba(143, 182, 255, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 182, 255, .28) 1px, transparent 1px); background-size: 30px 30px; transform: rotateX(70deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000 5%, transparent 80%); mask-image: linear-gradient(0deg, #000 5%, transparent 80%); }
.dg-card__n { position: absolute; left: 1.3rem; bottom: -.2em; font-family: var(--font-display); font-size: 9.5rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(143, 182, 255, .55); font-variant-numeric: tabular-nums; }
.dg-card__ico { position: relative; z-index: 1; width: 4.4rem; height: 4.4rem; border-radius: 1.35rem; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, rgba(0, 85, 255, .7), rgba(0, 85, 255, .16) 55%, rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 24px 40px -14px rgba(0, 85, 255, 1), 0 0 64px -8px rgba(0, 85, 255, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: rotateX(14deg) rotateZ(-4deg); transition: transform .8s var(--ease-out); -webkit-box-reflect: below 8px linear-gradient(transparent 58%, rgba(255, 255, 255, .16)); }
.dg-card__ico .i { width: 1.95rem; height: 1.95rem; }
.dg-card:hover .dg-card__ico { transform: translateY(-.4rem) rotateX(0deg) rotateZ(0deg) scale(1.06); }
.dg-card__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.6rem 1.7rem; }
.dg-card__step { font-size: var(--fs-xs); font-weight: 650; color: var(--sky); }
.dg-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; word-spacing: .05em; color: #fff; text-wrap: balance; }
.dg-card__body > p:not(.dg-card__step) { font-size: var(--fs-small); line-height: 1.55; color: rgba(255, 255, 255, .74); }
.dg-card--end { justify-content: center; background: radial-gradient(85% 70% at 25% 10%, rgba(0, 85, 255, .6), rgba(0, 85, 255, 0) 70%), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .3); }
.dg-card--end .dg-card__body { flex: none; gap: 1rem; padding: 2.25rem 2rem; }
.dg-card__help { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--electric); color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 85, 255, 1); }
.dg-card--end .btn { align-self: flex-start; margin-top: .35rem; }
@media (min-width: 1024px) {
  .cf-dg-sec.is-pinned .hg__pin { padding-block: calc(var(--header-h) + .75rem) 1.25rem; }
  .cf-dg-sec.is-pinned .hg__head { margin-bottom: 1.75rem; }
  .cf-dg-sec.is-pinned .hg__track { padding-bottom: .75rem; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .cf-dg-sec.is-pinned .hg__head { margin-bottom: 1.1rem; }
  .cf-dg-sec.is-pinned .hg__head .t-d2 { max-width: 24ch; font-size: clamp(2rem, 1rem + 2vw, 2.7rem); }
  .cf-dg-sec.is-pinned .dg-card__art { height: 7.25rem; }
  .cf-dg-sec.is-pinned .dg-card__n { font-size: 6.25rem; }
  .cf-dg-sec.is-pinned .dg-card__ico { width: 3.4rem; height: 3.4rem; border-radius: 1.05rem; -webkit-box-reflect: unset; }
}

/* ---------- Costo: la consultoría gratis es el clímax ---------- */
.cf-tile--us.theme-night { isolation: isolate; background: radial-gradient(90% 70% at 20% 0%, #10286E 0%, rgba(16, 40, 110, 0) 60%), radial-gradient(120% 90% at 50% 0%, #0A1A44 0%, var(--night) 62%), var(--night); box-shadow: 0 60px 110px -50px rgba(0, 38, 160, .9), inset 0 0 0 1px rgba(143, 182, 255, .3); }
.cf-tile--us::before { width: 24rem; height: 24rem; right: -10rem; top: -12rem; background: radial-gradient(closest-side, rgba(0, 85, 255, .6), rgba(0, 85, 255, 0)); }
.cf-tile--us > .fx-aurora, .cf-tile--us > .cf-tile__img { position: absolute; }
.cf-tile__img { z-index: -1; right: -14%; top: -10%; width: 62%; max-width: 260px; height: auto; opacity: .75; -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent); pointer-events: none; }
.cf-tile--us .cf-tile__num { font-size: clamp(3rem, 2.1rem + 3vw, 4.6rem); background: linear-gradient(100deg, #fff 0%, #fff 38%, #9FC0FF 55%, #fff 72%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 36px rgba(0, 85, 255, .6)); }
.cf-tile--us .cf-tile__lbl { color: rgba(255, 255, 255, .8); max-width: 26ch; }
.cf-tile--us h3 { color: var(--sky); }

/* ---------- Reglas y banda cinética ---------- */
.cf-rules-sec { overflow: clip; }
.cf-kinetic { padding-bottom: calc(clamp(1.25rem, .9rem + 1.6vw, 2.5rem) + 2.5rem); margin-bottom: -2.5rem; }
@media (max-width: 759px) { .cf-kinetic { padding-bottom: calc(clamp(1.25rem, .9rem + 1.6vw, 2.5rem) + 1.5rem); margin-bottom: -1.5rem; } }

/* ---------- Multas sobre la banda oscura ---------- */
.cf-fine-sec { overflow: clip; }
.cf-fine-sec .cf-scale { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -50px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cf-fine-sec .cf-scale__axis { color: rgba(255, 255, 255, .55); border-bottom-color: rgba(255, 255, 255, .22); }
.cf-fine-sec .cf-scale__what { color: #fff; }
.cf-fine-sec .cf-scale__track { background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .1) calc(25% - 1px) 25%), rgba(255, 255, 255, .06); }
.cf-fine-sec .cf-scale__bar { background: linear-gradient(90deg, #5B8CFF, #FF7A6E); box-shadow: 0 0 22px -4px rgba(255, 122, 110, .7); }
.cf-fine-sec .cf-scale__amt { color: rgba(255, 255, 255, .72); }
.cf-fine-sec .cf-scale__amt b, .cf-fine-sec .cf-scale__more b { color: #fff; }
.cf-fine-sec .cf-scale__more { color: rgba(255, 255, 255, .74); border-top-color: rgba(255, 255, 255, .12); }

/* ---------- Celular: deslizables para acortar la página ---------- */
@media (max-width: 759px) {
  .swipe-hint.cf-swipe { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
  .swipe-hint.cf-swipe::after { content: ""; width: 2.2rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--electric), rgba(0, 85, 255, 0)); }
  .theme-night .swipe-hint.cf-swipe { color: rgba(255, 255, 255, .6); }
  .theme-night .swipe-hint.cf-swipe::after { background: linear-gradient(90deg, var(--sky), rgba(143, 182, 255, 0)); }
  .dx__results, .cf-cost, ul.cf-rules { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 84%); grid-template-columns: none; gap: .85rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .9rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); }
  .dx__results::-webkit-scrollbar, .cf-cost::-webkit-scrollbar, .cf-rules::-webkit-scrollbar { display: none; }
  .dx__results > *, .cf-cost > *, .cf-rules > * { scroll-snap-align: start; }
  .dx__results { margin-top: 0; }
}
/* Fijada: título y texto lado a lado siempre (la columna de texto no baja y roba altura a las tarjetas) */
@media (min-width: 1024px) {
  .cf-dg-sec.is-pinned .hg__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 2.5rem; }
  .cf-dg-sec.is-pinned .hg__head .t-d2 { max-width: none; }
  body.hg-active .cf-rail { opacity: 0; visibility: hidden; }
}
.cf-tile__img { right: -18%; top: -14%; width: 54%; opacity: .7; }
/* Brillo que sigue al cursor en las tarjetas de pasos (solo ratón) */
.dg-card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 182, 255, .13), rgba(143, 182, 255, 0) 55%); opacity: 0; transition: opacity .45s var(--ease-out); }
.dg-card:hover::after { opacity: 1; }
/* El H1 no resalta una sola palabra con otro color */
.cf-h1__key { color: inherit; }

/* =====================================================================
   Revisión r4 — contraste, números decorativos, tarjetas de DIGIPRiS y celular más corto
   ===================================================================== */
/* «Permiso» sobre la cabecera azul eléctrico: el azul cielo no contrastaba (2.7:1) */
.cf-cmp-sec .cmp__col--permiso .cmp__name { color: #fff; }
.cf-cmp-sec .cmp__col--permiso .cmp__tag { color: rgba(255, 255, 255, .92); }
/* Notas pequeñas sobre papel: --ink-3 queda en 4.2:1, se sube a --ink-2 */
.cf-why__note, .cf-req__permiso, .dx__out .t-xs { color: var(--ink-2); }

/* Índice: sin números 01–12, una marca discreta */
.cf-index__list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; align-self: center; background: var(--electric); opacity: .55; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
.cf-index__list a:hover::before, .cf-index__list a:focus-visible::before { opacity: 1; transform: scale(1.35); }

/* Fuentes: ícono de documento en vez de número */
.cf-src__list a::before { content: ""; background: var(--electric-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230046D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 1rem no-repeat; }

/* Tarjetas de DIGIPRiS: el arte crece y el texto se asienta abajo (antes media tarjeta vacía) */
.dg-card:not(.dg-card--end) .dg-card__art { flex: 1 0 11rem; height: auto; align-items: start; padding-top: 1.75rem; }
.dg-card:not(.dg-card--end) .dg-card__body { flex: none; }
.cf-dg-sec.is-pinned .dg-card__n { font-size: clamp(9rem, 4rem + 9vh, 13rem); }
@media (min-width: 1024px) and (max-height: 760px) {
  .cf-dg-sec.is-pinned .dg-card:not(.dg-card--end) .dg-card__art { flex-basis: 7.25rem; padding-top: 1rem; }
  .cf-dg-sec.is-pinned .dg-card__n { font-size: clamp(6.25rem, 2rem + 11vh, 9rem); }
}

/* La imagen 3D de «Gratis» no pasa por debajo del texto */
.cf-tile--us .cf-tile__img { right: -16%; top: -18%; width: 46%; opacity: .6; }
.cf-tile--us .cf-tile__num, .cf-tile--us .cf-tile__lbl { max-width: 72%; }
@media (max-width: 759px) { .cf-tile--us .cf-tile__num, .cf-tile--us .cf-tile__lbl { max-width: none; } }

/* Celular: pasos del proceso y fuentes oficiales en deslizable (página más corta) */
@media (max-width: 759px) {
  .cf-proc-sec .s-steps, .cf-src__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 78%); grid-template-columns: none; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); }
  .cf-proc-sec .s-steps::-webkit-scrollbar, .cf-src__list::-webkit-scrollbar { display: none; }
  .cf-proc-sec .s-steps > li, .cf-src__list > li { scroll-snap-align: start; }
  .cf-src__list > li > a { height: 100%; align-items: start; }
}
@media (max-width: 759px) { .cf-src > .swipe-hint.cf-swipe { margin: -.75rem 0 -1.25rem; } }
