/* Escenas de Registro de Dominios (2026-09-24).
   Las piezas comunes (.esc, .ui, la posada, los iconos) están en
   paginas-servicio.css; este archivo lo encola mdd-ajustes.php solo en
   las páginas que lo usan (MDD_ESCENAS_PAGINA). */

/* Nacionales: la búsqueda del nombre, con lo que está libre */
.dn-busca { inset: 12px 14px; padding: 8px 10px; display: grid; gap: 5px; align-content: start; }
.dn-campo { display: flex; align-items: center; height: 18px; border: 1.5px solid var(--c); border-radius: 5px; overflow: hidden; font-size: 8px; font-weight: 700; white-space: nowrap; }
.dn-campo span { padding: 0 7px; flex: 1; }
.dn-campo span i { display: inline-block; width: 1px; height: 9px; background: var(--c); vertical-align: -1px; margin-left: 1px; animation: dn-caret 1s steps(1) infinite; }
@keyframes dn-caret { 50% { opacity: 0; } }
.dn-campo b { height: 100%; display: grid; place-items: center; padding: 0 8px; background: var(--c); color: #fff; font-size: 7px; font-weight: 800; }
.dn-res { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 7.5px; white-space: nowrap; animation: dn-res 6s infinite both; animation-delay: var(--d); }
.dn-res b { font-weight: 800; }
.dn-res small { font-size: 6.5px; font-weight: 700; color: #0B8A63; display: flex; align-items: center; gap: 3px; }
.dn-res small.es-otro { color: #94a3b8; }
.dn-res em { font-style: normal; font-size: 6.5px; font-weight: 800; color: #fff; background: #1E293B; border-radius: 3px; padding: 2px 6px; }
.dn-res em.es-vacio { visibility: hidden; }
.dn-res.is-sel { background: color-mix(in srgb, var(--c) 10%, #fff); }
.dn-res.is-sel em { background: var(--c); }
@keyframes dn-res { 0%, 8% { opacity: 0; transform: translateY(-3px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Internacionales: tres direcciones que llevan al mismo sitio */
.di-urls { position: absolute; left: 12px; top: 20px; bottom: 20px; width: 48%; display: grid; align-content: space-between; }
.di-urls .ui { position: relative; display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; font-size: 7px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.di-urls .ui b { font-weight: 800; color: var(--c); }
.di-urls .ui svg { width: 7px; height: 7px; flex: none; }
.di-flechas { position: absolute; left: calc(12px + 48%); width: 14%; top: 20px; bottom: 20px; }
.di-flechas svg { width: 100%; height: 100%; overflow: visible; }
.di-flechas path { fill: none; stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; animation: di-flujo 1s linear infinite; }
@keyframes di-flujo { to { stroke-dashoffset: -12; } }
.di-sitio { right: 12px; top: 24px; bottom: 24px; width: 30%; padding: 4px; display: grid; gap: 3px; align-content: start; font-size: 5px; }
.di-sitio .ps-foto { height: 44px; border-radius: 3px; }
.di-sitio i { display: block; height: 3px; border-radius: 1px; background: #EEF2F6; }
.di-sitio i + i { width: 70%; }
.di-rot { position: absolute; right: 12px; width: 30%; bottom: 8px; text-align: center; font-size: 6.5px; font-weight: 800; color: #64748b; white-space: nowrap; }

/* Al mejor precio: una sola factura con todo junto */
.dp-fact { left: 50%; top: 10px; bottom: 10px; width: 70%; transform: translateX(-50%); padding: 8px 11px; display: grid; gap: 4px; align-content: start; }
.dp-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 8px; font-weight: 800; white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid #EEF2F6; }
.dp-cab small { font-size: 6.5px; font-weight: 700; color: #64748b; }
.dp-f { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; font-size: 7px; font-weight: 600; white-space: nowrap; }
.dp-f i { height: 4px; border-radius: 2px; background: #E2E8EE; }
.dp-f.is-dom { font-weight: 800; color: #1E293B; }
.dp-f.is-dom i { background: var(--c); }
.dp-tot { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; font-size: 8px; font-weight: 800; padding-top: 4px; border-top: 1px solid #EEF2F6; }
.dp-tot i { height: 6px; border-radius: 3px; background: #1E293B; }
.dp-sello { position: absolute; right: -10px; bottom: 12px; transform: rotate(-9deg); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B45309; border: 1.5px solid #D97706; border-radius: 4px; padding: 2px 6px; background: color-mix(in srgb, var(--c) 30%, #fff); white-space: nowrap; animation: dp-sello 5s ease-out infinite; }
@keyframes dp-sello { 0%, 30% { opacity: 0; transform: rotate(-9deg) scale(1.6); } 38%, 92% { opacity: 1; transform: rotate(-9deg); } 100% { opacity: 0; transform: rotate(-9deg); } }

/* Renovación: el vencimiento pasa al año siguiente */
.dr-card { inset: 12px 14px; padding: 9px 11px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-content: start; }
.dr-dom { grid-column: 1 / -1; font-size: 9px; font-weight: 800; white-space: nowrap; }
.dr-estado { position: relative; height: 30px; }
.dr-estado > span { position: absolute; inset: 0; display: grid; align-content: center; gap: 1px; font-size: 7px; font-weight: 700; color: #64748b; white-space: nowrap; }
.dr-estado b { font-size: 9px; font-weight: 800; color: #1E293B; }
.dr-antes b { color: #B45309; }
.dr-antes { animation: dr-antes 6s infinite; }
.dr-despues { animation: dr-despues 6s infinite; }
.dr-despues b { color: #0B8A63; display: flex; align-items: center; gap: 3px; }
@keyframes dr-antes { 0%, 40% { opacity: 1; } 48%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dr-despues { 0%, 40% { opacity: 0; transform: translateY(4px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.dr-cal { grid-row: 2 / 4; grid-column: 2; width: 62px; border: 1px solid #E2E8EE; border-radius: 4px; overflow: hidden; font-size: 5.5px; text-align: center; }
.dr-cal b { display: block; background: var(--c); color: #fff; font-size: 6.5px; font-weight: 800; padding: 2px 0; }
.dr-cal div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; padding: 3px; color: #94a3b8; font-weight: 700; }
.dr-cal .is-dia { background: var(--c); color: #fff; border-radius: 50%; }
.dr-nota { grid-column: 1; display: flex; align-items: center; gap: 4px; font-size: 6.5px; font-weight: 700; color: #475569; background: #F8FAFC; border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.dr-nota svg { width: 9px; height: 9px; flex: none; }

/* A nombre de tu empresa: los datos del dominio, con el titular */
.dw-ficha { inset: 12px 14px; padding: 8px 11px; display: grid; gap: 0; align-content: start; }
.dw-cab { font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.dw-f { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px; align-items: center; height: 17px; padding: 0 5px; font-size: 7.5px; border-bottom: 1px solid #EEF2F6; white-space: nowrap; }
.dw-f span { color: #64748b; font-weight: 700; }
.dw-f b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.dw-f.is-tit { border-radius: 4px; border-bottom-color: transparent; animation: dw-tit 5s ease-in-out infinite; }
@keyframes dw-tit { 0%, 20% { background: transparent; } 32%, 90% { background: color-mix(in srgb, var(--c) 12%, #fff); } 100% { background: transparent; } }
.dw-f .ok-v { animation: dw-ok 5s ease-out infinite; }
@keyframes dw-ok { 0%, 26% { transform: scale(0); } 34%, 90% { transform: none; } 100% { transform: scale(0); } }
.dw-activo { color: #0B8A63 !important; }

/* Asesoramiento para elegir: el nombre corto gana */
.da-op { top: 16px; width: 44%; padding: 8px 9px; display: grid; gap: 5px; align-content: start; }
.da-op.es-larga { left: 12px; opacity: .72; }
.da-op.es-corta { right: 12px; outline: 1.5px solid var(--c); }
.da-op b { font-size: 7.5px; font-weight: 800; line-height: 1.25; word-break: break-all; }
.da-op.es-corta b { font-size: 9px; }
.da-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.da-chips span { font-size: 6px; font-weight: 800; border-radius: 99px; padding: 1px 5px; background: #F2F5F7; color: #64748b; white-space: nowrap; }
.da-op.es-corta .da-chips span { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.da-op.es-corta .da-chips span { animation: da-chip 6s infinite both; animation-delay: var(--d); }
@keyframes da-chip { 0%, 10% { opacity: 0; transform: scale(.7); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.da-elegida { position: absolute; top: -8px; right: 8px; display: flex; align-items: center; gap: 3px; font-size: 6.5px; font-weight: 800; background: #fff; border-radius: 99px; padding: 2px 7px 2px 3px; box-shadow: 0 4px 10px -3px rgba(15,23,42,.35); white-space: nowrap; }
.da-vs { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #1E293B; color: #fff; font-size: 6.5px; font-weight: 800; }
