/* =========================================================
   SECCIONES: títulos, El Restaurante, Eventos de noche,
   botón volver arriba y detalles finos
========================================================= */

/* =========================
   TÍTULOS DE SECCIÓN
   Línea chica arriba + título grande + subtítulo normal
========================= */
.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #3E9E58;
}
.sobretitulo::before,
.sobretitulo::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
section .text-center > h1.title {
  font-family: "Lora", Georgia, serif;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-transform: none;
  color: #2b2627;
  margin: 0 0 12px;
}
section .text-center > p.beige {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  text-transform: none;
  color: #8a8580;
  opacity: 1;
}
/* Reseñas (fondo oscuro) */
.reviews .text-center > .sobretitulo {
  color: #a8e6b8;
}
.reviews .text-center > h1.title {
  color: #ffffff;
}
.reviews .text-center > p.beige {
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 767px) {
  section .text-center > h1.title {
    font-size: 34px;
  }
  section .text-center > p.beige {
    font-size: 15.5px;
  }
  .sobretitulo {
    font-size: 11px;
    letter-spacing: 3px;
  }
}

/* =========================
   EL RESTAURANTE TIPO REVISTA
========================= */
.historia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.historia-fotos {
  position: relative;
  padding: 0 60px 80px 0;
}
.historia-foto-grande {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.historia-foto-chica {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 270px;
  object-fit: cover;
  border-radius: 22px;
  border: 8px solid #faf7f2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}
.historia-sello {
  position: absolute;
  top: -36px;
  left: -36px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.historia-sello svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: sello-girar 22s linear infinite;
}
.historia-sello text {
  font-family: "Lato", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  fill: #3E9E58;
}
.historia-sello img {
  width: 56px;
  height: 56px;
}
@keyframes sello-girar {
  to { transform: rotate(360deg); }
}
.historia-texto h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 31px;
  line-height: 1.3;
  color: #2b2627;
  text-transform: none;
  margin: 0 0 16px;
}
.historia-texto h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #3E9E58;
  margin: 0 0 22px;
}
.historia-texto p {
  font-size: 16px;
  line-height: 1.85;
  color: #666;
  margin: 0 0 16px;
}
.historia-cita {
  position: relative;
  margin: 26px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid #3E9E58;
  font-family: "Kristi", cursive;
  font-size: 42px;
  line-height: 1.15;
  color: #3E9E58;
}
.historia-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #353031;
  border-bottom: 2px solid #3E9E58;
  padding-bottom: 4px;
}
.historia-link i {
  color: #3E9E58;
  transition: transform 0.25s ease;
}
.historia-link:hover,
.historia-link:focus {
  color: #3E9E58;
  text-decoration: none;
}
.historia-link:hover i {
  transform: translateX(5px);
}
@media (max-width: 991px) {
  .historia {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .historia-fotos {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .historia-fotos {
    padding: 0 28px 56px 0;
  }
  .historia-foto-grande {
    height: 320px;
    border-radius: 20px;
  }
  .historia-foto-chica {
    height: 170px;
    border-width: 6px;
    border-radius: 16px;
  }
  .historia-sello {
    top: -22px;
    left: -10px;
    width: 96px;
    height: 96px;
  }
  .historia-sello img {
    width: 40px;
    height: 40px;
  }
  .historia-texto h2 {
    font-size: 25px;
  }
  .historia-cita {
    font-size: 34px;
  }
}

/* =========================
   EVENTOS DE NOCHE
========================= */
.eventos-noche {
  position: relative;
  overflow: hidden;
  padding: 170px 0 150px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(16, 35, 26, 0) 70%, #10231a 100%),
    radial-gradient(ellipse at 18% 35%, rgba(244, 180, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(62, 158, 88, 0.22) 0%, transparent 55%),
    #10231a;
}
/* Eventos y Reseñas son oscuras: en vez de una onda, se funden con un degradado */
.reviews::before {
  top: 0;
  height: 200px;
  background: linear-gradient(to bottom, #10231a 0%, rgba(16, 35, 26, 0.6) 45%, rgba(16, 35, 26, 0) 100%);
}
.reviews > .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .reviews::before {
    height: 130px;
  }
}
/* onda arriba (la galería es blanca) */
.eventos-noche::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v30c-240 40-480 40-720 10S240 0 0 40z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Luces colgantes */
.eventos-luces {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
}
.eventos-luces .cable {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
}
.eventos-luces line {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.2;
}
.eventos-luces circle {
  fill: #ffd88a;
  filter: drop-shadow(0 0 6px rgba(255, 196, 90, 0.95));
  animation: foco-titilar 3s ease-in-out infinite;
  animation-delay: calc(var(--n) * -0.6s);
}
@keyframes foco-titilar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.eventos-noche > .container {
  position: relative;
  z-index: 1;
}
.eventos-noche .text-center > .sobretitulo {
  color: #f4c96b;
}
.eventos-noche .text-center > .sobretitulo::before {
  display: none;
}
.eventos-noche .text-center > h1.title {
  color: #ffffff;
}
.eventos-noche .text-center > p.beige {
  color: rgba(255, 255, 255, 0.7);
}
.eventos-noche .text-center > p.beige::after {
  color: #f4c96b;
  background:
    linear-gradient(#f4c96b, #f4c96b) left center / 55px 1px no-repeat,
    linear-gradient(#f4c96b, #f4c96b) right center / 55px 1px no-repeat;
}
/* Ecualizador animado */
.ecualizador {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.ecualizador i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: ecualizar 1s ease-in-out infinite;
}
.ecualizador i:nth-child(2) { animation-delay: -0.3s; }
.ecualizador i:nth-child(3) { animation-delay: -0.6s; }
.ecualizador i:nth-child(4) { animation-delay: -0.15s; }
@keyframes ecualizar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
/* Póster + tarjeta tipo entrada */
.eventos-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.eventos-poster img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 70px rgba(244, 180, 0, 0.15);
  transform: rotate(-2.5deg);
  transition: transform 0.5s ease;
}
.eventos-poster img:hover {
  transform: rotate(0) scale(1.02);
}
.evento-ticket {
  position: relative;
  display: flex;
  background: #faf7f2;
  color: #353031;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
/* muescas de la entrada */
.evento-ticket::before,
.evento-ticket::after {
  content: "";
  position: absolute;
  left: 121px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10231a;
}
.evento-ticket::before { top: -15px; }
.evento-ticket::after { bottom: -15px; }
.evento-fecha {
  flex: 0 0 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  border-radius: 22px 0 0 22px;
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
  background: linear-gradient(160deg, #4cb36a 0%, #2d7a43 100%);
  color: #ffffff;
  text-align: center;
}
.evento-fecha-dia {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
}
.evento-fecha-hora {
  font-family: "Lora", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  margin-top: 6px;
}
.evento-fecha-pm {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.evento-fecha-sub {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.85;
}
.evento-info {
  padding: 36px 38px 34px;
}
.evento-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(62, 158, 88, 0.12);
  color: #3E9E58;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.evento-info h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  color: #2b2627;
  text-transform: none;
  margin: 14px 0 12px;
}
.evento-info p {
  font-size: 15px;
  line-height: 1.75;
  color: #666;
  margin: 0 0 20px;
}
.evento-datos {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.evento-datos li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #353031;
}
.evento-datos i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(62, 158, 88, 0.12);
  color: #3E9E58;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.evento-reservar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  background: #25D366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.evento-reservar i {
  font-size: 19px;
}
.evento-reservar:hover,
.evento-reservar:focus {
  background: #1ebe5b;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}
@media (max-width: 991px) {
  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .eventos-poster {
    max-width: 380px;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .eventos-noche {
    padding: 140px 0 110px;
  }
  .eventos-noche::before {
    height: 30px;
  }
  .eventos-luces {
    top: 18px;
    height: 80px;
  }
  .evento-ticket {
    flex-direction: column;
  }
  .evento-ticket::before,
  .evento-ticket::after {
    display: none;
  }
  .evento-fecha {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 18px;
    border-radius: 22px 22px 0 0;
    border-right: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.55);
  }
  .evento-fecha-hora {
    font-size: 30px;
    margin-top: 0;
  }
  .evento-fecha-sub {
    flex-basis: 100%;
    margin-top: 0;
  }
  .evento-info {
    padding: 26px 22px 28px;
  }
  .evento-info h2 {
    font-size: 26px;
  }
  .evento-reservar {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   BOTÓN VOLVER ARRIBA
========================= */
.volver-arriba {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 998;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #3E9E58;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background 0.25s ease, color 0.25s ease;
}
.volver-arriba.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.volver-arriba:hover {
  background: #3E9E58;
  color: #ffffff;
}
html.menu-movil-abierto .volver-arriba {
  opacity: 0;
  visibility: hidden;
}

/* =========================
   DETALLES FINOS
========================= */
::selection {
  background: #3E9E58;
  color: #ffffff;
}
html {
  scrollbar-color: #3E9E58 #f0ede8;
}
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: #f0ede8;
}
::-webkit-scrollbar-thumb {
  background: #3E9E58;
  border-radius: 10px;
  border: 3px solid #f0ede8;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d7a43;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #3E9E58;
  outline-offset: 3px;
}

/* =========================
   FRANJA DE INVITACIÓN (antes "Horario de Atención")
========================= */
.franja-invitacion {
  position: relative;
  padding: 130px 0;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(14, 32, 21, 0.72), rgba(14, 32, 21, 0.78)),
    url("../img/Imagenes_restaurante/imagen_piscina.jpeg") center 60% / cover no-repeat;
  background-attachment: scroll, fixed;
}
.franja-frase {
  font-family: "Kristi", cursive;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.05;
  color: #ffffff;
  margin: 0 auto 30px;
  max-width: 900px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.franja-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}
.franja-datos li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 700;
}
.franja-datos i {
  color: #a8e6b8;
}
.franja-datos .fa-star {
  color: #f4b400;
}
.franja-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  background: #3E9E58;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(62, 158, 88, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}
.franja-btn:hover,
.franja-btn:focus {
  background: #2d7a43;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}
@media (max-width: 991px), (hover: none) {
  .franja-invitacion {
    background-attachment: scroll;
  }
}
@media (max-width: 767px) {
  .franja-invitacion {
    padding: 90px 0;
  }
  .franja-datos li {
    font-size: 13.5px;
    padding: 8px 16px;
  }
}

/* =========================
   TURISTAS: aviso de idioma, glosario tico, "We speak English"
========================= */
.aviso-idioma {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9000;
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  color: #353031;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-left: 4px solid #3E9E58;
  opacity: 0;
  transform: translate(-50%, 30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.aviso-idioma.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.aviso-idioma-emoji {
  font-size: 30px;
  animation: saludar 1.6s ease-in-out 0.4s 2;
  transform-origin: 70% 70%;
}
@keyframes saludar {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(16deg); }
  40%, 80% { transform: rotate(-8deg); }
}
.aviso-idioma-texto {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.aviso-idioma-texto strong {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
}
.aviso-idioma-texto span {
  font-size: 13px;
  color: #777;
}
.aviso-idioma-botones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.aviso-idioma-si {
  padding: 10px 18px;
  border-radius: 50px;
  background: #3E9E58;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.aviso-idioma-si:hover,
.aviso-idioma-si:focus {
  background: #2d7a43;
  color: #ffffff;
  text-decoration: none;
}
.aviso-idioma-no {
  border: 0;
  background: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}
.aviso-idioma-no:hover {
  color: #353031;
  text-decoration: underline;
}
@media (max-width: 560px) {
  .aviso-idioma {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .aviso-idioma-botones {
    flex-direction: row;
    width: 100%;
    align-items: center;
  }
  .aviso-idioma-si {
    flex: 1;
  }
}

/* Glosario: palabras subrayadas con explicación al pasar o tocar */
.glosa {
  position: relative;
  cursor: help;
  border-bottom: 2px dotted #3E9E58;
  outline: none;
}
.footer-cta-titulo .glosa {
  border-bottom-color: #a8e6b8;
}
.menu-tip {
  text-align: center;
  font-size: 13.5px;
  color: #777;
  margin: 4px 0 0;
}
.menu-tip i {
  color: #f4b400;
  margin-right: 4px;
}
.glosa-muestra {
  border-bottom: 2px dotted #3E9E58;
}

/* "We speak English" en la portada */
.hero-datos .habla-ingles {
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(62, 158, 88, 0.85);
  color: #ffffff;
  font-weight: 700;
}
.hero-datos .habla-ingles i {
  color: #ffffff;
}
.menu-item:hover,
.menu-item:focus-within {
  position: relative;
  z-index: 5;
}
/* Burbuja del glosario (la posiciona js/glosario.js para que no se salga de la pantalla) */
.glosa-burbuja {
  position: fixed;
  z-index: 9500;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 12px;
  background: #16301f;
  color: #ffffff;
  font-family: "Lato", sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.glosa-burbuja.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.glosa-burbuja::after {
  content: "";
  position: absolute;
  left: var(--flecha, 50%);
  top: 100%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #16301f;
}
.glosa-burbuja.abajo::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #16301f;
}
.glosa {
  -webkit-tap-highlight-color: transparent;
}
