/* ============================= */
/* FUENTES */
/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Poppins:wght@400;500&family=Great+Vibes&display=swap');

/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
  transition: all 0.4s ease;
  padding: 25px 0;
}

.navbar.transparent {
  background: transparent;
}

.navbar.shrink {
  padding: 10px 0;
  background-color: #28a745;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* LOGO */
.logo-img {
  height: 150px;
  width: auto;
  border-radius: 1px;
  object-fit: contain;
  transition: transform 1s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.navbar.shrink .logo-img {
  height: 40px;
}

/* LINKS */
.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #ffd700 !important;
}

/* ICONO UBICACIÓN */
.navbar .fa-map-marker-alt {
  color: #fff;
  font-size: 18px;
  margin-right: 5px;
}

.direccion {
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo-img {
    height: 35px;
  }

  .direccion {
    display: none;
  }
}

/* ============================= */
/* HERO VIDEO */
/* ============================= */
.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* H1 */
.hero-video .overlay-text h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* ANIMACIÓN */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ============================= */
/* SERVICIOS */
/* ============================= */
#servicios {
  background: #f7f3ef;
}

/* CONTENEDOR */
.servicios-scroll {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  scrollbar-width: none;
}

.servicios-scroll::-webkit-scrollbar {
  display: none;
}

/* TARJETAS */
#servicios .card {
  flex: 0 0 calc(33.33% - 20px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* IMAGEN */
.card-img-top {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

/* TITULO */
#servicios .card-title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  margin-top: 12px;
  color: #222;
}

/* ============================= */
/* BOTONES SCROLL */
/* ============================= */
.scroll-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.scroll-btn:hover {
  background: #218838;
}

.scroll-btn.left {
  left: -40px;
}

.scroll-btn.right {
  right: -40px;
}

/* ============================= */
/* BIENVENIDA */
/* ============================= */
.welcome {
  padding: 60px 15px;
  text-align: center;
}

/* ============================= */
/* GALERÍA */
/* ============================= */
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ============================= */
/* UBICACIÓN */
/* ============================= */
#ubicacion iframe {
  width: 100%;
  max-width: 900px;
  height: 400px;
  border-radius: 12px;
  display: block;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ============================= */
/* REDES */
/* ============================= */
.social-embed {
  padding: 40px 0;
  text-align: center;
}

/* ============================= */
/* PRELOADER */
/* ============================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #33bd87;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-logo {
  width: 500px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* OCULTAR */
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

/* ============================= */
/* MEJORAS LANDING LARAVEL */
/* ============================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-video .overlay-text {
  max-width: 850px;
  padding: 0 20px;
}

.hero-video .overlay-text p {
  font-size: 1.2rem;
  margin-top: 15px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 58px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: white;
}

#galeria img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#galeria img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .hero-video .overlay-text h1 {
    font-size: 2rem;
  }

  .hero-video .overlay-text p {
    font-size: 1rem;
  }

  .hero-video .overlay-text .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .scroll-btn.left {
    left: 5px;
  }

  .scroll-btn.right {
    right: 5px;
  }

  #servicios .card {
    flex: 0 0 85%;
  }

  .card-img-top {
    height: 360px;
  }
}

/* ============================= */
/* NAVBAR TYPEWRITER EFFECT      */
/* ============================= */

.navbar-brand {
  display: flex;
  align-items: center;
}

/* Espacio y altura fijos SOLO cuando el navbar es verde */
.navbar.shrink .navbar-brand {
  width: 510px; 
  min-height: 48px; /* Bloquea la altura para evitar que la barra colapse al borrar texto */
}

/* Texto oculto cuando el navbar está grande */
.navbar-typewriter {
  display: none;
  color: #fff;
 font-family: "Oleo Script", system-ui;
  font-size: 2rem;
  
  /* Espacio vertical para que las letras cursivas no se corten */
  line-height: 1.4; 
  padding-top: 5px;
  padding-bottom: 5px;
  
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #ffd700;
  padding-right: 8px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.55);
}

/* Cuando el navbar se reduce, ocultamos el logo */
.navbar.shrink .logo-img {
  display: none !important;
}

/* Cuando el navbar se reduce, mostramos las frases */
.navbar.shrink .navbar-typewriter {
  display: inline-block;
  animation: navbarBlinkCaret 0.75s step-end infinite;
}

@keyframes navbarBlinkCaret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #ffd700;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar.shrink .navbar-brand {
    width: 260px; 
    min-height: 42px; /* Bloquea la altura en móviles */
  }

  .navbar.shrink .navbar-typewriter {
    font-size: 1.45rem; 
    max-width: 100%;
  }
}

/* ============================= */
/* PIE DE PÁGINA                 */
/* ============================= */

.footer-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 20px; /* Le di un poco más de espacio vertical (30px) para lucir el fondo */
    
    /* 1. EL FONDO ANIMADO O ESTÁTICO */
    /* Reemplaza la URL por la ruta de tu imagen o GIF en Laravel */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/fuegos-artificiales.gif');
    background-size: cover;
    background-position: center;
    
    /* 2. CAMBIO A TEXTO BLANCO */
    color: #ffffff; 
}

/* Quita el margen por defecto que traen los párrafos */
.footer-horizontal p {
    margin: 0;
    color: #ffffff; /* Texto blanco para contrastar con el fondo oscuro */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Una pequeña sombra para extra legibilidad */
}

/* ============================= */
/* FUENTE DEL CREADOR            */
/* ============================= */

.firma-creador {
    font-family: "Honk", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "MORF" 0, "SHLN" 50;
    font-size: 1.5rem;
    /* La fuente Honk es colorida por defecto, ¡así que resaltará hermoso en el fondo oscuro! */
}

/* ============================= */
/* SECCIÓN RESERVA DE CITAS      */
/* ============================= */

.reserva-section {
    background-size: cover;       /* Hace que la imagen cubra todo el espacio disponible */
    background-position: center;  /* Centra la imagen para que se vea la mejor parte */
    background-repeat: no-repeat; /* Evita que la imagen se multiplique como un mosaico */
}