/* ==================================================
   SONIS BODY AND MIND
   Archivo: styles.css
   Descripción: Estilos globales del sitio
   ================================================== */

/* ---------- VARIABLES DE COLOR ---------- */
:root {
  --color-primary: #815460;
  --color-secondary: #A7684A;
  --color-accent: #F8D9D5;
  --color-dark: #1C0D0A;
  --color-gray: #353535;

  --bg-light: #ffffff;
  --bg-dark: #1C0D0A;

  --text-light: #ffffff;
  --text-dark: #353535;

  --wa-bg-light: linear-gradient(135deg, #F8d9d5, #ad9783);
  --wa-bg-dark: linear-gradient(135deg, #3A3430, #1F1C1A);
  --wa-icon-light: #aa8973;
  --wa-icon-dark: #865625;
}

/* ---------- RESET BÁSICO ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- BODY ---------- */
body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  /* Changed to var(--text-color) in instruction, but using existing var */
  background-color: var(--bg-light);
  /* Changed to var(--bg-color) in instruction, but using existing var */
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.5s ease-in;
  /* Transición carga suave */
  opacity: 0;
  /* Inicialmente oculto para fade-in */
}

body.loaded {
  opacity: 1;
  /* Mostrar al cargar */
}

/* ---------- CONTENEDOR ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--color-accent);
  color: var(--text-light);
  padding: 1rem 0;
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* ================= LOGO ================= */

/* ================= LOGO ================= */

.logo {
  /* Fijar altura para evitar que la barra de navegación crezca */
  height: 75px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  /* Asegurar que el logo flote sobre otro contenido */
}

.logo img {
  height: 130px;
  /* Aumentado de 75px a 130px */
  width: auto;
  display: block;
  /* Permitir desbordamiento */
}

@media (max-width: 900px) {
  .logo {
    height: 62px;
  }

  .logo img {
    height: 100px;
    /* Aumentado de 62px */
  }
}


.logo h1 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* ================= LOGO BREATHING ================= */

.logo-breathe {
  animation: logoBreath 6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

/* Animación suave tipo respiración */
@keyframes logoBreath {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.080);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

/* Reduce movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .logo-breathe {
    animation: none;
  }
}

/* ---------- NAV ---------- */
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-dark);
}

/* ---------- BOTONES HEADER ---------- */
.header-actions button {
  margin-left: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 4px;
  background: var(--color-accent);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url("../images/masajeHero.jpg");
  /* probando imagen baner */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #fff;
  text-align: center;
  /* ← CLAVE */
  margin: 0 auto;
}

.hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Botón */
.hero .btn-primary {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* ---------- BOTONES ---------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  position: relative;
  background-image: url("../images/fondo.jpg");
  /* TU IMAGEN */
  background-size: cover;
  /* CLAVE: se adapta */
  background-position: center;
  /* CLAVE */
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  color: #fff;
}

/* Overlay oscuro para legibilidad */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* ajustable */
}

/* Contenido encima del overlay */
.about .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

/* Título */
.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Texto */
.about p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ---------- SERVICE CARD ---------- */
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  overflow: hidden;
  /* CLAVE para que la imagen respete bordes */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover general */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

/* Imagen superior */
.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom suave solo en la imagen */
.service-card:hover .service-img {
  transform: scale(1.05);
}

/* Contenido interno */
.service-card h3 {
  color: var(--color-primary);
  margin: 1.2rem 1rem 0.5rem;
}

.service-card p {
  margin: 0 1.2rem 1.2rem;
}

/* Botón alineado y con espacio */
.service-card .btn-secondary {
  margin-bottom: 1.5rem;
}


/* ---------- TERMS & CONDITIONS ---------- */
.terms {
  background: inherit;
  position: relative;
  background-image: url("../images/fondo.jpg");
  /* TU IMAGEN */
  background-size: cover;
  /* CLAVE: se adapta */
  background-position: center;
  /* CLAVE */
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  color: #fff;
}

/* Overlay oscuro para legibilidad */
.terms::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* ajustable */
}

/* Contenido encima del overlay */
.terms .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

/* Título */
.terms h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Texto */
.terms p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ===============================
   TERMS & CONDITIONS – COLUMNS
================================ */

.terms h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.terms-columns {
  max-width: 1000px;
  margin: 0 auto;
}

.terms-content {
  column-count: 2;
  column-gap: 3rem;
  text-align: left;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mobile: una sola columna */
@media (max-width: 768px) {
  .terms-content {
    column-count: 1;
  }
}


/* ================= CONTACT ================= */

.contact {
  background: var(--color-accent);
  color: #9e8282;
  padding: 4rem 0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* COLUMNA 1 */
.contact-info h3,
.contact-map h3,
.contact-form-wrapper h3 {
  margin-bottom: 1rem;
}

.hours {
  list-style: none;
  padding: 0;
}

/* COLUMNA 2 */
.contact-map iframe {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  border: none;
}

/* COLUMNA 3 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 3px rgba(129, 84, 96, 0.2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 300px;
  }
}


/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-dark);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.socials a {
  margin: 0 0.5rem;
  color: #fff;
  text-decoration: none;
}

.socials a:hover {
  color: var(--color-accent);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F8D9D5, #D4A59A);
  /* Degradado suavizado base */
  color: #fff;
  /* Icono blanco para mejor contraste */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(129, 84, 96, 0.4);
  /* Sombra color acento */
  background: linear-gradient(135deg, #D4A59A, #815460);
  /* Degradado intenso al hover */
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
  transform: scale(1.1);

}

.whatsapp-icon {
  width: 26px;
  height: 26px;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .whatsapp-float {
    background: var(--wa-bg-dark);
    color: var(--wa-icon-dark);
  }
}

.whatsapp-float.scrolling {
  animation: breathe-scroll 2.2 ease-in-out infinite;
}


/* ---------- DARK MODE ---------- */
body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-light);
}

