/* Catálogo de expositores — Expo Industrias y Servicios.
   Cortes del original (Elementor): escritorio > 1024 px, tableta 768–1024 px, teléfono ≤ 767 px.

   Tipografía: el original pide Inter e Inter Tight con una hoja http:// desde una página https://,
   que el navegador bloquea; todo ese texto sale en la sin serifa del sistema. La copia la pide
   directamente (misma letra, sin el pedido bloqueado). Los botones y el pie piden Arial, como el
   original. Open Sans (la que carga Ajax Search Lite desde Google) va local: es la letra del texto
   de ayuda del buscador y de su lista de resultados. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/open-sans-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/open-sans-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --letra: sans-serif;
  --letra-arial: Arial, sans-serif;
  --texto: #646d75;
  --oscuro: #1d2227;
  --celeste: #189eda;
  --fondo-catalogo: #ededE6;
  --azul-encabezado: #00235a;
  --fondo-pie: #111429;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background-color: #fff;
  color: var(--texto);
  font-family: var(--letra);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.saltar {
  position: absolute;
  top: -100px; left: 6px;
  z-index: 100000;
  padding: 15px 23px 14px;
  background: #f1f1f1;
  color: #21759b;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}
.saltar:focus { top: 6px; }

/* ---------- Encabezado ---------- */

