/* Companies, sponsors and advertising. Tokens and type come from site.css; nothing here adds a colour. */

/* ---- what the public frame lacks and the workspace has ---- */
.em .t-sub, .em-sub { display: block; color: var(--tinta-suave); font-size: 0.875rem; font-weight: 500; }
.em .pedir { margin-top: 12px; }
.em .pedir summary { min-height: 44px; padding-top: 10px; font-weight: 800; cursor: pointer; }
.em .pedir summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.em .historial li { padding: 6px 0; border-top: 1px solid var(--tinta); font-weight: 600; }
.em .historial li > span:first-child { display: block; font-size: 0.8125rem; color: var(--tinta-suave); }
.em .fila-campos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; }
.em .fila-campos .campo { flex: 1 1 150px; max-width: 300px; min-width: 0; }
.feria-cuerpo .em > .sol-aviso, .feria-cuerpo .em > .sol-errores { margin: 16px var(--margen) 0; }
.feria-cuerpo .em > .sol-aviso { margin-bottom: 16px; background: var(--hoja-amarilla); }
.em h2 + p, .em h3 + p { margin-top: 6px; }
.em h3 { margin-top: 18px; font-size: 1.0625rem; font-weight: 800; }
.em section > h2 + ul, .em section > h2 + table, .em section > h2 + form { margin-top: 12px; }

/* ---- forms ---- */
.em-form { max-width: 560px; margin-top: 14px; }
.em .boton { border: 0; padding-left: 24px; padding-right: 24px; }
.em select, .em input[type=date], .em input[type=url] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 12px;
  border: var(--linea);
  border-radius: 0;
  background: var(--papel);
  color: var(--tinta);
  font: inherit;
  /* 16 px or more: a smaller field makes iPhones zoom the page on focus. */
  font-size: 1.0625rem;
  font-weight: 600;
}
.em select:focus-visible, .em input[type=date]:focus-visible, .em input[type=url]:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.em-opciones { display: grid; gap: 10px; margin-top: 10px; }
.em-opciones .casilla { min-height: 32px; align-items: center; }
.em-grupo { margin: 0 0 18px; padding: 14px 14px 0; border: var(--linea); }
.em-grupo legend { padding: 0 6px; font-weight: 800; }
.em-texto { white-space: pre-line; overflow-wrap: anywhere; }

/* ---- lists ---- */
.em-filas > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--tinta); }
.em-filas > li:last-child { border-bottom: 1px solid var(--tinta); }
.em-filas > li > p:first-child { flex: 1 1 220px; min-width: 0; font-weight: 600; }
.em-filas .em-estado { margin: 0; }
.em-filas .em-fila-ancha { display: block; border-top: 0; padding-top: 0; }
.em-filas .em-fila-ancha:empty { display: none; }
.em-filas .cambiar { margin-top: 6px; }
.em-revisar { display: block; margin-top: 14px; padding: 16px; border: var(--linea); }
.em-revisar h3 { display: inline-block; margin-top: 0; padding: 2px 8px; background: var(--hoja-amarilla); }
.em-filas > .em-revisar { display: block; padding: 16px; border: var(--linea); }
.em-revisar .em-logo { margin: 10px 0; }
.em-revisar > form { margin-top: 12px; }
.em-filas > .em-revisar + .em-revisar { margin-top: 16px; }
.em-paquete { padding: 14px 0; border-top: 1px solid var(--tinta); }
.em-paquete h3 { margin-top: 0; }
.em-enlace { background: var(--hoja-verde); }

.em-logo { display: block; width: 72px; height: 72px; object-fit: contain; border: var(--linea); background: var(--papel); }
.em-logo-grande { width: 132px; height: 132px; margin-bottom: 12px; }
.em-sin-logo { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; }
.em-fichas { display: grid; gap: 0; }
.em-ficha { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--tinta); }
.em-ficha:first-child { padding-top: 0; }
.em-ficha:last-child { border-bottom: 0; padding-bottom: 0; }
.em-ficha-sola { grid-template-columns: minmax(0, 1fr); }
.em-destacado { padding: 12px 14px; border: var(--linea); background: var(--hoja-amarilla); font-weight: 700; }
.em-beneficios { display: grid; gap: 12px; }
.em-beneficio { padding: 14px; border: var(--linea); }
.em-beneficio .cita-nombre { margin-bottom: 4px; }
.em-paquetes { display: grid; gap: 12px; }
.em-paquetes > li { padding: 16px; border: var(--linea); }
.em-paquetes h3 { margin-top: 0; font-size: 1.25rem; font-weight: 900; }
.em-precio { color: var(--tinta); font-size: 1.75rem; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.em-precios td { font-size: 1.0625rem; font-stretch: 100%; white-space: normal; padding-left: 12px; }
.em-precios th { vertical-align: top; }
.em-ticks li { padding: 8px 0; border-top: 1px solid var(--tinta); font-weight: 700; }
.em-ticks .em-hecho::before { content: "✓ "; font-weight: 900; }
.em-ticks .em-falta { font-weight: 500; }
.em-dias { width: 100%; max-width: 420px; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.em-dias th, .em-dias td { padding: 6px 0; border-bottom: 1px solid var(--tinta); text-align: right; }
.em-dias th:first-child, .em-dias td:first-child { text-align: left; }
.em-pieza { display: block; max-width: 100%; height: auto; margin-top: 12px; border: var(--linea); }

/* ---- the advertising slot and a feria's sponsors: on pages this stylesheet is added to ---- */
/* White space sets the advertising apart, as it does every public section; the bottom leaves the footer's
   pennants room. */
.em-espacio { padding: 36px var(--margen) 40px; }
.em-espacio ul { display: grid; gap: 12px; }
/* Paid space is a plain square box in Archivo: in a painted, hand-cut site that is what reads as not ours. Dashed
   was the old tell, and the painted world now uses it for its own stamps. */
.em-anuncio { position: relative; padding: 12px 14px 14px; border: var(--linea); }
.em-anuncio .em-logo { float: left; width: 56px; height: 56px; margin: 0 12px 4px 0; }
.em-anuncio::after { content: ""; display: block; clear: both; }
.em-rotulo { margin-bottom: 6px; color: var(--tinta-suave); font-size: 0.8125rem; font-weight: 800; }
.em-banner a { display: block; text-decoration: none; }
.em-banner img { display: block; width: 100%; height: auto; margin-bottom: 8px; border: var(--linea); }
.em-presenta .em-logo { float: none; display: inline-block; width: 40px; height: 40px; margin: 0 6px 0 4px; vertical-align: middle; }
.em-apoyos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 14px; }
.em-apoyos li { font-weight: 800; }
.em-apoyos a { display: block; text-decoration: none; }
.em-apoyo-logo { display: block; width: auto; max-width: 160px; height: 64px; object-fit: contain; }
.em-apoyos .t-sub, .em-apoyos-seccion .t-sub { display: block; color: var(--tinta-suave); font-size: 0.875rem; font-weight: 500; }

@media (min-width: 720px) {
  .em-paquetes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .em-espacio ul { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (min-width: 1100px) {
  .em-espacio { padding: 56px 48px 48px; }
}

@media print {
  .em-no-imprime, .em-espacio, .pie, .top { display: none; }
}
