/* Tablero público de buques DASSA — embebido por iframe en dassa.com.ar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rojo: #c8202c;
  --rojo-profundo: #a8121e;
  --rojo-tint: #fbe5e6;
  --aqua: #2bb8be;
  --aqua-profundo: #1f979c;
  --crema: #f5efe3;
  --tinta: #1a1a1a;
  --gris: #6b6b6b;
  --borde: #e5dfd2;
}

body {
  font-family:
    'Mulish',
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  background: var(--crema);
  color: var(--tinta);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px;
}

/* ===== Cabecera: título rojo + leyenda + logo (como la web DASSA) ===== */
.header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.header h1 {
  color: var(--rojo);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.leyenda {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tinta);
  max-width: 640px;
  line-height: 1.4;
}
.logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.buscador {
  width: 100%;
  max-width: 300px;
  padding: 7px 12px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.buscador:focus {
  outline: 2px solid var(--aqua);
  border-color: transparent;
}
.meta {
  font-size: 12px;
  color: var(--gris);
}

/* ===== Las 3 terminales en fila (columnas verticales) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.terminal-titulo {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.terminal-titulo .count {
  font-weight: 400;
  color: var(--gris);
  font-size: 12px;
}

.terminal {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.scrape {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: var(--gris);
  padding: 4px 10px 6px;
}

.tabla-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  font-weight: 800;
  padding: 7px 6px;
  background: var(--rojo);
  white-space: nowrap;
}
td {
  padding: 6px 6px;
  border-bottom: 1px solid #f0ebdf;
  white-space: nowrap;
  font-size: 12.5px;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: #fdf9f0;
}
td.buque {
  font-weight: 700;
  white-space: normal;
  min-width: 90px;
}
td.fecha {
  font-variant-numeric: tabular-nums;
}
td.destacada {
  font-weight: 800;
  color: var(--rojo-profundo);
}

.hoy {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--rojo);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.vacio {
  padding: 18px 14px;
  color: var(--gris);
  font-size: 13px;
}
.error {
  padding: 24px 14px;
  color: var(--rojo-profundo);
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .header h1 {
    font-size: 19px;
  }
  .logo {
    height: 42px;
  }
}
