/*
 * Kerizara
 *
 * El diseño del sitio anterior (Joomla con la plantilla StoreFront de
 * Gavick y los retoques de su override.css): mismos colores, medidas,
 * tamaños de letra que crecen con la ventana y puntos de corte (1170, 1040,
 * 840, 600 y 400 px), sin jQuery, sin Bootstrap y sin las fuentes de Font
 * Awesome: los iconos son SVG, dentro de la página o como máscara.
 *
 * Las dos tipografías venían de Google Fonts, solo en su peso normal; van
 * en el propio sitio, igual: las negritas las sigue poniendo el navegador.
 */

@font-face {
  font-family: 'Encode Sans Expanded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/encode-sans-expanded-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/kalam-latin.woff2) format('woff2');
}

:root {
  --morado: #5d1774;
  --verde: #72a326;
  --naranja: #d59019;
  --texto: #666;
  --oscuro: #1b1d1f;
  --letra: 'Encode Sans Expanded', Arial, sans-serif;
  --titulos: 'Kalam', Arial, sans-serif;
  --pagina: 1170px;
  --margen: 0px;
  --barra: 47px;
  --nav: 56px;
}

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

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--texto);
  font-family: var(--letra);
  font-size: calc(12px + 0.2vh + 0.2vw);
  line-height: 1.5;
  overflow-wrap: break-word;
}

a {
  color: var(--verde);
  text-decoration: none;
  transition: color 0.2s linear;
}

a:hover,
a:focus {
  color: var(--morado);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: normal;
}

p {
  margin: 0 0 1em;
}

strong,
b {
  font-weight: 600;
}

img,
svg {
  max-width: 100%;
}

svg {
  fill: currentColor;
}

.contenedor {
  width: 100%;
  max-width: var(--pagina);
  margin: 0 auto;
  padding: 0 var(--margen);
}

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

.saltar {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--morado);
  color: #fff;
}

.saltar:focus {
  top: 10px;
  color: #fff;
}

/* ----------------------------------------------------------------------
 * Cabecera: fija arriba, con la barra blanca de los idiomas, la morada
 * del menú y el logotipo por encima de las dos
 * ---------------------------------------------------------------------- */

