:root {
  --rojo: #b3132a;
  --rojo-oscuro: #8a0f20;
  --texto: #1c1b1a;
  --tenue: #6b6764;
  --borde: #e2ddd9;
  --fondo: #faf9f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.55;
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--borde);
}

.marca {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rojo);
  text-decoration: none;
}

.barra nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.barra nav a { color: var(--texto); text-decoration: none; }
.barra nav a:hover { color: var(--rojo); }
.barra nav a.boton, .barra nav a.boton:hover { color: #fff; }

.contenido {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.angosto { max-width: 22rem; margin: 0 auto; }

h1 { font-size: 1.8rem; margin-top: 0; }
h2 { font-size: 1.25rem; margin-top: 2.25rem; }

.portada {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--borde);
}
.portada h1 { font-size: 2.2rem; color: var(--rojo); }

.boton,
button.boton {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--rojo);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.boton:hover, button.boton:hover { background: var(--rojo-oscuro); color: #fff; }

.boton-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--texto);
  cursor: pointer;
}
.boton-link:hover { color: var(--rojo); }

.en-linea { display: inline; }

.tarjetas {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 1rem;
}
.tarjeta p { margin: 0.25rem 0; }
.tarjeta .fecha { font-weight: 600; }
.tarjeta .hora { color: var(--rojo); }
.tarjeta .logo { max-height: 3.5rem; margin-bottom: 0.5rem; }

.lista { list-style: none; padding: 0; }
.lista li {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.datos { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
.datos dt { color: var(--tenue); }
.datos dd { margin: 0; }

.formulario label { display: block; font-size: 0.9rem; color: var(--tenue); }
.formulario input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font: inherit;
}

.etiqueta {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  color: var(--tenue);
}

.tenue { color: var(--tenue); }
.error { color: var(--rojo); }
.mensajes { list-style: none; padding: 0; }
.mensajes li {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--borde);
  border-left: 4px solid var(--rojo);
  border-radius: 4px;
}

.pie {
  padding: 1.5rem;
  text-align: center;
  color: var(--tenue);
  border-top: 1px solid var(--borde);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.kpi {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.kpi-numero { font-size: 2rem; font-weight: 700; color: var(--rojo); margin: 0; }
.kpi-etiqueta { margin: 0.15rem 0 0; color: var(--tenue); font-size: 0.85rem; }

a.tarjeta.enlace {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
a.tarjeta.enlace:hover { border-color: var(--rojo); }
a.tarjeta.enlace strong { color: var(--rojo); }

.formulario-ancho { max-width: 28rem; }

.formulario-busqueda {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 28rem;
}
.formulario-busqueda input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font: inherit;
}

.tabla-scroll { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; background: #fff; }
.tabla th, .tabla td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--borde);
  white-space: nowrap;
}
.tabla th { color: var(--tenue); font-weight: 600; font-size: 0.85rem; }

.logo-grande { max-height: 5rem; margin-bottom: 0.75rem; }
.texto-libre { max-width: 40rem; }

.destacados {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
.imagen-destacada,
.video-destacado {
  flex: 1 1 18rem;
  width: 18rem;
  max-width: 100%;
  height: 24rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  display: block;
}

.opciones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.boton-secundario {
  background: #fff;
  color: var(--rojo);
  border: 1px solid var(--rojo);
}
.boton-secundario:hover { background: #fdf0f1; color: var(--rojo); }

input[type="radio"] { margin-right: 0.4rem; }

.referencias {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--tenue);
}
.referencias li { display: flex; align-items: center; gap: 0.4rem; }

.pastilla {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}
.referencias .pastilla { width: 0.85rem; height: 0.85rem; padding: 0; border-radius: 50%; }

.estado-pendiente { background: #d9a441; }
.estado-pendiente-vencido { background: #c1671b; }
.estado-dono { background: #2f8f4e; }
.estado-no-vino { background: var(--rojo); }
.estado-rechazado { background: #b8b3ae; color: #3a3733; }

.tabla-grilla th, .tabla-grilla td { text-align: center; }
.tabla-grilla td:first-child, .tabla-grilla th:first-child { text-align: left; }

/* La grilla de turnos puede tener muchas filas (una campaña larga con
   intervalos cortos); se la limita en altura y se scrollea adentro en vez
   de alargar toda la página, con el encabezado de columnas siempre visible. */
.tabla-grilla-scroll {
  max-height: 60vh;
  overflow-y: auto;
}
.tabla-grilla-scroll .tabla-grilla thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.acciones-turno {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
}
.acciones-turno form { margin: 0; }

.mini-boton {
  width: 100%;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  border-radius: 4px;
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--texto);
  cursor: pointer;
}
.mini-boton:hover { border-color: var(--rojo); color: var(--rojo); }
.mini-boton-dono:hover { border-color: #2f8f4e; color: #2f8f4e; }
.mini-boton-no-vino:hover { border-color: var(--rojo); color: var(--rojo); }

.requisitos { padding: 1.5rem 0; border-bottom: 1px solid var(--borde); }

.tarjetas-requisitos { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tarjetas-requisitos .tarjeta h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--rojo);
}
.tarjetas-requisitos .tarjeta ul {
  margin: 0;
  padding-left: 1.1rem;
}
.tarjetas-requisitos .tarjeta li { margin-bottom: 0.4rem; }

.fuente { font-size: 0.85rem; margin-top: 1rem; }