.encabezado {
  position: relative;
  background-color: var(--azul-encabezado);
  transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
}
.encabezado__barra {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.encabezado__logo { flex: 0 0 13%; text-align: center; }
.encabezado__logo img { display: block; width: 100%; }
.encabezado__acciones {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.boton {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0;
  background-color: var(--celeste);
  color: #fff;
  font-family: var(--letra-arial);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  transition: all .3s;
}
.boton:hover, .boton:focus { background-color: #fff; color: var(--celeste); }
.boton--expositores { margin-right: 30px; }

/* ---------- Catálogo (portada y resultados de búsqueda) ---------- */

.catalogo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 100px max(0px, calc((100% - 1200px) / 2));
  background-color: var(--fondo-catalogo);
}
.catalogo--busqueda { min-height: 400px; }

.buscador {
  position: relative;
  align-self: center;
  width: 30%;
  margin: 0 0 50px;
}
.buscador__caja {
  display: flex;
  width: 100%;
  height: 28px;
  box-sizing: content-box;
  padding: 5px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 1px 0 0 #e4e4e4;
}
.buscador__campo {
  flex: 1 1 auto;
  width: 1px;
  height: 28px;
  margin: 0 5px 0 15px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font: 400 16px var(--letra);
  letter-spacing: -.03em;
  line-height: normal;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.buscador__campo::-webkit-search-decoration,
.buscador__campo::-webkit-search-cancel-button { display: none; }
.buscador__campo::placeholder {
  color: rgba(0, 0, 0, .6);
  font-family: "Open Sans", var(--letra);
  font-weight: 400;
  opacity: .85;
}
.buscador__limpiar,
.buscador__lupa {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.buscador__limpiar { position: relative; }
.buscador__limpiar svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  padding: 4px;
  border-radius: 50%;
  background: #333;
  fill: #fefefe;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.buscador__lupa { box-shadow: -1px 1px 0 0 rgba(255, 255, 255, .64) inset; }
.buscador__lupa svg {
  display: inline-block;
  width: 22px;
  height: 28px;
  vertical-align: top;
  fill: #363636;
}

/* Lista de resultados: la de Ajax Search Lite (hasta diez, de a cuatro a la vista). */
.buscador__resultados {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 1100;
  width: calc(100% + 10px);
  padding: 4px;
  background: #fff;
  box-shadow: 0 0 3px -1px rgba(0, 0, 0, .3);
  animation: caer .3s;
  -webkit-user-select: none;
  user-select: none;
}
.buscador__lista {
  max-height: 344px;
  margin: 0;
  padding: 0;
  overflow: hidden auto;
  list-style: none;
  scrollbar-color: rgba(0, 0, 0, .5) #fff;
}
.buscador__lista::-webkit-scrollbar { width: 10px; }
.buscador__lista::-webkit-scrollbar-track { background: #fff; }
.buscador__item {
  padding: 3px;
  border-left: 1px solid rgba(255, 255, 255, .6);
  border-right: 1px solid rgba(255, 255, 255, .4);
  background: #fff;
}
.buscador__item:hover, .buscador__item:focus-within { background: #f4f4f4; }
.buscador__item a {
  display: flex;
  align-items: center;
  padding: 3px 3px 5px;
  outline-offset: -2px;
}
.buscador__item img {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  margin: 2px 8px 0 0;
  object-fit: cover;
}
.buscador__nombre {
  color: #1468a9;
  font-family: "Open Sans", var(--letra);
  font-size: 14px;
  line-height: 22px;
}
.buscador__item a:hover .buscador__nombre { color: #2e6bbc; line-height: 20px; }
.buscador__nada {
  width: fit-content;
  margin: 0;
  padding: 10px 3px;
  background: #fff;
  color: #222;
  line-height: normal;
  text-align: center;
}
@keyframes caer {
  from { opacity: 0; transform: translate(0, -50px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.listado__mas--fin { margin-top: 30px; }
.listado__vacio {
  margin: 0;
  padding: 30px 0;
  color: #1f2124;
  text-align: center;
}
.expositores {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.expositor > a {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  padding: 10px;
}
.expositor img {
  align-self: center;
  border-radius: 10px;
  vertical-align: middle;
}
.expositor__nombre {
  margin: 0;
  color: var(--texto);
  font-family: var(--letra);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3em;
  text-align: center;
}

.catalogo__volver { margin: 3em 0 0; text-align: center; }
.boton-volver {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 100px;
  background-color: var(--oscuro);
  color: #fff;
  font-family: var(--letra);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3em;
  transition: all .3s;
}
.boton-volver:hover, .boton-volver:focus { background-color: var(--celeste); color: var(--oscuro); }

/* ---------- Ficha de expositor ---------- */

/* Cabecera: fondo #f4f4f4 con el logo del expositor en mosaico (12 % de ancho, centrado; la imagen la
   pone cada ficha en su atributo style) bajo un velo #ededE6 al 95 %. */
.ficha__cabecera {
  position: relative;
  display: flex;
  min-height: 380px;
  background: #f4f4f4 center / 12% auto repeat;
}
.ficha__cabecera::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--fondo-catalogo);
  opacity: .95;
}
.ficha__cabecera-interior {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.ficha__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20%;
}
.ficha__logo img {
  width: 160px;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
  vertical-align: middle;
}
.ficha__presentacion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 80%;
  padding: 40px;
}
.ficha__nombre {
  margin: 0;
  color: #171720;
  font-family: var(--letra);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2em;
}
.ficha__descripcion { margin: 0; }

/* Detalle: fotos (48 %) y datos (46 %) repartidos a los costados, como el original. */
.ficha__detalle { padding: 130px 0; }
.ficha__columnas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}
.ficha__fotos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 48%;
}
.ficha__foto { border-radius: 10px; }
.ficha__datos {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 20px;
  width: 46%;
}

/* Datos de contacto: en el original son dos listas independientes, una con las etiquetas y otra con
   los valores, que quedan a la par renglón por renglón. La copia conserva las dos columnas; para los
   lectores de pantalla cada valor lleva su etiqueta (dt oculto) y la columna visible de etiquetas
   queda fuera del árbol de accesibilidad. */
.ficha__etiquetas,
.ficha__valores {
  margin: 0;
  padding: 0;
  list-style: none;
  letter-spacing: -.03em;
}
.ficha__etiquetas { width: 36%; color: var(--oscuro); font-weight: 500; }
.ficha__valores { width: 50%; }
.ficha__etiquetas li,
.ficha__valor { display: flex; align-items: center; }
.ficha__etiquetas li:not(:last-child),
.ficha__valor:not(:last-child) { padding-bottom: 5px; }
.ficha__etiquetas li + li,
.ficha__valor + .ficha__valor { margin-top: 5px; }
.ficha__valor dd { min-height: 1.5em; margin: 0; }
/* El enlace (mail, sitio web) ocupa todo el renglón sin ensancharlo; su texto (span) corta renglones a
   ese ancho o, si tiene una parte sin cortes más larga, a la medida de esa parte, y se sale por la
   derecha, como en el original. */
.ficha__valor dd:has(> a) { flex: 1 1 auto; min-width: 0; }
.ficha__valor a { display: flex; width: 100%; }

.ficha__redes-titulo {
  width: 100%;
  margin: 100px 0 0;
  color: var(--oscuro);
  font-family: var(--letra);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4em;
  letter-spacing: -.03em;
}
/* Sin redes, el original igual deja la fila (vacía) de los íconos debajo del título: 20 px más. */
.ficha__redes-titulo:last-child { margin-bottom: 20px; }
/* El original deja 20 px a la izquierda de los íconos: un widget vacío (el script que ocultaba las
   redes sin enlace) ocupa el primer lugar de la fila. */
.ficha__redes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0 0 0 20px;
  padding: 0;
  list-style: none;
}
.ficha__redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39.2px;
  height: 39.2px;
  border-radius: 100px;
  background-color: var(--oscuro);
  transition: all .3s;
}
.ficha__redes svg { width: 14px; height: 14px; fill: #fff; }
.ficha__redes a:hover,
.ficha__redes a:focus,
.ficha__redes a:active {
  background-color: var(--celeste);
  opacity: .9;
  animation: empujar .3s linear;
}
.ficha__redes a:hover svg,
.ficha__redes a:focus svg,
.ficha__redes a:active svg { fill: var(--oscuro); }
@keyframes empujar {
  50% { transform: scale(.8); }
  100% { transform: scale(1); }
}

/* ---------- Pie ---------- */

.pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4em 0 1em;
  background-color: var(--fondo-pie);
  transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
}
.pie__columnas,
.pie__divisor,
.pie__copyright { width: 100%; max-width: 1200px; }
.pie__columnas { display: flex; flex-wrap: wrap; margin: 0 0 2em; }
.pie__columna { min-width: 0; padding: 10px; }
.pie__columna--logo { flex: 0 0 calc(33.333% - 4em); margin-right: 4em; }
.pie__columna--contacto {
  flex: 0 0 48.331%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.pie__columna--redes { flex: 0 0 17.974%; }
.pie__logo { display: block; width: 300px; max-width: 100%; margin: 0 0 1em; }
.pie__logo img { display: block; width: 80%; }
.pie__titulo {
  flex: 0 0 auto;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--letra-arial);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3em;
}
.pie__telefono {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .65);
  font-family: var(--letra-arial);
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}
.pie__telefono svg { flex: 0 0 auto; width: 22px; height: 22px; fill: #fff; }
.redes {
  --icono: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--icono) * 2);
  height: calc(var(--icono) * 2);
  border-radius: 50%;
  background-color: rgba(122, 126, 153, .22);
  transition: all .3s;
}
.redes a:hover { opacity: .9; }
.redes svg { width: var(--icono); height: var(--icono); fill: #fff; }
.redes a:hover svg { fill: var(--celeste); }
.pie__divisor {
  height: 0;
  margin: 2px 0 22px;
  border: 0;
  border-top: 1px solid #fff;
}
.pie__copyright {
  margin: 0;
  color: #7a7e99;
  font-family: var(--letra-arial);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

/* ---------- Escritorio ---------- */

@media (min-width: 1025px) {
  .encabezado {
    z-index: 10;
    padding: 12px 100px;
    background-image: url(../images/fondo-encabezado.jpg);
  }
}

/* ---------- Tableta ---------- */

@media (max-width: 1024px) {
  body { font-size: 15px; }
  .encabezado { padding: 1em; }
  .encabezado__logo { flex-basis: 20%; text-align: start; }
  .encabezado__logo img { width: 90%; }
  .boton--expositores { display: none; }

  .expositores { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px; }
  .boton-volver { font-size: 17px; }

  .ficha__nombre { font-size: 42px; }
  .ficha__detalle { padding: 80px 10px; }
  .ficha__fotos { width: 100%; }
  .ficha__datos { margin-top: 30px; }
  .ficha__redes-titulo { margin-top: 30px; font-size: 18px; }

  .pie { padding: 5em 1em 1em; }
  .pie__columna--logo { flex-basis: 50%; margin-right: 0; padding: 0; }
  .pie__columna--contacto, .pie__columna--redes { flex-basis: 33.33%; }
  .pie__logo img { width: 44%; }
  .pie__titulo { margin-bottom: 15px; font-size: 20px; }
  .redes { --icono: 20px; gap: 0 20px; justify-content: center; }
}

/* ---------- Teléfono ---------- */

@media (max-width: 767px) {
  body { font-size: 14px; }
  .encabezado { padding: 0 1px; }
  .encabezado__logo { flex-basis: 35%; }
  .encabezado__logo img { width: 100%; }
  .encabezado__acciones { display: none; }

  .catalogo { padding-top: 50px; padding-bottom: 50px; }
  .buscador { width: 300px; max-width: 300px; margin-bottom: 25px; }
  .expositores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .expositor > a { gap: 10px; padding: 0; }
  .expositor img { width: 155px; }
  .boton-volver { font-size: 16px; }

  .ficha__cabecera-interior { flex-wrap: wrap; }
  .ficha__logo, .ficha__presentacion { width: 100%; }
  .ficha__nombre { font-size: 32px; }
  .ficha__detalle { padding: 50px 10px; }
  .ficha__foto { border-radius: 8px; }
  .ficha__datos { width: 100%; }
  .ficha__etiquetas, .ficha__valores { width: auto; max-width: 100%; }
  .ficha__redes-titulo { margin-top: 50px; font-size: 16px; }

  .pie { padding: 1em; }
  .pie__columna { flex-basis: 100%; }
  .pie__columna--logo { text-align: center; }
  .pie__columna--contacto { justify-content: center; }
  .pie__logo { margin: 0 auto; }
  .pie__logo img { width: 50%; margin: 0 auto; }
  .pie__titulo { margin-bottom: 20px; }
  .pie__telefono { flex-direction: column; gap: 4px; text-align: center; }
  .pie__telefono svg { width: 24px; height: 24px; }
  .redes { --icono: 16px; gap: 0 16px; }
  .pie__copyright { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .buscador__resultados { animation: none; }
  .boton, .boton-volver, .redes a, .ficha__redes a { transition: none; }
  .ficha__redes a:hover, .ficha__redes a:focus, .ficha__redes a:active { animation: none; }
}