.cabecera {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

.barra {
  height: var(--barra);
  background: rgba(255, 255, 255, 0.8);
}

.idiomas {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 34px;
}

.idiomas li {
  margin-left: 2px;
}

.idiomas a {
  padding: 3px 10px;
  background: #666;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.idiomas a:hover,
.idiomas a:focus,
.idiomas a[aria-current] {
  background: #000;
  color: #eee;
}

.navegacion {
  height: var(--nav);
  background: var(--morado);
  box-shadow: 0 0 3px 0 #000;
}

.navegacion .contenedor {
  display: flex;
  align-items: flex-start;
  height: 100%;
}

.logo {
  position: relative;
  z-index: 2;
  flex: none;
  width: 201px;
  height: 133px;
  margin: -35px auto 0 0;
  border: 2px solid var(--morado);
  background: #fff;
  box-shadow: 5px 5px 5px 0 #000;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.menu > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  height: 55px;
  padding: 0 15px;
  color: #fff;
  font-family: var(--titulos);
  font-size: 20px;
  line-height: 55px;
}

.menu li:first-child a {
  padding-left: 0;
}

.menu li:last-child a {
  padding-right: 0;
}

.menu a:hover,
.menu a:focus,
.menu a.activo {
  color: #000;
}

.vermenu,
.botonmenu {
  display: none;
}

/* ----------------------------------------------------------------------
 * Cabecera de cada página: la foto (a tres cuartos de la ventana en la
 * portada, con la flecha que invita a bajar) y las migas
 * ---------------------------------------------------------------------- */

.imagenportada {
  position: relative;
}

.imagenportada img {
  display: block;
  width: 100%;
  height: 75vh;
  object-fit: cover;
}

.flecha {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  line-height: 1;
  animation: flecha 2s ease-out infinite;
}

.flecha svg {
  width: 41px;
  height: 64px;
}

@keyframes flecha {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flecha {
    animation: none;
  }
}

.imagencabecera img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.migas {
  border-bottom: 1px solid #e5e5e5;
}

.migas ol {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
  height: 50px;
  color: var(--oscuro);
  font-size: 13px;
  line-height: 50px;
}

.migas li + li::before {
  content: '/';
  display: inline-block;
  width: 22px;
  color: #ccc;
  font-size: 12px;
  text-align: center;
}

.migas a {
  color: #999;
}

.migas a:hover,
.migas a:focus {
  color: var(--verde);
}

/* ----------------------------------------------------------------------
 * Texto
 * ---------------------------------------------------------------------- */

.texto {
  margin-top: 30px;
  padding-bottom: 60px;
}

.portada .texto {
  margin-top: 36px;
  padding-bottom: 24px;
  text-align: center;
}

.titular {
  margin-bottom: 0.6em;
  padding: 0.7em 0 0.3em;
  border-bottom: 2px solid var(--verde);
  color: var(--morado);
  font-size: calc(15px + 0.6vh + 0.6vw);
  line-height: 1;
}

.portada .titular {
  margin-bottom: 30px;
  font-size: 2em;
}

.texto h2 {
  margin-bottom: 0.6em;
  padding: 0.7em 0 0.3em;
  border-bottom: 2px solid var(--verde);
  color: var(--morado);
  font-size: calc(15px + 0.6vh + 0.6vw);
  line-height: 1;
}

.texto h3 {
  margin: 1.5em 0 0.5em;
  color: var(--verde);
  font-size: calc(14px + 0.45vh + 0.45vw);
  line-height: 1;
}

.texto h4 {
  margin: 1.5em 0 0.5em;
  color: var(--oscuro);
  font-size: 1.1em;
  line-height: 1.2;
}

.texto ul {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}

.texto li {
  position: relative;
  padding: 2px 0 2px 32px;
  line-height: 1.3;
}

/* La viñeta: el chevron de Font Awesome, en morado */
.texto li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 8px;
  width: 0.75em;
  height: 0.75em;
  background: var(--morado);
  -webkit-mask: url(/svg/chevron.svg) center / contain no-repeat;
  mask: url(/svg/chevron.svg) center / contain no-repeat;
}

/* Las tarifas, en recuadros; el precio, un poco separado */
.recuadro {
  margin: 36px 0;
  padding: 15px 20px;
  border: 1px solid #e5e5e5;
}

.recuadro span {
  margin-left: 1.5em;
  white-space: nowrap;
}

/* ----------------------------------------------------------------------
 * Experiencias: el listado, de dos en dos, y la foto de cada una
 * ---------------------------------------------------------------------- */

.listado .titular {
  margin-bottom: 10px;
  padding: 0;
  border: none;
  color: var(--oscuro);
  font-size: 44px;
  line-height: 1.2;
}

.experiencias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.experiencias article {
  padding-top: 20px;
}

/* Con los 10 px que la plantilla daba a la cabecera de cada artículo */
.experiencias h2 {
  margin-bottom: calc(0.6em + 10px);
  padding: 0.7em 0 0.3em;
  font-size: 28px;
}

.experiencias h2 a {
  color: var(--oscuro);
}

.experiencias h2 a:hover,
.experiencias h2 a:focus {
  color: var(--verde);
}

.experiencias .foto img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.experiencias article > p {
  margin: 0;
  text-align: justify;
}

.experiencias .leermas {
  margin: 10px 0 16px;
}

.leermas a {
  display: inline-block;
  margin: 0 5px 2px 2px;
  padding: 0 24px;
  border: 1px solid #eee;
  background: #eee;
  color: var(--oscuro);
  font-size: 12px;
  font-weight: bold;
  line-height: 38px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.leermas a:hover,
.leermas a:focus {
  border-color: var(--verde);
  background: var(--verde);
  color: #fff;
}

.fotoexperiencia {
  margin: 0 0 40px;
}

.fotoexperiencia img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------------
 * Galería y visor
 * ---------------------------------------------------------------------- */

.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 17px 0 0;
  list-style: none;
}

.texto .galeria li {
  width: 25%;
  padding: 0;
}

.texto .galeria li::before {
  content: none;
}

.galeria a {
  display: block;
  margin: 0 4px 5px 0;
  transition: opacity 0.5s ease;
}

.galeria a:hover,
.galeria a:focus {
  opacity: 0.7;
}

/* Movida 2 px, como en sigplus */
.galeria img {
  display: block;
  position: relative;
  top: 2px;
  left: 2px;
  width: 100%;
  height: auto;
}

.visor {
  width: 90vw;
  max-width: none;
  height: 90vh;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.visor::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.visor figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}

.visor img {
  max-height: calc(100% - 40px);
  border: 6px solid #fff;
  background: #fff;
}

.visor figcaption {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

.visor button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
}

.visor button::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  background: currentColor;
  -webkit-mask: url(/svg/chevron.svg) center / contain no-repeat;
  mask: url(/svg/chevron.svg) center / contain no-repeat;
}

.visor button:hover,
.visor button:focus-visible {
  background: var(--morado);
}

.visor .anterior {
  top: calc(50% - 24px);
  left: 0;
}

.visor .anterior::before {
  transform: scaleX(-1);
}

.visor .siguiente {
  top: calc(50% - 24px);
  right: 0;
}

.visor .cerrar {
  top: 0;
  right: 0;
}

.visor .cerrar::before,
.visor .cerrar::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 12px;
  width: 24px;
  height: 2px;
  margin: 0;
  background: currentColor;
  -webkit-mask: none;
  mask: none;
  transform: rotate(45deg);
}

.visor .cerrar::after {
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------------
 * Formulario de reserva
 * ---------------------------------------------------------------------- */

.reserva {
  margin-top: 40px;
}

.reserva .columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4%;
}

.reserva p {
  margin: 0 0 10px;
}

.reserva label {
  display: block;
  margin-bottom: 2px;
  color: #444;
  font-size: 14px;
}

