@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/inter-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fuentes/inter-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;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #141A1F;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none !important;
  color: inherit;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
}

/* Carrusel */
.carrusel {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.carrusel,
.carrusel-lista {
  display: block;
  position: relative;
}

.carrusel-lista {
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.carrusel-lista.arrastrando {
  cursor: pointer;
}

.carrusel .carrusel-lista,
.carrusel .carrusel-pista {
  transform: translateZ(0);
}

.carrusel-pista {
  display: block;
  left: 0;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 0;
  width: 500%;
}

.carrusel-pista::after,
.carrusel-pista::before {
  content: "";
  display: table;
}

.carrusel-pista::after {
  clear: both;
}

.carrusel-foto {
  display: block;
  float: left;
  height: 100%;
  min-height: 1px;
  width: 20%;
}

.carrusel-foto img {
  display: block;
}

.carrusel-lista.arrastrando img {
  pointer-events: none;
}

:root {
  --primary-color: #43919D;
  --secondary-color: #ffffff;
  --text-color: #555E68;
  --background-color: #D3EAED;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 1;
}

.page-container {
  color: var(--secondary-color);
  margin: 0 auto;
  max-width: 900px;
  padding: 20px;
}

.page-container h1,
.page-container h2,
.page-container h3,
.page-container p {
  margin-bottom: 20px;
}

.page-container p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.primary-link {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.vision-container ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.vision-container li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

.organigrama-table {
  border-collapse: collapse;
  margin-bottom: 20px;
  width: 100%;
}

.organigrama-table td,
.organigrama-table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.emails-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.emails-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 48%;
}

.emails-container li {
  line-height: 1.6;
  margin-bottom: 0.5em;
}

.contacto-container p {
  margin-top: 40px;
}

.eventos-image {
  display: block;
  height: auto;
  margin: 0 auto 20px;
  max-width: 100%;
}

.trabajos-container ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.trabajos-container li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

.footer {
  color: var(--secondary-color);
  margin-top: auto;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.footer-content {
  margin-bottom: auto;
}

.footer-text {
  font-size: 14px;
  line-height: 1.2;
}

.divider-link-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

.divider {
  background-color: var(--text-color);
  flex-grow: 1;
  height: 1px;
  margin: 0 5px;
}

.link-binamia {
  color: var(--secondary-color) !important;
  margin-left: 15px !important;
  text-decoration: none;
}

.image-container {
  max-height: 450px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.image-container img {
  display: block;
  height: auto;
  width: 100%;
}

.overlay-text {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  bottom: 10px;
  box-sizing: border-box;
  color: var(--secondary-color);
  max-width: 300px;
  padding: 10px;
  position: absolute;
  right: 10px;
}

.overlay-text h3 {
  font-size: 1em;
  margin: 0 0 10px;
}

.overlay-text p {
  font-size: 0.7em;
  margin: 0;
}

.fotos-container {
  margin: 0 auto;
  max-width: 60%;
  padding: 20px;
  text-align: center;
}

.container {
  margin: 0 auto;
  width: 100%;
}

.info-section {
  background-color: var(--background-color);
  flex: 1 1;
  padding: 20px;
  width: 100%;
}

.info-section h2 {
  margin: 0 0 20px 120px;
  text-align: left;
}

.info-box h3,
.info-section h2 {
  color: var(--primary-color);
}

.info-box h3 {
  margin: 0;
  padding: 5px;
}

.info-boxes-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.info-box {
  flex: 1 1;
  margin-bottom: 20px;
  padding: 10px;
}

.info-box img {
  max-width: 100%;
  height: auto;
}

.visor-pdf {
  width: 100%;
  height: 800px;
  border: none;
}

.descargar-pdf {
  text-align: center;
  font-size: 14px;
  padding: 8px 0;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .page-container {
    max-width: 100%;
    padding: 15px;
  }

  .fotos-container {
    max-width: 100%;
    padding: 10px;
  }

  .overlay-text {
    font-size: 0.85em;
    max-width: 60%;
  }

  .info-section h2 {
    margin: 0 0 20px 20px;
  }

  .info-boxes-row {
    flex-direction: column;
  }

  .info-box {
    margin-bottom: 15px;
  }

  .organigrama-table {
    font-size: 14px;
  }

  .organigrama-table td,
  .organigrama-table th {
    padding: 6px;
  }

  .footer {
    padding: 15px;
  }

  .footer-text,
  .link-binamia {
    font-size: 12px;
  }

  h1 {
    font-size: 1.5em;
  }

  h2,
  h3,
  h4,
  h5 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 12px;
  }

  .page-container p,
  .trabajos-container li,
  .vision-container li {
    font-size: 14px;
  }

  .overlay-text {
    bottom: 6px;
    max-width: 80%;
    padding: 6px 8px;
    right: 6px;
  }

  .overlay-text h3 {
    font-size: 0.85em;
    margin-bottom: 4px;
  }

  .overlay-text p {
    font-size: 0.65em;
  }

  .info-section {
    padding: 12px;
  }

  .info-section h2 {
    font-size: 1.1em;
    margin: 0 0 15px 10px;
  }

  .emails-container {
    flex-direction: column;
  }

  .emails-container ul {
    width: 100%;
  }

  .emails-container li {
    font-size: 13px;
  }

  .contacto-container p {
    margin-top: 20px;
  }

  .organigrama-table {
    font-size: 12px;
  }

  .organigrama-table td,
  .organigrama-table th {
    padding: 5px 4px;
  }

  .footer {
    padding: 12px;
  }

  .footer-text {
    font-size: 11px;
  }

  h1 {
    font-size: 1.3em;
  }

  h2,
  h3,
  h4,
  h5 {
    font-size: 1.05em;
  }
}

/* Encabezado */
.cabecera {
  flex-grow: 1;
}

.barra {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  position: static;
  color: #fff;
  background-color: #43919D;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.barra-contenido {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 56px;
  justify-content: center;
  flex-flow: wrap;
}

.logo {
  display: block;
  width: 250px;
  height: auto;
  margin: 0 30px;
}

.menus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: auto;
}

.menu-item {
  display: flex;
  align-items: center;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0;
  border: 0;
  border-radius: 4px;
  margin: 0 20px;
  padding: 6px 8px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  min-width: 64px;
  color: inherit;
  text-align: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.boton:hover {
  background-color: #a6d7dd;
}

.boton .corto {
  display: none;
}

.separador {
  margin: 0 10px;
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .barra-contenido {
    flex-direction: column;
    padding: 8px 4px;
    gap: 4px;
  }

  .logo {
    width: 200px;
    margin: 0 0 4px 0;
  }

  .menus {
    width: 100%;
  }

  .boton {
    margin: 0 4px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .boton .largo {
    display: none;
  }

  .boton .corto {
    display: inline;
  }

  .separador {
    margin: 0 2px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 160px;
  }

  .boton {
    font-size: 0.6rem;
    padding: 4px 6px;
    min-width: unset;
  }
}

@media (orientation: landscape) {
  .barra-contenido {
    min-height: 48px;
  }
}

@media (min-width: 600px) {
  .barra-contenido {
    padding-left: 24px;
    padding-right: 24px;
    min-height: 64px;
  }
}

/* Menús desplegables */
.menu {
  position: fixed;
  z-index: 1300;
  inset: 0;
}

.menu[hidden] {
  display: none;
}

.menu-fondo {
  position: fixed;
  inset: 0;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  z-index: -1;
}

.menu-papel {
  position: absolute;
  overflow: hidden auto;
  min-width: 16px;
  min-height: 16px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 96px);
  outline: 0;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.87);
  border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.menu-lista {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: relative;
  outline: 0;
}

.menu-opcion {
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  color: inherit;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  text-decoration: none;
  min-height: 48px;
  padding: 6px 16px;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 0.875rem;
}

.menu-opcion:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

@media (hover: none) {
  .menu-opcion:hover {
    background-color: transparent;
  }
}

.menu-opcion:focus-visible {
  background-color: rgba(0, 0, 0, 0.12);
}

@media (min-width: 600px) {
  .menu-opcion {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .menu-opcion {
    font-size: 0.8rem;
  }
}

/* Efecto al hacer clic */
.onda {
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
}

.onda-circulo {
  opacity: 0;
  position: absolute;
}

.onda-circulo.visible {
  opacity: 0.3;
  transform: scale(1);
  animation: onda-entrar 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.onda-circulo.pulso {
  animation-duration: 200ms;
}

.onda-centro {
  opacity: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: currentColor;
}

.onda-centro.saliendo {
  opacity: 0;
  animation: onda-salir 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.onda-centro.latiendo {
  position: absolute;
  left: 0;
  top: 0;
  animation: onda-latir 2500ms cubic-bezier(0.4, 0, 0.2, 1) 200ms infinite;
}

@keyframes onda-entrar {
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

@keyframes onda-salir {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes onda-latir {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

/* Separadores */
.divisor {
  margin: 0;
  flex-shrink: 0;
  border-width: 0 0 thin;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.12);
}

.enlace-binamia {
  margin: 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0.01071em;
  color: #1976d2;
  text-decoration: none;
}

/* Galería */
.galeria-pagina.page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-intro {
  max-width: 800px;
  margin-bottom: 40px;
}

.galeria-parrafo {
  margin: 0 0 16px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.00938em;
  color: #ccc;
  line-height: 1.8;
}

.galeria-parrafo:last-child {
  margin: 0;
}

.galeria-grilla {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .galeria-grilla {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .galeria-grilla {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .galeria-grilla {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tarjeta {
  color: rgba(0, 0, 0, 0.87);
  border-radius: 4px;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  background-color: #1e2a32;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tarjeta-imagen {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tarjeta-contenido {
  flex-grow: 1;
  padding: 10px 14px;
}

.tarjeta-contenido:last-child {
  padding-bottom: 24px;
}

.tarjeta-texto {
  margin: 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01071em;
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Visor de la galería */
.dialogo {
  position: fixed;
  z-index: 1300;
  inset: 0;
}

.dialogo-fondo {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
  z-index: -1;
}

.dialogo-contenedor {
  height: 100%;
  outline: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialogo-papel {
  background-color: #fff;
  color: rgba(0, 0, 0, 0.87);
  border-radius: 4px;
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 32px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 64px);
  max-width: 900px;
  width: calc(100% - 64px);
}

.dialogo-titulo {
  margin: 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.0075em;
  flex: 0 0 auto;
  background-color: #1e2a32;
  color: #fff;
  padding: 8px 80px 8px 16px;
}

.dialogo-contenido {
  flex: 1 1 auto;
  overflow-y: auto;
  background-color: #141A1F;
  padding: 0 16px 16px;
  text-align: center;
  position: relative;
}

.dialogo-contenido img,
.dialogo-contenido video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 4px;
}

.visor-texto {
  margin: 24px 0 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  color: #ccc;
  text-align: left;
}

.boton-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0;
  border: 0;
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  color: #fff;
}

.boton-icono:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

@media (hover: none) {
  .boton-icono:hover {
    background-color: transparent;
  }
}

.boton-icono svg {
  -webkit-user-select: none;
  user-select: none;
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: currentColor;
  font-size: 1.5rem;
}

.visor-cerrar {
  right: 8px;
  top: 4px;
}

.visor-anterior,
.visor-siguiente {
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
}

.visor-anterior {
  left: 16px;
}

.visor-siguiente {
  right: 16px;
}

.visor-anterior:hover,
.visor-siguiente:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.visor-anterior svg,
.visor-siguiente svg {
  font-size: 2.1875rem;
}
