html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
  color: #f0f0f0;
}

/* Encabezado */
header {
  position: relative;
  height: 100vh;
  background: url('https://images.pexels.com/photos/20042057/pexels-photo-20042057.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

header::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

header h1, header h3 {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3em;
  margin: 0.3em 0;
}

header h1 span {
  color: red;
}

/* Menú glassmorphism */
.glass-nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.glass-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.glass-nav a:hover {
  color: red;
}

/* Sección Bienvenida */
.section-welcome {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  text-align: center;
}

.welcome-text {
  flex: 1 1 400px;
  padding: 20px;
}

.welcome-text h2 {
  color: red;
}

.logo {
  display: inline-block;
  border: 2px solid red;
  border-radius: 50%;
  padding: 10px 20px;
  margin: 10px;
  color: red;
  font-weight: bold;
}

.welcome-image {
  flex: 1 1 400px;
  padding: 20px;
}

.welcome-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Sección Reservar */
#reservar {
  padding: 60px 20px;
  background: #111;  /* Fondo negro oscuro */
  text-align: center;
  color: #f0f0f0;
}

#reservar h2 {
  color: red;
  margin-bottom: 15px;
}

#reservar p {
  max-width: 600px;
  margin: 0 auto 20px auto;
}

/* Sección de Servicios */
#servicios {
  padding: 60px 20px;
  text-align: center;
}

#servicios h2 {
  color: red;
  margin-bottom: 40px;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.servicio-card {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-10px);
}

.servicio-card h3 {
  color: red;
  margin-top: 0;
}

.precio {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

#reservar a {
  background: red;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

/* Galería de Trabajos */
#galeria {
  padding: 60px 20px;
  background: #111;
  text-align: center;
}

#galeria h2 {
  color: red;
  margin-bottom: 40px;
}

.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.1);
}

.galeria-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

/* Sección Contacto */
#contacto {
  padding: 60px 20px;
  text-align: center;
}

#contacto h2 {
  color: red;
  margin-bottom: 15px;
}

#contacto p {
  margin: 5px 0;
}

/* Sección de Testimonios */
#testimonios {
  padding: 60px 20px;
  text-align: center;
}

#testimonios h2 {
  color: red;
  margin-bottom: 40px;
}

.testimonios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonio-card {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.testimonio-card p {
  font-style: italic;
}

.testimonio-card h4 {
  color: red;
  margin-top: 20px;
  margin-bottom: 0;
}

/* Social Icons personalizados */
.social-icons {
  background-color: #a80000;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.map-preview-container {
  position: relative;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.map-preview-container img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.map-preview-container:hover img {
  transform: scale(1.05);
}

.map-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-preview-container:hover .map-link {
  opacity: 1;
}

.map-link i {
  margin-right: 10px;
}

.social-icons a {
  font-size: 24px;
  transition: transform 0.2s;
  color: #fff;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.facebook {
  color: #036df8;
}

.whatsapp {
  color: #05f05b;
}

.telefono {
  color: #fa0404;
}

/* Botón WhatsApp fijo */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #14f767;
  color: white;
  width: 60px; /* Ancho fijo */
  height: 60px; /* Alto fijo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Botón Flotante Usuarios en Línea */
.online-users-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.online-dot {
  width: 10px;
  height: 10px;
  background-color: #25d366; /* Verde de WhatsApp */
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.5s infinite;
}

#user-count {
  font-weight: bold;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media screen and (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }

  .glass-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 20px;
  }

  .section-welcome {
    flex-direction: column;
  }
}