.reserva input:not([type=checkbox]),
.reserva select,
.reserva textarea {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 14px;
}

.reserva textarea {
  height: 150px;
  padding: 10px 12px;
  resize: none;
}

.reserva input:focus,
.reserva select:focus,
.reserva textarea:focus {
  border-color: var(--verde);
  outline: none;
}

.reserva .acepto {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 20px;
}

.reserva .acepto input {
  margin: 5px 0 0;
  accent-color: var(--verde);
}

.reserva .acepto label {
  margin: 0;
  font-size: inherit;
  text-transform: uppercase;
}

.reserva button {
  padding: 12px 20px;
  border: none;
  background: var(--verde);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.reserva button:hover,
.reserva button:focus {
  background: var(--morado);
}

.reserva button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.reserva .error {
  color: #c00;
}

.trampa {
  position: absolute;
  left: -9999px;
}

.gracias {
  padding: 20px;
  border: 1px solid var(--verde);
  color: var(--oscuro);
}

/* ----------------------------------------------------------------------
 * Pie: la franja de la reserva, dónde estamos, el mapa y los enlaces
 * ---------------------------------------------------------------------- */

.franjareserva {
  padding: 20px 0;
  background: var(--verde);
  text-align: center;
}

.franjareserva p {
  margin: 0;
  font-size: 1.3em;
  line-height: 1.6;
}

.franjareserva a {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 50px;
  border-radius: 10px;
  background: var(--morado);
  color: #fff;
  transition: all 300ms linear;
}

.franjareserva a:hover,
.franjareserva a:focus {
  background: var(--naranja);
  color: #000;
}

.donde {
  padding-top: 60px;
  background: #eee;
  text-align: center;
}

.donde h2 {
  padding-bottom: 20px;
  color: var(--verde);
  font-size: 1.8em;
  font-weight: bold;
  line-height: 2;
}

.donde p {
  margin: 0;
  padding-bottom: 1em;
  color: #888;
  line-height: 1.6;
}

.donde a {
  color: #888;
}

.donde a:hover,
.donde a:focus {
  color: var(--morado);
}

.mapa img {
  display: block;
  width: 100%;
  height: auto;
}

.pie {
  padding: 10px 0;
  background: #000;
  color: #ddd;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.pie .contenedor {
  padding: 10px;
}

.pie ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.pie li {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 0;
}

.pie p {
  margin: 0;
  color: #ccc;
  line-height: 24px;
}

.pie a {
  color: #fff;
}

.pie a:hover,
.pie a:focus {
  color: var(--naranja);
}

/* ----------------------------------------------------------------------
 * Puntos de corte de la plantilla
 * ---------------------------------------------------------------------- */

@media (max-width: 1170px) {
  :root {
    --margen: 10px;
  }
}

@media (max-width: 1040px) {
  :root {
    --margen: 15px;
    --nav: 44px;
  }

  .logo {
    width: 157px;
    height: 104px;
    margin-top: -29px;
  }

  /* El menú se abre con el botón; la plantilla usaba un <select> */
  .menu {
    margin-left: auto;
  }

  .botonmenu {
    display: block;
    width: 44px;
    height: 44px;
    padding: 6px;
    color: #fff;
    cursor: pointer;
  }

  .botonmenu svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .menu > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 0 0 10px;
    background: var(--morado);
    box-shadow: 0 8px 8px -4px rgba(0, 0, 0, 0.3);
  }

  .navegacion .contenedor {
    position: relative;
  }

  .navegacion {
    position: relative;
  }

  .vermenu:checked ~ ul {
    display: flex;
  }

  .menu li a,
  .menu li:first-child a,
  .menu li:last-child a {
    height: auto;
    padding: 8px var(--margen) 8px 190px;
    line-height: 1.3;
    text-align: right;
  }

  .franjareserva,
  .donde {
    font-size: 14px;
  }

  .donde {
    padding: 0 25px;
  }

  .donde h2 {
    padding: 0 10px 20px;
  }

  .donde p {
    padding-bottom: 14px;
  }
}

@media (max-width: 840px) {
  :root {
    --margen: 20px;
  }

  .experiencias {
    column-gap: 30px;
  }
}

@media (max-width: 600px) {
  .titular,
  .texto h2 {
    font-size: 24px;
  }

  .portada .titular {
    font-size: 24px;
  }

  .migas ol {
    height: 36px;
    line-height: 36px;
  }

  .experiencias,
  .reserva .columnas {
    grid-template-columns: 1fr;
  }

  .texto .galeria li {
    width: 50%;
  }

  .listado .titular {
    font-size: 28px;
  }

  /* La plantilla estrechaba estos bloques en el móvil */
  .franjareserva p {
    max-width: 260px;
    margin: 0 auto;
  }

  .donde .contenedor {
    max-width: 300px;
    padding: 0;
  }

  .donde p {
    padding: 0 20px 14px;
  }
}

@media (max-width: 400px) {
  :root {
    --barra: 65px;
  }

  .logo {
    margin-top: -25px;
  }
}
