@keyframes heroZoom {
  from {
    transform: scale(1.1);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.dark .logo-light {
  display: none;
}

.dark .logo-dark {
  display: block;
}

@keyframes pulse-once {
  0% {
    box-shadow: 0 0 0 0 rgba(176, 139, 96, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(176, 139, 96, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(176, 139, 96, 0);
  }
}

#theme-toggle {
  animation: pulse-once 2s ease-in-out 3;
}

/* From Uiverse.io by Novaxlo */
.earth-loader {
  --watercolor: #3344c1;
  --landcolor: #7cc133;
  width: 7.5em;
  height: 7.5em;
  background-color: var(--watercolor);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    inset 0em 0.5em rgb(255, 255, 255, 0.25),
    inset 0em -0.5em rgb(0, 0, 0, 0.25);
  border: solid 0.15em white;
  animation: startround 1s;
  animation-iteration-count: 1;
}

.earth p {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.25em;
  font-size: 1.25em;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.earth-loader svg:nth-child(1) {
  position: absolute;
  bottom: -2em;
  width: 7em;
  height: auto;
  animation: round1 5s infinite linear 0.75s;
}

.earth-loader svg:nth-child(2) {
  position: absolute;
  top: -3em;
  width: 7em;
  height: auto;
  animation: round1 5s infinite linear;
}

.earth-loader svg:nth-child(3) {
  position: absolute;
  top: -2.5em;
  width: 7em;
  height: auto;
  animation: round2 5s infinite linear;
}

.earth-loader svg:nth-child(4) {
  position: absolute;
  bottom: -2.2em;
  width: 7em;
  height: auto;
  animation: round2 5s infinite linear 0.75s;
}

@keyframes startround {
  0% {
    filter: brightness(500%);
    box-shadow: none;
  }

  75% {
    filter: brightness(500%);
    box-shadow: none;
  }

  100% {
    filter: brightness(100%);
    box-shadow:
      inset 0em 0.5em rgb(255, 255, 255, 0.25),
      inset 0em -0.5em rgb(0, 0, 0, 0.25);
  }
}

@keyframes round1 {
  0% {
    left: -2em;
    opacity: 100%;
    transform: skewX(0deg) rotate(0deg);
  }

  30% {
    left: -6em;
    opacity: 100%;
    transform: skewX(-25deg) rotate(25deg);
  }

  31% {
    left: -6em;
    opacity: 0%;
    transform: skewX(-25deg) rotate(25deg);
  }

  35% {
    left: 7em;
    opacity: 0%;
    transform: skewX(25deg) rotate(-25deg);
  }

  45% {
    left: 7em;
    opacity: 100%;
    transform: skewX(25deg) rotate(-25deg);
  }

  100% {
    left: -2em;
    opacity: 100%;
    transform: skewX(0deg) rotate(0deg);
  }
}

@keyframes round2 {
  0% {
    left: 5em;
    opacity: 100%;
    transform: skewX(0deg) rotate(0deg);
  }

  75% {
    left: -7em;
    opacity: 100%;
    transform: skewX(-25deg) rotate(25deg);
  }

  76% {
    left: -7em;
    opacity: 0%;
    transform: skewX(-25deg) rotate(25deg);
  }

  77% {
    left: 8em;
    opacity: 0%;
    transform: skewX(25deg) rotate(-25deg);
  }

  80% {
    left: 8em;
    opacity: 100%;
    transform: skewX(25deg) rotate(-25deg);
  }

  100% {
    left: 5em;
    opacity: 100%;
    transform: skewX(0deg) rotate(0deg);
  }
}

:root {
  --bg: #ffffff;
  --text: #4b3f3f;
  --surface: #f6f1ee;
  --border: #e5dfdb;
  --muted: #4b5563;
  --btn-surface: #f3f4f6;
  --btn-danger: rgba(220, 38, 38, 0.20);
}

html.dark {
  --bg: #111827;
  --text: #f9fafb;
  --surface: #1f2937;
  --border: #374151;
  --muted: #d1d5db;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --btn-surface: #374151;
  --btn-danger: rgba(220, 38, 38, 0.20);
}

.dropdown-item-btn:hover {
  background-color: var(--border) !important;
}

.dropdown-item-danger:hover {
  background-color: rgba(220, 38, 38, 0.28) !important;
}

.logo a {
  color: var(--text);
  text-decoration: none;
}

.hero {
  background-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.35)),
    url("https://www.diputacionalicante.es/wp-content/uploads/2017/02/La-Romana-foto-rotonda.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 220px 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

html.dark .hero::after {
  display: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  animation: heroZoom 1.5s ease-out;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4em;
  margin-bottom: 10px;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background-color: var(--bg);
  color: var(--text);
}

.contenido-text {
  flex: 1;
  text-align: left;
}

.contenido-text h1 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--text);
}

.contenido-text p {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
}

.mapa {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.mapa iframe {
  width: 100%;
  max-width: 600px;
  height: 450px;
  border: 0;
  border-radius: 10px;
}

.glass-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #b08b60;
}

.dark .glass-button {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b08b60;
}

.glass-button.show {
  opacity: 1;
  visibility: visible;
}

html.dark footer {
  background-color: #111827 !important;
  color: #f9fafb !important;
  border-top: 1px solid #374151 !important;
}

html.dark footer .example-2 {
  background-color: transparent !important;
}

html.dark footer p {
  color: #f9fafb !important;
}

html.dark footer .icon-content a,
html.dark footer .icon-content svg {
  color: inherit;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.login-overlay.hidden {
  display: none;
}

.login-panel {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 22px;
  position: relative;
}

.login-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 14px 0;
}

.login-panel label {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 6px;
  display: block;
}

.login-panel input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.login-panel input:focus {
  border-color: #b08b60;
  box-shadow: 0 0 0 3px rgba(176, 139, 96, 0.25);
}

.login-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.login-submit {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #b08b60;
  color: #fff;
  font-weight: 800;
}

.login-cancel {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.login-close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

.faq-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-card:hover {
  transform: translateY(-2px);
  border-color: #b08b60 !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.dark .faq-card:hover {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 500;
  color: #b08b60;
  border: 1px solid rgba(176, 139, 96, 0.35);
  background: rgba(176, 139, 96, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.faq-card[open] .faq-summary::after {
  transform: rotate(45deg);
  background: rgba(176, 139, 96, 0.16);
  border-color: #b08b60;
}

.login-fancy-btn {
  background: #b08b60;
  color: #ffffff !important;
  border-color: #b08b60;
  box-shadow: 0 10px 25px rgba(176, 139, 96, 0.28);
  isolation: isolate;
  transition: all 0.35s ease;
}

.login-fancy-btn::before {
  content: "";
  position: absolute;
  width: 0;
  aspect-ratio: 1 / 1;
  left: -120%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: #8e6f4d;
  transition: all 0.7s ease;
  z-index: -1;
}

.login-fancy-btn:hover::before {
  width: 100%;
  left: 0;
  transform: translateY(-50%) scale(2.2);
}

.login-fancy-btn:hover {
  color: #ffffff !important;
  border-color: #8e6f4d;
}

.login-fancy-btn svg {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.login-fancy-btn:hover svg {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.login-fancy-btn-arrow {
  fill: currentColor;
}

.login-fancy-btn:hover .login-fancy-btn-arrow {
  fill: #8e6f4d;
}

/* EN OSCURO EL LOGIN SIGUE CON LA MISMA ESTÉTICA DORADA */
.dark .login-fancy-btn {
  background: #b08b60;
  color: #ffffff !important;
  border-color: #b08b60;
  box-shadow: 0 10px 25px rgba(176, 139, 96, 0.28);
}

.dark .login-fancy-btn::before {
  background: #8e6f4d;
}

.dark .login-fancy-btn:hover {
  border-color: #8e6f4d;
}

.dark .login-fancy-btn svg {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dark .login-fancy-btn:hover svg {
  background: rgba(255, 255, 255, 0.95);
}

.dark .login-fancy-btn:hover .login-fancy-btn-arrow {
  fill: #8e6f4d;
}

.dark .dropdown-menu {
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
}

/* BOTÓN PERFIL LOGUEADO */
.profile-user-btn,
.profile-user-btn.dropdown-toggle,
button.profile-user-btn {
  background: #b08b60 !important;
  color: #ffffff !important;
  border: 2px solid #c7a06f !important;
  box-shadow: 0 10px 25px rgba(176, 139, 96, 0.28);
  isolation: isolate;
  transition: all 0.35s ease;
}

.profile-user-btn::before,
.profile-user-btn.dropdown-toggle::before,
button.profile-user-btn::before {
  content: "";
  position: absolute;
  width: 0;
  aspect-ratio: 1 / 1;
  left: -120%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: #8e6f4d;
  transition: all 0.7s ease;
  z-index: -1;
}

.profile-user-btn:hover::before,
.profile-user-btn.dropdown-toggle:hover::before,
button.profile-user-btn:hover::before {
  width: 100%;
  left: 0;
  transform: translateY(-50%) scale(2.2);
}

.profile-user-btn:hover,
.profile-user-btn.dropdown-toggle:hover,
button.profile-user-btn:hover {
  color: #ffffff !important;
  border-color: #8e6f4d !important;
}

.profile-user-btn svg,
.profile-user-btn.dropdown-toggle svg,
button.profile-user-btn svg {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.profile-user-btn:hover svg,
.profile-user-btn.dropdown-toggle:hover svg,
button.profile-user-btn:hover svg {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.profile-user-btn img,
.profile-user-btn.dropdown-toggle img,
button.profile-user-btn img {
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* EN OSCURO EL PERFIL TAMBIÉN SE QUEDA DORADO, NO AZUL */
html.dark .profile-user-btn,
html.dark .profile-user-btn.dropdown-toggle,
html.dark button.profile-user-btn {
  background: #b08b60 !important;
  color: #ffffff !important;
  border: 2px solid #c7a06f !important;
  box-shadow: 0 10px 25px rgba(176, 139, 96, 0.28);
}

html.dark .profile-user-btn::before,
html.dark .profile-user-btn.dropdown-toggle::before,
html.dark button.profile-user-btn::before {
  background: #8e6f4d;
}

html.dark .profile-user-btn:hover,
html.dark .profile-user-btn.dropdown-toggle:hover,
html.dark button.profile-user-btn:hover {
  border-color: #8e6f4d !important;
}

html.dark .profile-user-btn svg,
html.dark .profile-user-btn.dropdown-toggle svg,
html.dark button.profile-user-btn svg {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html.dark .profile-user-btn:hover svg,
html.dark .profile-user-btn.dropdown-toggle:hover svg,
html.dark button.profile-user-btn:hover svg {
  background: rgba(255, 255, 255, 0.95);
}

html.dark .profile-user-btn:hover .login-fancy-btn-arrow,
html.dark .profile-user-btn.dropdown-toggle:hover .login-fancy-btn-arrow,
html.dark button.profile-user-btn:hover .login-fancy-btn-arrow {
  fill: #8e6f4d;
}

.gastro-card {
  transition: transform 0.5s ease;
  transform-origin: center;
}

.gastro-card:hover {
  transform: rotate(2deg) !important;
}

@media (max-width: 768px) {
  .contenido {
    flex-direction: column;
    text-align: center;
  }

  .mapa {
    justify-content: center;
  }

  .mapa iframe {
    width: 100%;
    height: 300px;
  }

  .hero-text h1 {
    font-size: 2.5em;
  }
}

/* ── Mapa MapLibre responsive ─────────────────────────────────────── */

/* Tablet (≤ 1024px) — */
@media (max-width: 1024px) {
  #map {
    height: 350px;
  }
}

/* Móvil (≤ 768px) — */
@media (max-width: 768px) {
  .contenido {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .mapa {
    justify-content: center;
    width: 100%;
  }

  .mapa iframe {
    width: 100%;
    height: 300px;
  }

  #map {
    width: 100%;
    height: 280px;
    border-radius: 12px;
  }
}

/* Móvil pequeño (≤ 480px) — */
@media (max-width: 480px) {
  #map {
    height: 220px;
    border-radius: 10px;
  }
}