body.dark-mode .about {
  background: var(--color-gray);
}

body.dark-mode .service-card {
  background: #2a2a2a;
  color: #fff;
}

/* ================= POPUP ================= */
/* Overlay ocupa toda la pantalla */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Popup activo */
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Contenido del popup con scroll interno */
.popup-content {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  /* CLAVE */
  overflow-y: auto;
  /* CLAVE */

  padding: 2rem;
  border-radius: 12px;

  position: relative;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.3s ease;
}

/* Animación suave */
@keyframes popupFadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Título del popup */
.popup-content h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Items */
.popup-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.popup-item:last-child {
  border-bottom: none;
}

/* Nombre tratamiento */
.popup-item h4 {
  margin-bottom: 0.5rem;
}

/* Texto */
.popup-item p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Duración + precio */
.popup-item span {
  display: block;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* Botón reservar */
.popup-item .btn-book {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.popup-item .btn-book:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* Botón cerrar */
.popup-close {
  position: absolute;
  top: 15px;
  right: 18px;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}


/* DARK MODE */
body.dark-mode .popup-content {
  background: #2a2a2a;
  color: #fff;
}

/* ---------- BOOKING BUTTON ---------- */
.btn-book {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-book:hover {
  background: var(--color-secondary);
}

/* DARK MODE */
body.dark-mode .btn-book {
  background: var(--color-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 12px;
  border: none;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}




/* ================= MOBILE NAV (HAMBURGER) ================= */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Desktop nav normal */
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Mobile */
@media (max-width: 900px) {
  .header-container {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  /* Ocultar menú por defecto en móvil */
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 1rem 0;
    display: none;
    z-index: 2000;
  }

  /* Mostrar cuando esté activo */
  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 1rem;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .terms {
    padding: 4rem 1rem;
  }

  .terms h2 {
    font-size: 2rem;
  }

  .terms p {
    font-size: 1rem;
  }
}

/* ================= GALLERY – AUTO SCROLL CONTINUO
=============================== */

.gallery {
  padding: 5rem 0;
  background: var(--color-light);
  overflow: hidden;
  /* CLAVE: oculta el desbordamiento */
  position: relative;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-primary);
}

/* Contenedor visible */
.gallery-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Oculta scrollbar pero permite scroll */
.gallery-scroll::-webkit-scrollbar {
  display: none;
}

/* Pista que se mueve (la que animamos con JS) */
.gallery-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  /* CLAVE ABSOLUTA */
  will-change: transform;
}

/* Tarjetas */
.gallery-item {
  min-width: 280px;
  max-width: 280px;
  height: 360px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  /* CLAVE */
}

.gallery-item:hover {
  transform: translateY(-8px);
}

/* Imagen */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General image rule */
img {
  max-width: 100%;
  height: auto;
  /* Maintain aspect ratio */
  display: block;
  /* Remove extra space below images */
}

/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--color-primary);
  /* Using existing var */
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  /* Using existing var */
  transform: translateY(-3px);
}

/* ================= COOKIE BANNER ================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1 1 300px;
  color: var(--text-color);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-actions button {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ================= UTILITIES ================= */

/* ================= LIGHTBOX ================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

/* ===== Animación suave de lectura ===== */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  }
}

@keyframes breathe-idle {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  }
}

@keyframes breathe-scroll {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }
}

/* ================= GALLERY VIDEO ================= */

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Opcional: efecto premium */
.gallery-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0));
  pointer-events: none;
}

.dark .gallery-video::after {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0));
}

/* ================= HEADER STICKY ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* debajo de popups */
  background: #F8D9D5;
  /* beige sólido inicial */
  backdrop-filter: blur(8px);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

/* Estado al hacer scroll */
.site-header.scrolled {
  background: rgba(245, 240, 232, 0.58);
  /* transparencia elegante */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Evita que el contenido se oculte debajo del header */
body {
  padding-top: 90px;
  /* ajusta a la altura real del header */
}

@media (max-width: 900px) {
  body {
    padding-top: 75px;
  }
}

/* ================= GALLERY NAV ================= */

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 5;
}

.gallery-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.gallery-btn:hover {
  transform: scale(1.1);
}

.gallery-btn.prev {
  left: 16px;
}

.gallery-btn.next {
  right: 16px;
}

.dark .gallery-btn {
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
}

.lightbox-content img,
.lightbox-content video {
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.lightbox-content.zoomed img,
.lightbox-content.zoomed video {
  transform: scale(1.6);
  cursor: zoom-out;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  overscroll-behavior: contain;
}

[data-i18n],
[data-i18n-html],
.popup-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-changing {
  opacity: 0;
  transform: translateY(4px);
}

/* ================= SCROLL REVEAL ANIMATION ================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  /* Movimiento más pronunciado */
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 1024px) {
  .container {
    width: 92%;
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .contact-grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .terms-columns {
    column-count: 1;
  }

  .popup-content {
    width: 95%;
    padding: 1.5rem;
  }

  /* Botones más grandes en móvil para touch */
  .btn-primary,
  .btn-secondary,
  .btn-book {
    padding: 12px 24px;
  }

  /* Galeria ajustable */
  .gallery-item {
    min-width: 240px;
    max-width: 240px;
    height: 320px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }

  .logo img {
    height: 50px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }
}