@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400..700&display=swap');

:root {
  --navy: #0f3a5c;
  --tinta: #17364b;
  --navy-grad: radial-gradient(700px 560px at 0% 0%, #1b5b8c 0%, #0f3a5c 48%, #0a2639 100%);
  --vidrio: linear-gradient(160deg, #ffffffc7 0%, #ffffffa8 100%);
  --vidrio-sombra: 0 10px 32px #17364b12, inset 0 1px 0 #ffffffe6;
  --azul: #0a72b8;
  --azul-osc: #08568a;
  --amarillo: #f3d51b;
  --fondo: #eef4fa;
  --borde: #c9d9e8;
  --suave: #4d6680;
  --rojo: #b4232a;
  --rojo-osc: #8c1b21;
  --verde: #1d6b3f;
  --aviso-fondo: #fdf1d8;
  --aviso: #6b4600;
  --error-fondo: #fbe5e6;
  --error: #8c1b21;
  color-scheme: light;
}
* {box-sizing: border-box;}
html {-webkit-text-size-adjust: 100%;}
body {margin: 0; min-height: 100dvh; background: radial-gradient(820px 560px at 92% -6%, #c9def2 0%, #c9def200 62%), radial-gradient(760px 620px at 18% 108%, #d6e6f6 0%, #d6e6f600 60%), radial-gradient(520px 420px at 55% 45%, #e8f1fa 0%, #e8f1fa00 70%), #edf3f9; background-attachment: fixed; color: var(--tinta); -webkit-font-smoothing: antialiased; font: 400 16px/1.45 'DM Sans', system-ui, sans-serif;}
a {color: var(--azul);}
a:hover {color: var(--azul-osc);}
h1, h2, h3 {line-height: 1.15; text-wrap: balance;}
button, input, textarea, select {font: inherit; color: inherit;}
button {cursor: pointer;}
button:disabled {cursor: not-allowed; opacity: .55;}
:focus-visible {outline: 3px solid var(--amarillo); outline-offset: 2px;}
[hidden] {display: none !important;}
.titular {font-family: Manrope, 'DM Sans', sans-serif; font-weight: 700;}
.cinta {font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amarillo);}

/* Public pages */
.publico {max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;}
.cabecera {background: var(--navy-grad); color: #fff; padding: 28px 22px 26px; display: flex; flex-direction: column; gap: 10px;}
.cabecera h1 {margin: 0; font-size: 30px;}
.cabecera p {margin: 0; font-size: 15px; color: #cfe0f0;}
.cabecera .logo {width: 104px; height: auto; box-sizing: content-box; padding: 10px 14px; margin-bottom: 6px; border-radius: 16px; background: linear-gradient(155deg, #ffffffc2 0%, #ffffff9e 55%, #ffffff8a 100%); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid #ffffffa6; box-shadow: 0 14px 32px #02101b4d, inset 0 1px 0 #ffffffcc;}
@media (min-width: 600px) {.publico {padding: 24px 0;} .cabecera {border-radius: 24px 24px 0 0;} .formulario, .listo {border-radius: 0 0 24px 24px;} .enlaces {padding-top: 22px;}}

.formulario, .listo {background: var(--vidrio); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid #ffffffd9; border-top: 0; box-shadow: var(--vidrio-sombra);}
.formulario {display: flex; flex-direction: column; gap: 18px; padding: 22px;}
.campo {display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700;}
.campo .opcional {font-weight: 400; color: var(--suave);}
.entrada {min-height: 48px; border: 1px solid #cddbe6; border-radius: 10px; padding: 10px 14px; font-weight: 400; background: #ffffffe6; width: 100%;}
.entrada::placeholder {color: #6b7f93;}
.entrada:focus {border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px #0a72b833;}
.ayuda {font-weight: 400; background: #ffffff8c; border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--suave);}
.ayuda b {color: var(--navy);}
.marcas {border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px;}
.marcas legend {font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 8px;}
.marcas .opciones {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
.opcion {display: flex; align-items: center; gap: 10px; min-height: 52px; border: 1px solid #cddbe6; background: #ffffffb3; border-radius: 12px; padding: 0 14px; font-weight: 700; cursor: pointer;}
.opcion:has(input:checked) {border: 2px solid var(--azul); background: #e3edf7;}
.opcion.kong:has(input:checked) {border-color: var(--rojo); background: #f6e2e3;}
.opcion input, .acepto input {width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--azul);}
.nota {font-size: 12px; color: var(--suave); font-weight: 400;}
.privado {border-top: 1px solid var(--borde); padding-top: 16px; display: flex; flex-direction: column; gap: 14px;}
.privado .rotulo {font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--suave);}
.acepto {display: flex; align-items: flex-start; gap: 10px; font-size: 14px;}
.trampa {position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;}
.boton {min-height: 52px; border: 0; border-radius: 12px; box-shadow: 0 10px 24px #0a72b940; background: var(--azul); color: #fff; font-size: 16px; font-weight: 700; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 8px;}
.boton:hover:not(:disabled) {background: var(--azul-osc); color: #fff;}
.mensaje {border-radius: 12px; padding: 12px 14px; font-size: 14px;}
.mensaje.error {background: var(--error-fondo); color: var(--error);}
.pie {margin: 0; font-size: 13px; color: var(--suave); text-align: center;}
.enlaces {display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 700; padding: 0 22px 26px;}
.listo {padding: 40px 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;}
.listo h2 {margin: 0; font-size: 26px;}
.listo p {margin: 0;}

/* Brand map pages */
.pagina-mapa {height: 100dvh; display: flex; flex-direction: column; max-width: none;}
.pagina-mapa .cabecera {padding: 18px 20px; border-radius: 0;}
.pagina-mapa .cabecera h1 {font-size: 26px;}
.kong .cabecera {background: radial-gradient(700px 560px at 0% 0%, #c43a40 0%, #8c1b21 48%, #5a1014 100%);}
.kong .cabecera .cinta {color: #ffd9d9;}
.kong .cabecera p {color: #ffe3e3;}
.marco {flex: 1; min-height: 360px; position: relative; background: #dfe9f3;}
.kong .marco {background: #f6e2e3;}
.marco iframe {position: absolute; inset: 0; width: 100%; height: 100%; border: 0;}
.sin-mapa {position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--suave);}
.sin-mapa b {color: var(--navy); font-size: 18px;}
.barra {display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 12px 14px; background: #ffffffd9; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid #17364b12;}
.barra .boton {min-height: 46px; font-size: 15px;}
.kong .boton {background: var(--rojo); box-shadow: 0 10px 24px #b4232a40;}
.kong .boton:hover:not(:disabled) {background: var(--rojo-osc);}
.kong a:not(.boton) {color: var(--rojo);}

/* Admin */
.admin-cab {position: sticky; top: 0; z-index: 5; background: var(--navy-grad); color: #fff; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;}
.admin-cab .marca {display: flex; align-items: baseline; gap: 12px;}
.admin-cab b {font-family: Manrope, 'DM Sans', sans-serif; font-size: 22px;}
.admin-cab span {color: #cfe0f0; font-size: 14px;}
.boton-claro {min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #ffffff66; background: transparent; color: #fff; font-weight: 700;}
.login {max-width: 380px; margin: 12vh auto 0; padding: 0 16px;}
.tarjeta {background: var(--vidrio); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid #ffffffd9; box-shadow: var(--vidrio-sombra); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;}
body.ingreso {background: var(--navy-grad); background-attachment: fixed;}
body.ingreso .admin-cab {background: transparent; position: static;}
.login .tarjeta {gap: 16px; padding: 36px 32px 30px; border-radius: 24px; background: linear-gradient(155deg, #ffffffc2 0%, #ffffff9e 55%, #ffffff8a 100%); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid #ffffffa6; box-shadow: 0 30px 80px #02101b66, inset 0 1px 0 #ffffffcc;}
.login .logo {display: block; width: 104px; height: auto; margin: 0 auto 4px;}
.login h1 {text-align: center;}
.login h1 {margin: 0; font-size: 24px;}
.cuerpo {max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;}
.columna {flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px;}
.lateral {flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px;}
@media (max-width: 640px) {.cuerpo {padding: 16px;} .admin-cab {padding: 12px 16px;}}
.pestanas {display: flex; flex-wrap: wrap; gap: 8px;}
.pestana {min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #ffffffd9; background: #ffffffb3; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700;}
.pestana[aria-selected="true"] {background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 8px 20px #0a72b933;}
.buscar {flex: 1 1 200px; min-height: 42px;}
.local-cab {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start;}
.local-cab h2 {margin: 0; font-size: 20px; overflow-wrap: anywhere;}
.cuando {font-size: 13px; color: var(--suave);}
.chips {display: flex; gap: 6px;}
.chip {padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e3edf7; color: var(--azul-osc);}
.chip.kong {background: #f6e2e3; color: var(--rojo-osc);}
.datos {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; font-size: 14px; margin: 0;}
.datos dt {color: var(--suave); font-size: 12px;}
.datos dd {margin: 0; overflow-wrap: anywhere;}
.alerta {display: flex; gap: 10px; align-items: flex-start; background: var(--aviso-fondo); color: var(--aviso); border-radius: 10px; padding: 10px 12px; font-size: 14px;}
.alerta svg {flex-shrink: 0; margin-top: 2px;}
.acciones {display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e3edf7; padding-top: 12px;}
.accion {min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #cddbe6; background: #ffffffcc; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; color: var(--navy);}
.accion.aprobar {background: var(--verde); border-color: var(--verde); color: #fff;}
.accion.rechazar {border-color: #e3b3b6; color: var(--rojo-osc);}
.accion.wa {border-color: #9fd5b5; color: var(--verde);}
.editar {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;}
.editar .ancho {grid-column: 1 / -1;}
.editar .campo .entrada {min-height: 44px;}
.vacio {text-align: center; color: var(--suave); padding: 40px 20px;}
.lateral h2 {margin: 0; font-size: 18px;}
.lateral p, .lateral ol {margin: 0; font-size: 14px; color: var(--suave);}
.lateral ol {padding-left: 20px; color: var(--navy); line-height: 1.6;}
.bajar {min-height: 48px; border-radius: 12px; border: 0; background: var(--azul); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 6px 12px; text-align: center;}
.bajar:hover {color: #fff; background: var(--azul-osc);}
.bajar.kong {background: var(--rojo);}
.bajar.kong:hover {background: var(--rojo-osc);}
.cambios {display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--amarillo); color: var(--navy); border-radius: 999px; padding: 2px 8px;}
.pequeno {font-size: 12px; color: var(--suave);}
.aviso-flotante {-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #0f3a5ceb; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 6px 24px #0f2a4340; max-width: calc(100% - 32px); z-index: 10;}
.aviso-flotante.error {background: var(--error);}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tarjeta, .formulario, .listo, .login .tarjeta {background: #fffffff5;}
}
