:root {
  --background: #fcfffb;
  --pie-background: #3d3f45;
  --pie-color: #fcfffb;

  --tapa-tabla-border: #6f5a53;
  --tabla-tapa-header: #6f5a53;
  --tabla-tapa-cell: #c46d51;

  --tapa-title: #6f5a53;
  --tapa-establecemento: #c46d51;

  --menu-color: #fcfffb;
  --menu-background: #70a3b2;

  --hover-background: #6f5a53;
}

body,
html {
  background: var(--background);
}

html,
body,
p {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
}

.menu-background {
  background: var(--menu-background);
}

.menu {
  padding-top: 0.8rem;
  padding-right: 2rem;
  float: left;
  padding-bottom: 0.8rem;
  height: 4rem;
  -webkit-transition: background-color 0.5s ease-out;
  -moz-transition: background-color 0.5s ease-out;
  -o-transition: background-color 0.5s ease-out;
  transition: background-color 0.5s ease-out;
}

.menu > li {
}

.menu > li > a {
  color: var(--menu-color);
  text-transform: uppercase;
  font-weight: bold;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.menu > li > a.active,
.menu > li > a:hover,
.menu > li > a:active {
  background-color: var(--menu-color);
  color: var(--menu-background);
}

.is-stuck .menu {
  background-color: var(--menu-background);
}

.is-stuck .menu:before {
}

.is-stuck .menu > li > a {
  color: var(--menu-color);
}

.is-stuck .menu > li > a.active,
.is-stuck .menu > li > a:hover,
.is-stuck .menu > li > a:active {
  background-color: var(--menu-color);
  color: var(--menu-background);
}

.tapa__list {
}

.tapa__item {
}

.tapa__item-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  opacity: 0;
  background: var(--hover-background);
  border-radius: 6%;
  -webkit-transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
}

.tapa__item-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -1.5rem;
  /* color: #304E61; */
  color: var(--menu-color);
  font-weight: bold;
  text-align: center;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
  padding: 0.5rem;
}

.tapa__link {
  display: block;
  position: relative;
}

.tapa__link:hover .tapa__item-fade,
.tapa__link:active .tapa__item-fade {
  opacity: 0.6;
}

.tapa__link:hover .tapa__item-title,
.tapa__link:active .tapa__item-title {
  opacity: 1;
}

.tapa__img {
  border-radius: 6%;
}

.pie {
  background: var(--pie-background);
  color: var(--pie-color);
}

.pie__in-row {
  padding: 2rem 0;
}

.pie__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.pie__menu-item {
  color: var(--pie-color);
}

.pie__menu-item > a {
  color: var(--pie-color);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: bold;
}

.organizador {
}

.organizador__label {
  display: block;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.organizador__imagen {
}

.tapa-detail {
}

.tapa-detail__establecemento {
  text-align: center;
  /*font-family: "Yanone Kaffeesatz", sans-serif;*/
  font-size: 5rem;
  font-weight: bold;
  color: var(--tapa-establecemento);
}

.tapa-detail__nome {
  text-align: center;
  /*font-family: "Yanone Kaffeesatz", sans-serif;*/
  font-size: 3rem;
  font-weight: bold;
  color: var(--tapa-title);
  margin-top: 1rem;
}

.tapa-detail__descripcion {
  /*font-family: "Yanone Kaffeesatz", sans-serif;*/
  font-size: 2rem;
  font-weight: bold;
}

.tapa-detail__img-wrapper {
  position: relative;
}

.tapa-detail__prev img,
.tapa-detail__next img {
  width: 4rem;
  height: 4rem;
}

.tapa-detail__prev {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -2rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  padding-left: 0;
}

.tapa-detail__next {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -2rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  padding-right: 0;
}

.tapa-detail__prev.disabled,
.tapa-detail__next.disabled {
  opacity: 0.4;
}

.tapa-table {
  margin-top: 2rem;
  margin-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
  /*font-family: "Yanone Kaffeesatz", sans-serif;*/
  font-size: 2rem;
  font-weight: bold;
}

.tapa-table th {
  border-bottom: 2px solid var(--tapa-tabla-border);
  padding: 0.2rem 2rem;
  color: var(--tabla-tapa-header);
}

.tapa-table td {
  padding: 0.2rem 2rem;
  color: var(--tabla-tapa-cell);
}

.tapa-table th,
.tapa-table td {
  border-right: 2px solid var(--tapa-tabla-border);
}

.tapa-table th:last-child,
.tapa-table td:last-child {
  border-right: none;
}

.tapa-detail__alerxenos {
  margin: 1.5rem 0 0;
}

.tapa-detail__alerxenos-titulo {
  margin-bottom: 0.5rem;
}

.tapa-detail__alerxenos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tapa-detail__alerxeno {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--tapa-tabla-border);
  border-radius: 4px;
  cursor: help;
}

