/* Tipografía y colores base */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

/* Encabezado normal */
#main-header {
  background: linear-gradient(to right, #00bcd4, #4dd0e1);
  padding: 30px;
  text-align: center;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  z-index: 999;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

#logo {
  width: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Encabezado minimizado al hacer scroll */
.header-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4px 12px;
  background-color: #00bcd4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000; /* 👈 Esto asegura que esté por encima de todo */
}

.header-scrolled .header-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.header-scrolled .header-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-scrolled nav {
  grid-column: 1 / 3;
  justify-content: center;
  padding-top: 10px;
}

.header-scrolled #logo {
  width: 36px;
  margin: 0 8px 0 0;
}

.header-scrolled .header-text h1 {
  font-size: 1.1em;
  margin: 0;
  line-height: 1;
}

.header-scrolled .header-text p {
  display: none;
}

body.scrolled-padding {
  padding-top: 80px; /* Ajustá según el alto del header minimizado */
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #00bcd4, #4dd0e1);
  color: white;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

#logo {
  width: 60px;
  border-radius: 50%;
  transition: width 0.3s ease;
}

.header-text h1 {
  font-size: 1.5em;
  margin: 0;
}

.header-text p {
  display: block;
  font-size: 1em;
  margin-top: 5px;
}

.header-scrolled .header-text p {
  display: none;
}

/* Navegación */

.header-scrolled nav {
  flex: 1;
  justify-content: center;
  padding: 0;
  padding-top: 4px;
}

.header-scrolled nav a {
  font-size: 0.9em;
  padding: 2px 6px;
}

nav {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}



nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffeb3b;
}

body {
  padding-top: 210px; /* ajustá según el alto del header */
}

/* Secciones */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}
section h2 {
  color: #00bcd4;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  scroll-margin-top: 100px;
}

/* Servicios */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service {
  background-color: #fce4ec;
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.service:hover {
  transform: scale(1.03);
}
.service h3 {
  margin-top: 0;
  color: #ff4081;
  font-size: 1.3em;
}
.service p {
  font-size: 0.95em;
  line-height: 1.5;
}

/* Servicio destacado */
.destacado {
  background-color: #fff8e1; /* amarillo suave */
  border: 2px solid #ffb300; /* borde dorado */
  position: relative;
}

.destacado h3 {
  color: #ff9800; /* naranja vibrante */
}

.nuevo {
  background-color: #ffb300;
  color: white;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Botón flotante de reserva */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(to right, #2196f3, #00e676);
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.floating-button:hover {
  background: linear-gradient(to right, #0288d1, #26c6da);
  color: #ff4081;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.floating-button {
  animation: pulse 1.8s infinite;
}

/* Galeria */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gallery img {
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

.galeria-titulo {
  text-align: center;
  font-size: 2.2em;
  color: #00bcd4;
  margin-bottom: 20px;
  font-weight: bold;
}



/* Nosotros y contacto */
#nosotros p, #contacto p {
  font-size: 1em;
  line-height: 1.6;
}
.cuadros-nosotros {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.cuadro {
  background-color: #e0f7fa;
  border-left: 5px solid #00bcd4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 1;
}

/* Vista en pantallas grandes */
@media (min-width: 768px) {
  .cuadros-nosotros {
    flex-direction: row;
    justify-content: center;
  }

  .cuadro {
    max-width: 450px;
  }
}


.cuadro h3 {
  margin-top: 0;
  color: #00bcd4;
  font-size: 1.4em;
}

.cuadro p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}

/* Footer */
footer {
  background-color: #00bcd4;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: white;
  font-size: 0.9em;
}

/* Enlaces */
a {
  color: #0288d1;
  text-decoration: none;
}
a:hover {
  color: #ff4081;
}

/* Swiper galería */
.swiper {
  width: auto;
  max-width: 360px;
  margin: auto;
  position: relative;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-height: 540px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.swiper-button-next,
.swiper-button-prev {
  color: #00bcd4;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

.swiper-button-prev {
  left: -40px; /* ajustado para que no se desborde */
}

.swiper-button-next {
  right: -40px;
}


.swiper-pagination {
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #00bcd4;
}

#galeria-local {
  text-align: center;
  padding: 40px 20px;
}

.video-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding-bottom: 60px; /* igual que la galería */
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  width: auto;
  height: auto;
  max-height: 540px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: auto;
}


#galerias {
  padding: 40px 20px;
  text-align: center;
}

.galeria-titulo {
  font-size: 2.2em;
  color: #00bcd4;
  margin-bottom: 30px;
  font-weight: bold;
}

.galeria-dual {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

/* Vista en pantallas grandes */
@media (min-width: 768px) {
  .galeria-dual {
    flex-direction: row;
    align-items: flex-start;
  }

  .galeria-bloque {
    flex: 1;
    max-width: 360px;
  }
}

.galeria-bloque h3 {
  font-size: 1.4em;
  color: #00bcd4;
  margin-bottom: 15px;
}

.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: white;
  padding: 10px;
  z-index: 1001;
}

/* Optimización para móviles */
@media (max-width: 768px) {
  /* Menú hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* Encabezado fijo y compacto */
  #main-header {
    padding: 4px 12px;
    background-color: #00bcd4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

.header-text .slogan {
  display: block;
  font-size: 0.9em;
  color: white;
  text-align: center;
  margin-top: 4px;
  line-height: 1.4;
}

  .header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px 12px;
  }

  #logo {
    width: 36px;
    margin: 0 8px 0 0;
  }

  .header-text h1 {
    font-size: 1.1em;
    margin: 0;
    line-height: 1;
  }

  .header-text p {
    display: none;
  }

  nav {
    grid-column: 1 / 3;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #00bcd4;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    display: none;
  }

  nav.show {
    display: flex;
  }

  nav a {
    display: block;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 1em;
    color: white;
    font-weight: bold;
    text-decoration: none;
  }

  nav a:hover {
    color: #ffeb3b;
  }

  /* Ajuste de espacio para contenido */
  body {
    padding-top: 80px; /* altura del header compacto */
  }

  /* Sección Servicios */
  section#servicios {
    padding-top: 40px;
  }

  section#servicios h2 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #00bcd4;
    text-align: center;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 90%;
    padding: 16px;
    font-size: 1em;
  }

  .service h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #ff4081;
  }

  .service p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
  }

  /* Galería */
  .gallery img {
    width: 90%;
  }

  /* Secciones generales */
  section {
    padding: 20px 10px;
  }

  section h2 {
    margin-top: 20px;
  }

  /* Botón de llamada a la acción */
  .cta-button {
    width: 80%;
    font-size: 1em;
  }

  /* Botón flotante */
  .floating-button {
    padding: 10px 16px;
    font-size: 0.9em;
    bottom: 15px;
    right: 15px;
  }

  /* Imágenes Swiper */
  .swiper-slide img {
    max-height: 250px;
  }
}