:root{
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #111827;
  --muted: rgba(17,24,39,.65);
  --border: rgba(17,24,39,.10);
  --shadow: 0 14px 34px rgba(0,0,0,.08);

  --primary: #111827;
  --primary2: #0b5b73;

  --blue: #0b5b73;
  --yellow: #f59e0b;

  /* ✅ MISMO DEGRADADO PARA TODOS (similar a tu imagen) */
  --g1: #86d9ff;  /* celeste */
  --g2: #10b6c5;  /* turquesa */
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.k-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Header */
.k-header{
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f3f6 100%);
  border-bottom: 1px solid var(--border);
}

.k-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 280px;
  flex-wrap: wrap;
}

/* ✅ Logo tipo banner */
.k-logoBanner{
  width: clamp(200px, 26vw, 320px);
  height: 62px;
  border-radius: 14px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.k-logoBannerImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px 12px;
}

.k-logoFallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color: var(--primary2);
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}

.k-brandText{
  display:flex;
  flex-direction:column;
  min-width: 220px;
}

.k-title{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .2px;
}

.k-subtitle{
  margin-top:2px;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}

.k-clockWrap{
  text-align:right;
  min-width: 170px;
}

.k-clockLabel{
  font-size:12px;
  font-weight:900;
  color: var(--muted);
  letter-spacing:.6px;
  text-transform:uppercase;
}

.k-clock{
  margin-top:2px;
  font-weight: 900;
  font-size: 18px;
}

/* Container + Grid */
.k-container{
  width:100%;
  padding: 8mm;   /* 👈 margen real en todos los lados */
  margin: 0;
  flex:1;
}

.k-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* =========================================================
   KIOSCO
   ========================================================= */

/* Responsive */


/* =========================================
   BOTÓN EXACTO ESTILO IMAGEN
========================================= */

.k-areaGrid{
  gap: 18px;
}

