/* ==========================================================================
   DTI PROS · Pie de página, modales y tira de servicios
   Pie (marca, servicios, mi cuenta, información), modal de textos legales,
   modal con iframe (mi cuenta / tienda), modal de acceso y registro, y la
   tira de servicios de confianza (.service) que usan varias páginas.
   ========================================================================== */

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 85% 0%, rgba(31, 91, 255, .16) 0%, transparent 60%), linear-gradient(180deg, #050A17 0%, #02040A 100%); color: var(--white); border-top: 1px solid var(--line-2); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue) 25%, var(--blue-3) 50%, var(--gold) 75%, transparent); box-shadow: 0 0 20px var(--glow); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer p { margin: 0; color: var(--muted); line-height: 1.55; }
.footer a { color: var(--white); transition: color .2s; }
.footer a:hover { color: var(--blue-3); }

.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.footer__brand img { display: block; width: 230px; height: auto; }
.footer__claim { margin: 18px 0 0 !important; max-width: 340px; font-size: 15px; }
.footer__contact { display: grid; gap: 12px; margin-top: 24px !important; }
.footer__contact li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.footer__contact svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__contact span { color: var(--white); }

.footer h2 { position: relative; margin: 0 0 18px; padding-bottom: 10px; font: 700 16px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--blue); box-shadow: 0 0 10px var(--glow); }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: var(--muted); font-size: 15px; }
.footer__col a:hover { color: var(--white); }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; max-width: var(--wrap); margin-inline: auto; padding: 18px clamp(16px, 4vw, 40px) 22px; border-top: 1px solid var(--line-2); }
.footer__bottom p { font-size: 13px; color: var(--muted-2); }
.footer__powered { display: inline-block; margin-left: 6px; color: var(--muted-2); opacity: .7; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--muted-2); font-size: 13px; }

@media (max-width: 960px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__powered { display: block; margin: 4px 0 0; }
}

/* ==========================================================================
   MODALES (base común)
   ========================================================================== */
body.modal-open { overflow: hidden; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modalBackdrop { from { opacity: 0; } to { opacity: 1; } }
dialog.legal-modal::backdrop, dialog.iframe-modal::backdrop, dialog.auth-modal::backdrop { background: rgba(2, 4, 10, .8); backdrop-filter: blur(6px); animation: modalBackdrop .25s ease-out; }

/* Modal de textos legales */
dialog.legal-modal { width: min(680px, 92vw); max-width: 680px; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); color: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: modalIn .3s cubic-bezier(.16, 1, .3, 1); }
.legal-modal__content { display: flex; flex-direction: column; max-height: 85vh; }
.legal-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.legal-modal__title { margin: 0; font: 400 24px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.legal-modal__close, .iframe-modal__close, .auth-modal__close { padding: 0 4px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; transition: color .2s, transform .2s; }
.legal-modal__close:hover, .iframe-modal__close:hover, .auth-modal__close:hover { color: var(--blue-3); transform: scale(1.12); }
.legal-modal__body { padding: 26px 24px; overflow-y: auto; font-size: 15px; line-height: 1.65; color: var(--muted); }
.legal-modal__body h4 { margin: 22px 0 8px; font: 700 17px/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.legal-modal__body h4:first-child { margin-top: 0; }
.legal-modal__body p, .legal-modal__body ul { margin: 0 0 12px; }
.legal-modal__body ul, .legal-modal__body ol { padding-left: 20px; }
.legal-modal__body ol { margin: 0 0 12px; }
.legal-modal__body h5 { margin: 16px 0 6px; font: 700 15px/1.3 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-3); }
.legal-modal__table { overflow-x: auto; margin: 0 0 12px; }
.legal-modal__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal-modal__table th, .legal-modal__table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-modal__table th { color: var(--white); font: 700 13px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.legal-modal__body strong { color: var(--white); }
.legal-modal__body a { color: var(--blue-3); }
.legal-modal__placeholder { padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 6px; background: rgba(31, 91, 255, .08); color: var(--white); }
.legal-modal__placeholder p { margin: 0; }
.legal-modal__footer { display: flex; justify-content: flex-end; padding: 14px 24px; background: var(--bg-3); border-top: 1px solid var(--line-2); }
.legal-modal__btn { display: inline-flex; align-items: center; padding: 10px 24px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: 700 14px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s; }
.legal-modal__btn:hover { background: var(--blue-2); transform: translateY(-1px); }

/* Modal con iframe (mi cuenta / tienda) */
dialog.iframe-modal { width: min(1040px, 95vw); height: min(85vh, 820px); max-width: 1040px; max-height: 85vh; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); color: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: modalIn .3s cubic-bezier(.16, 1, .3, 1); }
.iframe-modal__content { display: flex; flex-direction: column; width: 100%; height: 100%; }
.iframe-modal__header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.iframe-modal__headline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.iframe-modal__title { margin: 0; font: 400 22px/1.1 var(--display); text-transform: uppercase; color: var(--white); }
.iframe-modal__external { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.iframe-modal__external svg { width: 14px; height: 14px; }
.iframe-modal__external:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.iframe-modal__body { position: relative; flex: 1 1 auto; width: 100%; overflow: hidden; background: #fff; }
.iframe-modal__frame { display: block; width: 100%; height: 100%; border: 0; }
.iframe-modal__loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg-2); color: var(--muted); font-size: 14px; }
.iframe-modal__loader.is-hidden { display: none; }
.iframe-modal__spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--blue-2); border-radius: 50%; animation: iframeSpin .7s linear infinite; }
@keyframes iframeSpin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .iframe-modal__external span { display: none; } }

