/* Calendario de libranza · SIT (sitsindical.es/calendarios) — mismos colores que la web */
:root {
  --azul: #0a4c94;
  --azul-osc: #00305b;
  --verde: #078105;
  --lima: #b4cc1a;
  --fondo: #f4f6f9;
  --texto: #1b2433;
  --suave: #556070;
  --borde: #dde3eb;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
  --titulos: "Raleway", Arial, sans-serif;
  --cuerpo: "Open Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--cuerpo); font-size: 16px; line-height: 1.55; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; }
a { color: var(--azul); }
a:hover { color: var(--verde); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--titulos); color: var(--azul-osc); line-height: 1.05; margin: 0 0 .4em; }
.contenedor { width: min(100% - 2rem, 900px); margin-inline: auto; }

/* cabecera */
.cab { background: linear-gradient(115deg, var(--azul-osc) 0 66%, var(--lima) 66% 67.2%, var(--verde) 67.2% 100%); color: #fff; }
.cab-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.cab-marca { display: flex; align-items: center; gap: .9rem; text-decoration: none; min-width: 0; }
.cab-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.cab-rotulos { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cab-rotulos img:first-child { height: 26px; width: auto; }
.cab-rotulos img:last-child { height: 15px; width: auto; opacity: .9; }
.cab-volver { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); padding: .45rem .9rem; border-radius: 999px; font-size: .95rem; }
.cab-volver:hover { background: #fff; color: var(--azul-osc); }
@media (max-width: 640px) {
  .cab { background: var(--azul-osc); border-bottom: 4px solid var(--verde); }
  .cab-rotulos { display: none; }
  .cab-logo { width: 52px; height: 52px; }
}

/* introducción */
.intro { padding: 2rem 0 1.1rem; }
.etiqueta { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); background: #e7f4e6; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.intro h1 { font-size: clamp(2rem, 5.4vw, 3rem); font-weight: 800; }
.intro p { margin: 0; color: var(--suave); max-width: 46rem; }

/* tarjetas */
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.generador { border-top: 5px solid var(--verde); }
.pasos { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 1rem 1.2rem; align-items: end; }
@media (max-width: 760px) { .pasos { grid-template-columns: 1fr; } }
.paso { display: flex; gap: .7rem; align-items: flex-end; }
.paso .campo select { cursor: pointer; }
.paso .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: #fff; font-family: var(--titulos); font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; margin-bottom: 7px; }
.campo { flex: 1; display: flex; flex-direction: column; font-weight: 700; color: var(--azul-osc); font-size: .95rem; min-width: 0; }
input, select { font: inherit; font-size: 1.15rem; font-weight: 600; padding: .65rem .8rem; border: 2px solid #c9d3e0; border-radius: 10px; background: #fff; color: var(--texto); width: 100%; margin-top: .3rem; }
input:focus, select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(10, 76, 148, .15); }
.buscaDep { display: none !important; }
.buscaDep-x { display: flex; flex-direction: column; margin-top: .3rem; }
.buscaDep input { font-size: .95rem; font-weight: 400; padding: .5rem .7rem; margin: 0 0 .2rem; border-width: 1px; }
.buscaDep small { font-weight: 400; color: var(--suave); font-size: .8rem; }

button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid #c9d3e0; background: #fff; color: var(--azul-osc); padding: .55rem 1rem; font-weight: 600; }
button:hover { border-color: var(--azul); }
button.principal { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: var(--verde); border-color: var(--verde); color: #fff; font-family: var(--titulos); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; padding: .6rem 1rem; box-shadow: 0 6px 18px rgba(7, 129, 5, .28); }
button.principal svg { width: 24px; height: 24px; }
button.principal:hover { background: #066c04; }
button.peq { padding: .3rem .75rem; }
button.sec { background: #eef2f7; }
button.peligroBtn { background: #c62828; border-color: #c62828; color: #fff; }

.info { color: var(--suave); font-size: .92rem; margin: .9rem 0 0; }
.aviso { background: #fff6db; border: 1px solid #f1d98a; color: #6b5300; border-radius: 10px; padding: .55rem .8rem; font-size: .92rem; margin: .7rem 0 0; }
.ayuda { margin: .8rem 0 0; font-size: .95rem; background: #eef5fd; border-radius: 10px; padding: .6rem .85rem; }

/* vista previa */
.cabPrevia { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cabPrevia h2 { font-size: 1.35rem; margin: 0; }
.navPrevia { display: flex; align-items: center; gap: .6rem; color: var(--suave); font-size: .95rem; }
.previa { margin-top: .9rem; display: flex; justify-content: center; }
.previa svg { width: 100%; max-width: 620px; height: auto; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.nota { color: var(--suave); font-size: .88rem; margin: 0 0 2rem; }

/* pie */
.pie { background: var(--azul-osc); color: #c9d6ea; font-size: .9rem; padding: 1.1rem 0; }
.pie .contenedor { display: flex; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; }
.pie a { color: #fff; }
.pie .lema { color: var(--lima); font-style: italic; }

/* diálogos */
.dialogo, .cargando { position: fixed; inset: 0; background: rgba(10, 25, 50, .5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialogo[hidden], .cargando[hidden] { display: none; }
.dialogo .caja, .cargando .caja { background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem; max-width: 480px; width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.dialogo h3 { font-size: 1.3rem; }
.dialogo .botones { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.dialogo .botones button.principal { width: auto; font-size: 1.05rem; padding: .45rem 1.3rem; box-shadow: none; }
.cargando .caja { text-align: center; max-width: 300px; }
.rueda { width: 42px; height: 42px; border: 4px solid #dfe7f2; border-top-color: var(--verde); border-radius: 50%; margin: 6px auto; animation: g 1s linear infinite; }
@keyframes g { to { transform: rotate(360deg); } }
