/* eventos-ucm — tokens, reset y elementos compartidos entre páginas */

:root {
  /* Marca */
  --navy-900: #0b0f22;
  --navy-800: #031f35;
  --azul: #014a88;
  --cian: #35c4e8;

  /* Superficies (tema claro) */
  --fondo: #eef1f6;
  --superficie: #ffffff;
  --superficie-2: #e2e7ef;
  --borde: #dde3ec;

  /* Texto */
  --texto: #0b0f22;
  --texto-suave: #556172;
  /* Contraste mínimo 4.5:1 sobre las tres superficies claras (--fondo,
     --superficie y --superficie-2); el gris anterior se quedaba en 2.5-3. */
  --texto-tenue: #5c6778;

  /* Estados */
  --error: #b3261e;
  --error-fondo: #fdecea;
  --ok: #0f7b4f;

  /* Métricas */
  --radio: 6px;
  --radio-lg: 10px;
  --columna-imagen: clamp(380px, 36vw, 620px);
  --sombra: 0 1px 3px rgba(11, 15, 34, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* El atributo hidden lo aplica el navegador con display: none, y cualquier
   regla propia con display (.boton, .cierre, .aviso…) lo anularía. */
[hidden] {
  display: none !important;
}

body,
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.5;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  display: block;
}

/* Los enlaces van subrayados: dentro de un párrafo el color solo no basta
   para distinguirlos, y quien no percibe bien el contraste de color se los
   pierde. Los que no son texto corrido (botones, enlaces con flecha) lo
   anulan por su cuenta. */
a {
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

a:hover {
  color: var(--navy-800);
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

/* Solo visible para lectores de pantalla */
.oculto-visual {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Botones --- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--radio);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

/* Un botón se distingue por su forma, no necesita subrayado. */
.boton,
.boton:hover {
  text-decoration: none;
}

.boton--solido {
  background: var(--navy-800);
  color: #ffffff;
}

.boton--solido:hover:not(:disabled) {
  background: var(--azul);
  color: #ffffff;
}

.boton--contorno {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.boton--contorno:hover {
  background: var(--navy-800);
  color: #ffffff;
}

.boton--cian {
  background: var(--cian);
  color: #04202f;
}

.boton--cian:hover {
  background: #5fd3f0;
  color: #04202f;
}

.boton:disabled {
  opacity: 0.6;
  cursor: progress;
}

.estado-pase {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cian);
}

/* --- Barra superior de marca (usada en programacion.html) --- */

.barra {
  background: var(--navy-800);
  color: #ffffff;
}

.barra__interior {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.marca {
  display: flex;
  align-items: center;
  gap: 14px;
}

.marca__logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

/* El logo DTI lleva tres líneas de bajada: necesita algo más de alto */
.marca__logo--dti {
  height: 52px;
}

.marca__division {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  background: currentColor;
  opacity: 0.22;
}

.marca__texto {
  font-size: 0.781rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.5;
}

.marca__texto strong {
  font-weight: 700;
}

@media (max-width: 560px) {
  .barra__interior {
    padding: 18px 20px;
  }

  .marca {
    gap: 10px;
  }

  .marca__logo {
    height: 34px;
  }

  .marca__logo--dti {
    height: 42px;
  }

  .marca__texto {
    letter-spacing: 0.12em;
  }
}