/* Modal de acceso y registro */
dialog.auth-modal { width: 92%; max-width: 440px; margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 16px; background: transparent; animation: modalIn .3s cubic-bezier(.16, 1, .3, 1); }
.auth-modal__content { padding: 28px 28px 32px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(90% 60% at 50% 0%, rgba(31, 91, 255, .16), transparent 70%), var(--bg-2); color: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.auth-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-modal__brand img { display: block; width: 170px; height: auto; }
.auth-modal__tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.auth-modal__tab { flex: 1; margin-bottom: -1px; padding: 12px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted-2); font: 700 15px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.auth-modal__tab:hover { color: var(--white); }
.auth-modal__tab.is-active { color: var(--blue-3); border-bottom-color: var(--blue); }
.auth-modal__field { margin-bottom: 16px; }
.auth-modal__field label { display: block; margin-bottom: 6px; font: 700 13px/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auth-modal__field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.auth-modal__field-head label { margin-bottom: 0; }
.auth-modal__link { color: var(--blue-3); font-size: 12px; }
.auth-modal__link:hover { text-decoration: underline; }
.auth-modal__field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--white); font: 15px var(--body); outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-modal__field input::placeholder { color: var(--muted-2); }
.auth-modal__field input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(31, 91, 255, .25); }
.auth-modal__remember { margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.auth-modal__remember input { margin-right: 8px; accent-color: var(--blue); }
.auth-modal__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font: 700 16px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 26px -10px var(--glow); transition: filter .2s, transform .15s; }
.auth-modal__submit:hover { filter: brightness(1.1); }
.auth-modal__submit:active { transform: scale(.99); }
.auth-modal__notice { margin-bottom: 18px; padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.auth-modal__notice.is-error { background: rgba(255, 80, 80, .12); border: 1px solid rgba(255, 110, 110, .5); color: #ffb0b0; }
.auth-modal__notice.is-success { background: rgba(62, 208, 127, .12); border: 1px solid rgba(62, 208, 127, .5); color: #9DF0C2; }
.auth-modal__spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: authSpin .7s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ==========================================================================
   TIRA DE SERVICIOS DE CONFIANZA (.service)
   Banda azul con brillo, como la barra inferior de los diseños DTI PROS
   ========================================================================== */
.service { position: relative; z-index: 2; overflow: hidden; background: linear-gradient(100deg, #0A1E66 0%, #1340D8 45%, var(--blue) 70%, #0A1E66 100%); color: #fff; border-top: 1px solid rgba(143, 176, 255, .5); border-bottom: 1px solid rgba(143, 176, 255, .3); }
.service::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 140% at 15% 50%, rgba(255, 255, 255, .14), transparent 70%); pointer-events: none; }
.service .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto repeat(4, minmax(0, 1fr)); align-items: center; padding-block: 18px; }
.service .cell { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 16px; border-left: 1px solid rgba(255, 255, 255, .3); color: #fff; font: 700 15px/1.15 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.service .cell:first-child { border: 0; padding-left: 0; white-space: nowrap; font: 400 clamp(20px, 2vw, 26px)/1 var(--display); letter-spacing: .02em; }
.service a.cell { transition: opacity .2s; }
.service a.cell:hover { color: #fff; opacity: .8; }
.service .cell svg { flex: none; width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service .cell:first-child svg { width: 56px; height: 38px; }
.service .pill { display: inline-flex; align-items: center; justify-content: center; margin-inline: 12px 16px; padding: 10px 18px; border-radius: 10px; background: rgba(2, 4, 10, .75); border: 1px solid rgba(143, 176, 255, .35); }
.service .pill img { display: block; width: 140px; height: auto; }
@media (max-width: 1240px) {
  .service .wrap { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .service .cell:first-child { grid-column: 1 / -1; }
  .service .pill { display: none; }
  .service .cell:nth-child(3), .service .cell:nth-child(5) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .service .wrap { grid-template-columns: 1fr; }
  .service .cell { border-left: 0; padding: 4px 0; }
  .service .cell svg { width: 30px; height: 30px; }
}