/* O chip non pode "perder" o foco: :focus non é fiable en todo o navegador,
   :focus-visible só. */
.tapa-detail__alerxeno:focus-visible {
  outline: 2px solid var(--menu-background);
  outline-offset: 2px;
}

/* Altura fixa + anchura automática: os SVG de orixe non teñen dimensións
   intrínsecas e a súa proporción varía, así que nunca se estiran. */
.tapa-detail__alerxeno-icono {
  height: 1.5rem;
  width: auto;
  max-width: 2.5rem;
  object-fit: contain;
  flex: none;
}

/* O tooltip ancla ao chip e céntrase nel. `width: max-content` fai que se
   mida ao texto legal e non ao espazo do chip (que era unha columna estreita
   ilegible). O primeiro e o último chip alíneano co seu propio borde para que
   non se saia do viewport polas beiras. */
.tapa-detail__alerxeno-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 10;
  max-width: min(20rem, 90vw);
  padding: 0.5rem 0.75rem;
  background: #0a0a0a;
  color: #fefefe;
  font-size: 0.85rem;
  line-height: 1.3;
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-in, visibility 0s linear 0.15s;
}

.tapa-detail__alerxeno:first-child .tapa-detail__alerxeno-tooltip {
  left: 0;
  transform: none;
}

.tapa-detail__alerxeno:last-child .tapa-detail__alerxeno-tooltip {
  left: auto;
  right: 0;
  transform: none;
}

/* Abre con rato e con foco (teclado; en iOS o toque dá foco ao elemento
   tabindex="0"). */
.tapa-detail__alerxeno:hover .tapa-detail__alerxeno-tooltip,
.tapa-detail__alerxeno:focus-within .tapa-detail__alerxeno-tooltip {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease-in, visibility 0s;
}

@media screen and (max-width: 39.9375em) {
  .pie__menu-item > a {
    text-transform: none;
  }

  .tapa__item-fade {
    display: none;
  }

  .tapa__item-title {
    bottom: 0;
    top: auto;
    background: var(--menu-background);
    opacity: 0.85;
    color: var(--menu-color);
    /*
        border-bottom-left-radius: 6%;
        border-bottom-right-radius: 6%;
        */
  }

  .menu {
    background-color: var(--menu-background);
    color: var(--menu-color);
    padding: 0;
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
    float: none;
    height: auto;
  }

  .menu > li {
    font-size: 0.7rem;
  }

  .menu > li > a {
    color: white;
    padding: 0.5rem;
  }

  .tapa-detail {
    margin-top: -1rem;
  }

  .tapa-detail__establecemento {
    font-size: 2.2rem;
  }

  .tapa-detail__nome {
    font-size: 1.5rem;
  }

  .tapa-detail__descripcion {
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    font-size: 1.1rem;
    color: #333333;
  }

  /* En móbil o tooltip é máis estreito, para non ocupar toda a pantalla. */
  .tapa-detail__alerxeno-tooltip {
    max-width: min(20rem, 85vw);
  }

  .tapa-table {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .tapa-table th {
    font-size: 1.5rem;
    border: none;
  }

  .tapa-table td {
    font-size: 1rem;
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    color: var(--menu-background);
    border: none;
  }

  .tapa-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .tapa-table tr {
    /*border-bottom: 3px solid #E15E47;*/
    display: block;
  }

  .tapa-table td {
    border-bottom: 1px solid #d44551;
    display: block;
    text-align: right;
    padding: 0;
    overflow: hidden;
  }

  .tapa-table td::before {
    content: attr(data-label);
    float: left;
    /*font-family: "Yanone Kaffeesatz", sans-serif;*/
    color: #d44551;
    font-size: 1.2rem;
  }

  .tapa-detail__next img,
  .tapa-detail__prev img {
    width: 3rem;
    height: 3rem;
  }
}

@media print, screen and (min-width: 40em) {
  .logo__img {
  }

  .pie__menu {
    /*text-align: right;*/
  }
}

@media screen and (min-width: 40em) and (max-width: 63.9375em) {
}

@media print, screen and (min-width: 64em) {
}

.table-premiados {
  width: 100%;
  border-collapse: collapse;
}

.table-premiados tbody th p,
.table-premiados tbody td p,
.table-premiados thead th p {
  margin: 0;
  padding: 0;
}

.table-premiados thead th {
  background: var(--menu-background);
  color: var(--menu-color);
  vertical-align: middle;
  padding: 1rem;
  font-size: 1.5rem;
}

.table-premiados tbody td,
.table-premiados tbody th {
  padding: 0.5rem 1rem;
  /*border: 1px solid #f2f2f2;*/
}

.table-premiados tbody tr:nth-child(even) td {
  background-color: #f2f2f2;
}

.table-premiados tbody th {
  background: var(--tapa-title);
  color: white;
  padding: 1rem;
}
