* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  background: #f6f7f8;
}

:root {
  --logo-h-desktop: 68px;
  --logo-h-mobile: 60px;
  --brand: #80deea;       /* Turquesa del tema */
  --brand-dark: #00796b;  /* Turquesa oscuro */
  --ink: #0b2230;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  flex: 1;
}
.brand img {
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
header h1 {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(18px, 2vw, 24px);
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .2);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}
nav a.active {
  background: #fff;
  color: #005b6a;
}

/* Backdrop para menú móvil */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 40;
}
.nav-backdrop.show { display: block; }

/* Hamburguesa */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
}
.menu-toggle .bars {
  top: 50%;
  transform: translate(-50%, -50%);
}
.menu-toggle .bars::before {
  top: -6px;
}
.menu-toggle .bars::after {
  top: 6px;
}

/* Idioma */
.lang-switch {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
.lang-switch button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 800;
  cursor: pointer;
}
.lang-switch button.on {
  background: #fff;
  color: #005b6a;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.overlay h2, .overlay p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}
.hero-commercial {
  margin-top: 15px;
  font-weight: 700;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
.reservas-btn-hero {
  background: #fff;
  color: #005b6a;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  margin-top: 72px;
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

/* Audio */
.audio-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.audio-error {
  position: absolute;
  right: 18px;
  bottom: 64px;
  background: #fff;
  color: #b00020;
  border-left: 4px solid #b00020;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  display: none;
  z-index: 3;
}
#heroAudio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Secciones */
section {
  padding: 90px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 110px;
}
section h2 {
  margin-bottom: 28px;
}
section p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--ink);
}
section ul {
  padding-left: 24px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink);
}

/* Espacios */
.spaces {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.space-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  display: block;
  border: none;
  text-align: left;
  cursor: pointer;
}
.space-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.space-card h3 {
  padding: 12px 14px 4px;
  font-size: 1rem;
}
.space-card p {
  padding: 0 14px 14px;
  color: #555;
  font-size: .95rem;
  min-height: 3.4em;
}

/* Modal de espacios */
.space-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.space-modal.show { display: flex; }
.space-modal__dialog {
  background: #fff;
  width: min(100%, 980px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
}
.space-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}
.space-modal__header {
  padding: 22px 22px 0 22px;
}
.space-modal__header h3 {
  margin-bottom: 6px;
  color: var(--ink);
}
.space-modal__gallery {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 54px;
}
.space-modal__gallery img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.space-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brand-dark);
  background: var(--brand);
  color: #003b46;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.space-modal__arrow.left { left: 10px; }
.space-modal__arrow.right { right: 10px; }
.space-modal__footer {
  display: flex;
  justify-content: center;
  padding: 10px 22px 22px 22px;
}

/* Reservas */
.reservas-card {
  background: var(--brand);
  border: 2px solid #5fd3e6;
  box-shadow: 0 2px 0 #5fd3e6;
  border-radius: 16px;
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.reservas-card h2 {
  color: #003b46;
  margin-bottom: 10px;
}
.reservas-card p {
  color: #003b46;
}
.reservas-btn {
  background: #fff;
  color: #005b6a;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.reservas-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.reservas-legal {
  font-size: .9rem;
  margin-top: 10px;
  color: #003b46;
}

/* Contacto */
.contact-boxes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
  align-items: center;
}
.contact-box {
  background: #e0f7fa;
  border-left: 5px solid var(--brand-dark);
  padding: 15px;
  width: 90%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000;
  transition: transform .2s, box-shadow .2s;
}
.contact-box img {
  width: 40px;
  height: 40px;
}
.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

/* Footer */
footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 18px 12px;
  font-weight: 700;
}
footer .legal-links {
  margin-top: 8px;
  font-weight: 600;
}
footer .legal-links a {
  color: #003b46;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0 4px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--brand);
  padding: 12px 16px;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-wrap: wrap;
  box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.cookie-banner.show {
  display: flex;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
}
.cookie-banner a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none; /* ← antes estaba subrayado */
}
.cookie-banner button {
  background: var(--brand-dark);
  border: none;
  padding: .45rem .9rem;
  color: #fff;
  border-radius: .5rem;
  cursor: pointer;
}

/* Mapa más grande */
#ubicacion iframe {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Responsive */
@media (max-width: 1180px) {
  .spaces {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1024px) {
  .spaces {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    height: var(--logo-h-mobile);
    max-width: 20vw;
  }
  header h1 {
    font-size: clamp(16px, 5.2vw, 22px);
    white-space: nowrap;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--brand);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    z-index: 45;
  }
  nav.open {
    display: flex;
  }
  nav a {
    width: 100%;
    padding: 12px 20px;
  }
  .spaces {
    grid-template-columns: repeat(2, 1fr);
  }
  .space-card img {
    height: 150px;
  }
  #ubicacion iframe {
    height: 420px;
  }
}

/* Enlaces sin subrayado global */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
