/* Base común de la página de marcación y del panel: colores, letras, botones, campos y avisos. */
:root {
  --fondo: #EDEFEA;
  --tarjeta: #FFFFFF;
  --asfalto: #1C2227;
  --asfalto-2: #283037;
  --asfalto-3: #36404A;
  --senal: #F5B800;
  --senal-2: #FFCB2E;
  --senal-suave: #FFF5D1;
  --tinta: #1C2227;
  --gris: #5C656B;
  --gris-2: #8C9499;
  --linea: #DCE0DA;
  --suave: #F4F5F2;
  --ok: #1E7B3B;
  --ok-suave: #E2F3E7;
  --alerta: #B3261E;
  --alerta-suave: #FBE7E5;
  --aviso: #8A5A00;
  --aviso-suave: #FFF1C7;
  --sombra-1: 0 1px 2px rgba(28, 34, 39, .06), 0 1px 3px rgba(28, 34, 39, .05);
  --sombra-2: 0 2px 4px rgba(28, 34, 39, .05), 0 10px 28px rgba(28, 34, 39, .08);
  --sombra-3: 0 12px 40px rgba(28, 34, 39, .22);
  --radio: 14px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texto: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --franja: repeating-linear-gradient(-45deg, var(--senal) 0 14px, var(--asfalto) 14px 28px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fondo);
  color: var(--tinta);
  font: 400 15px/1.5 var(--texto);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 2px; }
img { max-width: 100%; }

/* íconos del archivo /img/iconos.svg */
.ico {
  width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* marca: el reloj amarillo del ícono */
.logo { width: 40px; height: 40px; border-radius: 11px; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* campos */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; color: var(--tinta); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=search], select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--linea); border-radius: 11px; background: var(--tarjeta);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--gris-2); }
input:hover, select:hover { border-color: #C5CBC4; }
input:focus, select:focus { outline: none; border-color: var(--asfalto); box-shadow: 0 0 0 4px rgba(245, 184, 0, .35); }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--tarjeta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C656B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-weight: 500; cursor: pointer; }
.check input {
  appearance: none; width: 22px; height: 22px; margin: 1px 0 0; flex: none; cursor: pointer;
  border: 1.5px solid #B9C0B8; border-radius: 7px; background: var(--tarjeta); display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.check input::after {
  content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2227' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input:checked { background: var(--senal); border-color: var(--senal); }
.check input:checked::after { transform: scale(1); }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 11px; cursor: pointer;
  font-weight: 700; letter-spacing: .1px; white-space: nowrap;
  background: var(--asfalto); color: #fff; box-shadow: var(--sombra-1);
  transition: transform .08s, background .15s, box-shadow .15s, opacity .15s;
  touch-action: manipulation; text-decoration: none;
}
.btn:hover { background: var(--asfalto-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.amarillo { background: var(--senal); color: var(--asfalto); }
.btn.amarillo:hover { background: var(--senal-2); }
.btn.borde { background: var(--tarjeta); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn.borde:hover { box-shadow: inset 0 0 0 1.5px #BCC3BB; background: var(--suave); }
.btn.peligro { background: var(--tarjeta); color: var(--alerta); box-shadow: inset 0 0 0 1.5px #EDC0BB; }
.btn.peligro:hover { background: var(--alerta-suave); }
.btn.rojo { background: var(--alerta); color: #fff; }
.btn.rojo:hover { background: #9A1F18; }
.btn.chico { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.ancho { width: 100%; }
.enlace { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* mensajes */
.error {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--alerta-suave); color: var(--alerta); border-radius: 11px;
  padding: 12px 14px; margin-top: 16px; font-weight: 600; font-size: 14px;
}
.error::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nota { color: var(--gris); font-size: 13px; }

/* indicador de carga */
.cargando {
  display: inline-block; width: 1.1em; height: 1.1em; flex: none;
  border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: gira .7s linear infinite; vertical-align: -.2em;
}
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