.k-areaBtnNew{
  display: block;
  width: 100%;
  height: 124px;
  text-decoration: none;
  background: #18a8dc;
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.k-areaContent{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 6px solid #ffffff;
  background: #18a8dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding-left: 30px;
  padding-right: 8px;
  gap: 10px;
}

.k-areaText{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .2px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  max-height: 2.1em;
  padding-right: 6px;
}

.k-areaCircle{
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #ffffff;
  color: #18a8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.k-areaBtnNew:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.k-areaBtnNew:active{
  transform: scale(.995);
}

@media (max-width: 1500px){
  .k-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .k-areaBtnNew{
    height: 118px;
  }

  .k-areaText{
    font-size: 28px;
  }

  .k-areaCircle{
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
}

@media (max-width: 1200px){
  .k-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .k-areaBtnNew{
    height: 112px;
  }

  .k-areaText{
    font-size: 28px;
  }

  .k-areaCircle{
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    font-size: 26px;
  }
}

@media (max-width: 900px){
  .k-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-areaBtnNew{
    height: 104px;
  }

  .k-areaText{
    font-size: 24px;
  }

  .k-areaCircle{
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    font-size: 22px;
  }
}

@media (max-width: 580px){
  .k-grid{
    grid-template-columns: 1fr;
  }

  .k-areaBtnNew{
    height: 96px;
  }

  .k-areaContent{
    padding-left: 18px;
    padding-right: 6px;
    border-width: 5px;
  }

  .k-areaText{
    font-size: 20px;
  }

  .k-areaCircle{
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}

/* =========================================
   PANTALLA SELECCIÓN DE TIPO DE TURNO
========================================= */

.k-selectCard{
  width: min(900px, 100%);
  margin: 18px auto 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  padding: 26px;
}

.k-selectTop{
  text-align: center;
  margin-bottom: 22px;
}

.k-selectTitle{
  font-size: 34px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
}

.k-selectSub{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.k-selectBtns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.kForm{
  margin: 0;
}

.k-btn{
  width: 100%;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.k-btnBig{
  min-height: 96px;
  padding: 18px 22px;
  font-size: 28px;
}

.k-btnSplit{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.k-btnBlue{
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(17,24,39,.22);
}

.k-btnYellow{
  background: #f5b400;
  color: #111827;
  box-shadow: 0 10px 24px rgba(245,180,0,.24);
}

.k-btn:hover{
  transform: translateY(-2px);
}

.k-btnBlue:hover{
  filter: brightness(1.05);
}

.k-btnYellow:hover{
  filter: brightness(1.03);
}

.k-btn:active{
  transform: scale(.995);
}

.k-btnIcon{
  font-size: 30px;
  line-height: 1;
  flex: 0 0 auto;
}

.k-btnDisabled{
  opacity: .75;
  cursor: not-allowed;
}

.k-backLink{
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  color: var(--primary2);
  font-weight: 900;
  font-size: 18px;
}

@media (max-width: 900px){
  .k-selectBtns{
    grid-template-columns: 1fr;
  }

  .k-selectTitle{
    font-size: 28px;
  }

  .k-selectSub{
    font-size: 16px;
  }

  .k-btnBig{
    min-height: 86px;
    font-size: 24px;
  }

  .k-btnIcon{
    font-size: 26px;
  }
}

@media (max-width: 580px){
  .k-selectCard{
    padding: 18px;
    border-radius: 18px;
  }

  .k-selectTitle{
    font-size: 24px;
  }

  .k-selectSub{
    font-size: 15px;
  }

  .k-btnBig{
    min-height: 78px;
    font-size: 20px;
    padding: 14px 16px;
  }

  .k-btnIcon{
    font-size: 22px;
  }

  .k-backLink{
    font-size: 16px;
  }
}

/* =========================================================
   GRID DINÁMICO KIOSCO
   ========================================================= */

.k-areaGrid.k-areaCount-1{
  grid-template-columns: 1fr !important;
}

.k-areaGrid.k-areaCount-2{
  grid-template-columns: repeat(2, 1fr) !important;
}

.k-areaGrid.k-areaCount-3{
  grid-template-columns: repeat(3, 1fr) !important;
}

/* 4 o más */
.k-areaGrid.k-areaCount-4,
.k-areaGrid.k-areaCount-5,
.k-areaGrid.k-areaCount-6,
.k-areaGrid.k-areaCount-7,
.k-areaGrid.k-areaCount-8,
.k-areaGrid.k-areaCount-9,
.k-areaGrid.k-areaCount-10,
.k-areaGrid.k-areaCount-11,
.k-areaGrid.k-areaCount-12{
  grid-template-columns: repeat(4, 1fr) !important;
}

/* =========================================================
   NUEVO FLUJO PACIENTE
   ========================================================= */

.k-step{
  display:none;
  opacity:0;
  transform: translateY(12px);
  transition:
    opacity .28s ease,
    transform .28s ease;
}

.k-stepActive{
  display:block;
  opacity:1;
  transform: translateY(0);
}

.k-welcomeCard,
.k-formCard{
  width:min(860px, 100%);
  margin: 10px auto 22px;
  background:#ffffff;
  border-radius:32px;
  padding:34px;
  border:1px solid rgba(17,24,39,.08);
  box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

.k-welcomeCard{
  text-align:center;
}

.k-welcomeLogoPulse{
  width: min(760px, 98%);
  height: 260px;

  margin: 0 auto 20px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: transparent;

  border: none;

  box-shadow: none;

  overflow: visible;
}

.k-welcomeLogoPulse img{
  width:auto;

  max-width:92%;
  max-height:92%;

  object-fit:contain;

  filter:
    drop-shadow(0 8px 18px rgba(0,0,0,.08));
}

@keyframes logoPulse{
  0%, 100%{
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(24,168,220,.10));
  }

  50%{
    transform: scale(1.035);
    filter: drop-shadow(0 12px 28px rgba(24,168,220,.28));
  }
}

.k-welcomeCard h1,
.k-formCard h2{
  margin:0;
  font-size:40px;
  font-weight:900;
  color:#111827;
}

.k-welcomeCard p,
.k-formCard p{
  margin-top:10px;
  color:rgba(17,24,39,.65);
  font-size:18px;
  font-weight:700;
}

.k-choiceGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:30px;
}

.k-choiceBtn{
  border:none;
  border-radius:28px;
  min-height:160px;
  cursor:pointer;
  background:#18a8dc;
  color:#ffffff;
  padding:24px;
  font-size:32px;
  font-weight:900;
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    filter .14s ease;
  box-shadow: 0 16px 34px rgba(24,168,220,.24);

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.k-choiceBtn small{
  font-size:15px;
  font-weight:700;
  opacity:.92;
}

.k-choiceBtn:hover{
  transform:translateY(-3px);
  filter:brightness(1.03);
}

.k-choiceBtn:active{
  transform:scale(.99);
}

.k-fieldLabel{
  display:block;
  margin-top:22px;
  margin-bottom:10px;
  font-size:17px;
  font-weight:900;
  color:#111827;
}

.k-input{
  width:100%;
  height:78px;
  border:none;
  border-radius:22px;
  background:#f3f6fa;
  padding:0 24px;
  font-size:28px;
  font-weight:800;
  color:#111827;
  outline:none;
  box-shadow: inset 0 0 0 2px transparent;
  transition: .15s ease;
}

.k-input:focus,
.k-input:hover{
  background:#eef4f9;
  box-shadow: inset 0 0 0 2px #18a8dc;
}

.k-input::placeholder{
  color:rgba(17,24,39,.40);
}

.k-formActions{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  margin-top:30px;
}

.k-primaryBtn,
.k-secondaryBtn{
  min-width:180px;
  height:64px;
  border:none;
  border-radius:18px;
  cursor:pointer;
  font-size:22px;
  font-weight:900;
  transition:
    transform .12s ease,
    filter .12s ease;
}

.k-primaryBtn{
  background:#18a8dc;
  color:#ffffff;
}

.k-secondaryBtn{
  background:#edf2f7;
  color:#111827;
}

.k-primaryBtn:hover,
.k-secondaryBtn:hover{
  transform:translateY(-1px);
}

.k-primaryBtn:active,
.k-secondaryBtn:active{
  transform:scale(.99);
}

/* =========================================================
   PACIENTE SELECCIONADO
   ========================================================= */

.k-selectedPatient{
  width:100%;
  margin-bottom:20px;
  background:#ffffff;
  border-radius:22px;
  padding:18px 22px;
  border:1px solid rgba(17,24,39,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

.k-selectedPatient strong{
  display:block;
  font-size:24px;
  font-weight:900;
  color:#111827;
}

.k-selectedPatient span{
  display:block;
  margin-top:4px;
  font-size:16px;
  font-weight:700;
  color:rgba(17,24,39,.65);
}

.k-selectedPatient button{
  border:none;
  background:#edf2f7;
  color:#111827;
  border-radius:14px;
  height:48px;
  padding:0 18px;
  cursor:pointer;
  font-size:16px;
  font-weight:900;
}

/* =========================================================
   TECLADO VIRTUAL
   ========================================================= */

.k-keyboard{
  position:fixed;
  left:0;
  right:0;
  bottom:-100%;
  z-index:10050;

  max-height:52vh;
  overflow-y:auto;

  background:#ffffff;
  border-top-left-radius:28px;
  border-top-right-radius:28px;

  padding:18px 18px 24px;

  box-shadow:
    0 -12px 40px rgba(0,0,0,.18);

  transition: bottom .26s ease;
}

.k-keyboardShow{
  bottom:0;
}

.k-keyboardTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.k-keyboardTop span{
  font-size:20px;
  font-weight:900;
  color:#111827;
}

.k-keyboardTop button{
  border:none;
  background:#edf2f7;
  border-radius:12px;
  padding:10px 16px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.k-keys{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.k-keyRow{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.k-key{
  min-width:95px;
  height:90px;

  border:none;
  border-radius:20px;

  background:#f3f6fa;
  color:#111827;

  cursor:pointer;

  font-size:34px;
  font-weight:900;

  transition:
    transform .10s ease,
    background .10s ease;
}

.k-key:hover{
  background:#e8f3f8;
}

.k-key:active{
  transform:scale(.96);
}

.k-keyWide{
  min-width:320px;
}

.k-keyDanger{
  background:#ffe8e8;
  color:#c62828;
}

.k-keyOk{
  background:#18a8dc;
  color:#ffffff;
}

.k-keyActions{
  margin-top:4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px){

  .k-choiceGrid{
    grid-template-columns:1fr;
  }

  .k-welcomeCard,
  .k-formCard{
    padding:24px;
    border-radius:24px;
  }

  .k-welcomeCard h1,
  .k-formCard h2{
    font-size:30px;
  }

  .k-choiceBtn{
    min-height:120px;
    font-size:26px;
  }

  .k-input{
    height:70px;
    font-size:24px;
  }

  .k-primaryBtn,
  .k-secondaryBtn{
    min-width:140px;
    font-size:18px;
  }

.k-key{
  min-width:85px;
  height:80px;
  font-size:28px;
}

  .k-keyWide{
    min-width:140px;
  }
}

@media (max-width: 580px){

  .k-container{
    padding:14px;
  }

  .k-welcomeCard,
  .k-formCard{
    padding:18px;
    border-radius:20px;
  }

  .k-choiceBtn{
    border-radius:22px;
    min-height:110px;
    font-size:22px;
  }

  .k-input{
    font-size:20px;
    height:64px;
    border-radius:18px;
  }

  .k-formActions{
    flex-direction:column;
  }

  .k-primaryBtn,
  .k-secondaryBtn{
    width:100%;
  }

  .k-selectedPatient{
    flex-direction:column;
    align-items:flex-start;
  }

  .k-keyboard{
    padding:14px;
  }

.k-key{
  min-width:75px;
  height:72px;
  font-size:24px;
  }

  .k-keyWide{
    min-width:110px;
  }
}

/* =========================================================
   ALERTA BONITA KIOSCO
   ========================================================= */

.k-alertOverlay{
  position:fixed;
  inset:0;
  z-index:10000;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:24px;

  background:rgba(17,24,39,.38);
  backdrop-filter: blur(12px);

  opacity:0;
  pointer-events:none;

  transition: opacity .22s ease;
}

.k-alertOverlay.k-alertShow{
  opacity:1;
  pointer-events:auto;
}

.k-alertBox{
  width:min(540px, 100%);

  background:#ffffff;
  border-radius:34px;

  padding:34px 32px 30px;

  text-align:center;

  border:1px solid rgba(17,24,39,.08);

  box-shadow:
    0 30px 80px rgba(0,0,0,.22);

  transform:translateY(16px) scale(.96);
  opacity:0;

  transition:
    transform .22s ease,
    opacity .22s ease;
}

.k-alertShow .k-alertBox{
  transform:translateY(0) scale(1);
  opacity:1;
}

.k-alertBadge{
  width:92px;
  height:92px;

  margin:0 auto 18px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:46px;
  font-weight:900;

  background:#fff7ed;
  color:#f59e0b;

  box-shadow:
    0 12px 28px rgba(245,158,11,.20);
}

.k-alertBox h3{
  margin:0;

  font-size:34px;
  font-weight:900;
  letter-spacing:.4px;

  color:#111827;
}

.k-alertBox p{
  margin:12px auto 0;

  max-width:420px;

  font-size:18px;
  font-weight:700;
  line-height:1.35;

  color:rgba(17,24,39,.68);
}

.k-alertBox button{
  margin-top:28px;

  min-width:190px;
  height:60px;

  border:none;
  border-radius:18px;

  background:#18a8dc;
  color:#ffffff;

  cursor:pointer;

  font-size:20px;
  font-weight:900;

  box-shadow:
    0 12px 24px rgba(24,168,220,.24);

  transition:
    transform .12s ease,
    filter .12s ease;
}

.k-alertBox button:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

.k-alertBox button:active{
  transform:scale(.98);
}

/* Tipos de alerta */
.k-alertWarning .k-alertBadge{
  background:#fff7ed;
  color:#f59e0b;
}

.k-alertError .k-alertBadge{
  background:#fee2e2;
  color:#dc2626;
}

.k-alertSuccess .k-alertBadge{
  background:#dcfce7;
  color:#16a34a;
}

.k-alertInfo .k-alertBadge{
  background:#e0f2fe;
  color:#18a8dc;
}

@media (max-width:580px){
  .k-alertBox{
    padding:28px 22px 24px;
    border-radius:26px;
  }

  .k-alertBadge{
    width:76px;
    height:76px;
    font-size:38px;
  }

  .k-alertBox h3{
    font-size:26px;
  }

  .k-alertBox p{
    font-size:16px;
  }

  .k-alertBox button{
    width:100%;
    height:56px;
    font-size:18px;
  }
}

/* =========================================================
   KEY / MODO ADM KIOSCO
   ========================================================= */

.k-welcomeCard{
  position:relative;
}

.k-adminKeyBtn{
  position:absolute;
  top:18px;
  right:18px;

  min-width:74px;
  height:44px;

  border:none;
  border-radius:999px;

  background:#111827;
  color:#ffffff;

  font-size:16px;
  font-weight:900;
  letter-spacing:.6px;

  cursor:pointer;

  box-shadow:0 10px 22px rgba(17,24,39,.18);

  transition:
    transform .12s ease,
    filter .12s ease;
}

.k-adminKeyBtn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.k-adminKeyBtn:active{
  transform:scale(.98);
}

.k-adminOverlay{
  position:fixed;
  inset:0;
  z-index:10001;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:24px;

  background:rgba(17,24,39,.42);
  backdrop-filter:blur(12px);

  opacity:0;
  pointer-events:none;

  transition:opacity .22s ease;
}

.k-adminOverlay.k-adminShow{
  opacity:1;
  pointer-events:auto;
}

.k-adminKeyCard{
  width:min(520px, 100%);

  background:#ffffff;
  border-radius:32px;

  padding:34px 32px 30px;

  text-align:center;

  border:1px solid rgba(17,24,39,.08);

  box-shadow:
    0 30px 80px rgba(0,0,0,.24);

  transform:translateY(16px) scale(.96);
  opacity:0;

  transition:
    transform .22s ease,
    opacity .22s ease;
}

.k-adminShow .k-adminKeyCard{
  transform:translateY(-245px) scale(1);
  opacity:1;
}

.k-adminKeyBadge{
  width:88px;
  height:88px;

  margin:0 auto 18px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#111827;
  color:#ffffff;

  font-size:24px;
  font-weight:900;
  letter-spacing:1px;

  box-shadow:0 14px 30px rgba(17,24,39,.22);
}

.k-adminKeyCard h3{
  margin:0;

  font-size:34px;
  font-weight:900;

  color:#111827;
}

.k-adminKeyCard p{
  margin:12px auto 0;

  max-width:390px;

  font-size:17px;
  font-weight:700;
  line-height:1.35;

  color:rgba(17,24,39,.68);
}

.k-adminKeyInput{
  width:100%;
  height:72px;

  margin-top:24px;

  border:none;
  border-radius:22px;

  background:#f3f6fa;
  color:#111827;

  padding:0 22px;

  font-size:30px;
  font-weight:900;
  text-align:center;
  letter-spacing:3px;

  outline:none;

  box-shadow:inset 0 0 0 2px transparent;

  transition:.15s ease;
}

.k-adminKeyInput:focus{
  background:#eef4f9;
  box-shadow:inset 0 0 0 2px #18a8dc;
}

.k-adminKeyActions{
  display:flex;
  justify-content:center;
  gap:14px;

  margin-top:24px;
}

.k-adminCancelBtn,
.k-adminEnterBtn{
  min-width:150px;
  height:58px;

  border:none;
  border-radius:18px;

  cursor:pointer;

  font-size:19px;
  font-weight:900;

  transition:
    transform .12s ease,
    filter .12s ease;
}

.k-adminCancelBtn{
  background:#edf2f7;
  color:#111827;
}

.k-adminEnterBtn{
  background:#18a8dc;
  color:#ffffff;

  box-shadow:0 12px 24px rgba(24,168,220,.24);
}

.k-adminCancelBtn:hover,
.k-adminEnterBtn:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

.k-adminCancelBtn:active,
.k-adminEnterBtn:active{
  transform:scale(.98);
}

@media (max-width:580px){
  .k-adminKeyBtn{
    top:12px;
    right:12px;
    min-width:62px;
    height:38px;
    font-size:14px;
  }

  .k-adminKeyCard{
    border-radius:26px;
    padding:28px 22px 24px;
  }

  .k-adminKeyBadge{
    width:74px;
    height:74px;
    font-size:20px;
  }

  .k-adminKeyCard h3{
    font-size:28px;
  }

  .k-adminKeyCard p{
    font-size:16px;
  }

  .k-adminKeyActions{
    flex-direction:column;
  }

  .k-adminCancelBtn,
  .k-adminEnterBtn{
    width:100%;
  }
}

/* =========================================================
   PIXCORE KIOSCO — DISEÑO MINIMALISTA INSPIRADO EN LA REFERENCIA
   El tono se deriva automáticamente del color principal de la TV.
   ========================================================= */
:root{
  --k-accent:#6d28d9;
  --k-accent-rgb:109,40,217;
  --k-accent-soft:rgba(var(--k-accent-rgb),.62);
  --k-accent-soft-2:rgba(var(--k-accent-rgb),.48);
}

/* Tarjetas de áreas: bloque suave, texto blanco y código integrado abajo. */
.k-areaBtnNew{
  position:relative;
  padding:0;
  border:0;
  border-radius:clamp(30px, 3.2vw, 52px);
  background:var(--k-accent-soft);
  background:color-mix(in srgb, var(--k-accent) 56%, white 44%);
  box-shadow:0 10px 26px rgba(var(--k-accent-rgb),.13);
  overflow:hidden;
  isolation:isolate;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.k-areaBtnNew::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(135deg, rgba(255,255,255,.12), transparent 48%);
  pointer-events:none;
}

.k-areaContent{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  border:0;
  border-radius:inherit;
  background:transparent;
  overflow:hidden;
}

.k-areaText{
  color:#fff;
  text-shadow:0 1px 1px rgba(15,23,42,.04);
}

.k-areaCircle{
  background:#fff;
  color:var(--k-accent);
  box-shadow:-3px -3px 12px rgba(15,23,42,.025);
}

.k-areaBtnNew:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(var(--k-accent-rgb),.18);
  filter:saturate(1.03);
}

.k-areaBtnNew:active{
  transform:scale(.988);
  box-shadow:0 7px 18px rgba(var(--k-accent-rgb),.12);
}

/* Selección Normal / Preferencial: contraste inmediato y estética minimalista. */
.k-selectCard{
  border:1px solid rgba(15,23,42,.07);
  border-radius:30px;
  box-shadow:0 22px 58px rgba(15,23,42,.08);
  background:#fff;
}

.k-btn{
  position:relative;
  overflow:hidden;
  justify-content:flex-start;
  text-align:left;
  border:1px solid transparent;
  border-radius:30px;
  padding:24px 108px 24px 30px;
  letter-spacing:-.35px;
  font-weight:780;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

/* Normal siempre neutro: fácil de reconocer pero sin competir visualmente. */
.k-btnBlue{
  color:#334155;
  background:#e9edf2;
  border-color:#dde3ea;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}

/* Preferencial siempre amarillo, independiente del color configurado para la TV. */
.k-btnYellow{
  color:#4a3400;
  background:#f6c945;
  border-color:#eabf37;
  box-shadow:0 14px 30px rgba(202,138,4,.22);
}

.k-btnIcon{
  position:absolute;
  right:0;
  bottom:0;
  min-width:84px;
  height:66px;
  padding:0 17px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:34px 0 0 0;
  background:#fff;
  color:#64748b;
  font-size:25px;
  font-weight:900;
  line-height:1;
  box-shadow:-1px -1px 0 rgba(15,23,42,.035);
}

.k-btnIconPreferencial{
  min-width:100px;
  color:#a16207;
}

.k-prefLetter{
  font-weight:950;
}

.k-prefStar{
  display:inline-block;
  font-size:20px;
  line-height:1;
  color:#e4a900;
  transform:translateY(-1px);
}

.k-btnBlue:hover{
  transform:translateY(-2px);
  filter:brightness(.99);
  box-shadow:0 15px 30px rgba(15,23,42,.11);
}

.k-btnYellow:hover{
  transform:translateY(-2px);
  filter:brightness(1.015);
  box-shadow:0 19px 38px rgba(202,138,4,.28);
}

.k-btn:active{
  transform:scale(.989);
}

/* Botones iniciales y acciones principales coherentes con el color de TV. */
.k-choiceBtn{
  position:relative;
  align-items:flex-start;
  text-align:left;
  padding:28px 32px;
  border-radius:34px;
  background:var(--k-accent-soft);
  background:color-mix(in srgb, var(--k-accent) 56%, white 44%);
  box-shadow:0 13px 30px rgba(var(--k-accent-rgb),.14);
}

.k-choiceBtn:nth-child(2){
  background:var(--k-accent-soft-2);
  background:color-mix(in srgb, var(--k-accent) 46%, white 54%);
}

.k-choiceBtn small{
  text-align:left;
}

.k-primaryBtn,
.k-adminEnterBtn,
.k-alertBox button{
  background:var(--k-accent);
  color:#fff;
  box-shadow:0 10px 24px rgba(var(--k-accent-rgb),.20);
}

.k-input:focus,
.k-input:hover,
.k-adminKeyInput:focus{
  box-shadow:inset 0 0 0 2px var(--k-accent);
}

.k-backLink,
.k-footerLink{
  color:var(--k-accent);
}

.k-dot{
  background:var(--k-accent);
  box-shadow:0 0 0 5px rgba(var(--k-accent-rgb),.12);
}

@media (max-width:580px){
  .k-btn{
    border-radius:26px;
    padding:18px 82px 18px 22px;
  }

  .k-btnIcon{
    width:66px;
    height:54px;
    border-radius:28px 0 0 0;
    font-size:22px;
  }

  .k-choiceBtn{
    border-radius:28px;
    padding:22px 24px;
  }
}
