/* Custom Stylesheet - La Jirafa Premium Light Edition */

:root {
  --primary-red: #ff363f;
  --primary-gold: #c1a35f;
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --text-main: #2d3436;
  --text-muted: #636e72;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-serif: 'Roboto Slab', serif;
  --font-cursive: 'Dancing Script', cursive;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

body::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 10px;
}

/* Preloader Fix */
.preloader {
  background: #fff;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader.remove {
  opacity: 0;
  pointer-events: none;
  display: none !important;
  /* Ensure it goes away */
}

/* Navigation - Light Glassmorphism */
nav {
  height: 64px !important;
  line-height: 64px !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

nav .brand-logo {
  height: 64px !important;
  display: flex !important;
  align-items: center;
}

nav .brand-logo img {
  margin-top: 40px;
  width: 90px !important;
  transition: var(--transition);
}

nav ul a {
  height: 64px !important;
  line-height: 64px !important;
  color: var(--text-main) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  /* Ajuste para que esté un poco más arriba */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav ul a:hover,
nav ul a.active {
  color: var(--primary-gold) !important;
  background-color: transparent !important;
}

nav ul a:hover::after,
nav ul a.active::after {
  width: 70%;
}


/* Mobile Menu Premium */
.mobile-nav-premium {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  width: 300px !important;
  padding-top: 50px !important;
  border-right: 1px solid var(--glass-border) !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
  z-index: 2000 !important;
  height: 100vh;
  /* Valor alto para estar arriba de todo */
}

#sidenav-overlay {
  z-index: 1 !important;
  /* Debajo del menú pero arriba del sitio */
}

.mobile-nav-premium li {
  margin-bottom: 10px;
}

.mobile-nav-premium li a {
  color: var(--text-main) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 60px !important;
  line-height: 60px !important;
  transition: var(--transition) !important;
  padding: 0 40px !important;
}

.mobile-nav-premium li a:hover,
.mobile-nav-premium li a.active {
  color: var(--primary-gold) !important;
  background-color: rgba(212, 175, 55, 0.05) !important;
}


/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

h2 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

h5 {
  font-family: var(--font-cursive);
  color: var(--primary-gold);
  font-size: 2.2rem;
  margin-top: 0;
}

/* Slider Captions Premium & Modern Animation */
.slider .caption {
  top: 75% !important;
}

.slider .slides h5 {
  color: #fff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 3rem !important;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  /* Oculto por defecto para la animación */
  transform: translateY(30px) scale(0.95);
  filter: blur(10px);
  transition: none !important;
  /* Desactivamos transiciones de Materialize */
}

/* Animación cuando el slide está activo */
.slider li.active h5 {
  animation: premiumReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes premiumReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Segunda frase o segunda slide chiquita */
.slider li:nth-child(2) h5 {
  font-size: 2.5rem !important;
}

p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Sections */
.padding {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

.back1,
.back2 {
  background-color: var(--bg-alt);
}

.line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  width: 150px !important;
  margin: 20px auto !important;
  border-radius: 2px;
}

/* Parallax Overlays */
.parallax-container {
  min-height: 450px;
  position: relative;
}

.parallax-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Subtle darkening for readability */
  z-index: 1;
}

.parallax-container .section {
  position: relative;
  z-index: 2;
  color: #fff !important;
}

.parallax-container h3,
.parallax-container h5,
.parallax-container .white-text {
  color: #fff !important;
}

/* Menu Customization */
.tabs {
  background-color: transparent !important;
  margin-bottom: 40px;
}

.tabs .tab a {
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 1rem;
}

.tabs .tab a:hover,
.tabs .tab a.active {
  color: var(--primary-gold) !important;
  background-color: rgba(193, 163, 95, 0.05) !important;
}

.indicator {
  background-color: var(--primary-gold) !important;
}

.menu-img {
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.promo-img {
  width: 220px !important;
  height: 220px !important;
  object-fit: cover;
  border: 5px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.promo-img:hover {
  transform: scale(1.05);
  border-color: var(--primary-red);
  box-shadow: 0 15px 35px rgba(255, 54, 63, 0.25);
}

.row.valign-wrapper h6 {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Premium Gallery - Materialize Grid Based */
#galeria .row {
  margin-bottom: 0;
}

.gallery-item-wrapper {
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: all 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(193, 163, 95, 0.2);
  border-color: var(--primary-gold);
}

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

/* Premium Custom Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--text-main);
  cursor: pointer;
  background: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--primary-red);
}

/* Gallery Item Adjustments */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  /* Cambiado de zoom-in */
  transition: all 0.6s ease;
}

/* Footer */
footer.page-footer {
  margin-top: 0px !important;
  background: var(--bg-alt) !important;
  padding-top: 60px;
  color: var(--text-main);
  border-top: 1px solid var(--glass-border);
}

footer.page-footer h1,
footer.page-footer h5 {
  color: var(--primary-gold);
}

.slider .slides li .caption {
  top: 100px !important;
}

footer.page-footer .white-text {
  color: var(--text-main) !important;
}

footer.page-footer .footer-copyright {
  background: #f1f2f6 !important;
  color: var(--text-muted);
}

/* Buttons */
.btn.orange {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #a38641 100%) !important;
  border-radius: 50px;
  text-transform: none;
  font-weight: 700;
  padding: 0 35px;
  height: 50px;
  line-height: 50px;
  box-shadow: 0 10px 20px rgba(193, 163, 95, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

/* Adjustments for Slider */
.slider {
  height: auto !important;
  /* Altura total incluyendo indicadores */
}

.slider .slides {
  height: 600px !important;
}

.slider .indicators {
  bottom: 60px !important;
  z-index: 100;
}

/* Estilos unificados arriba */

.slider .indicators .indicator-item.active {
  background-color: var(--primary-gold) !important;
}

/* Social Icons Premium Styling */
.social-hover-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  transition: var(--transition);
}

.social-icon-premium {
  font-size: 3.5rem !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  color: #fff !important;
}

.social-hover-container:hover .social-icon-premium {
  transform: scale(1.1) rotate(10deg);
  background-color: var(--primary-red);
  border-color: #fff;
  box-shadow: 0 15px 35px rgba(255, 54, 63, 0.4);
}

.social-hover-container:hover h3 {
  color: var(--primary-gold);
}

@media only screen and (max-width: 992px) {
  h2 {
    font-size: 2.5rem;
  }

  .slider .slides h5 {
    font-size: 3rem !important;
  }

  .social-hover-container {
    width: 160px;
  }

  .social-icon-premium {
    width: 80px;
    height: 80px;
    font-size: 2.5rem !important;
  }

  /* Menu Tabs Mobile Adjustments */
  ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    background: transparent !important;
  }

  ul.tabs .tab {
    width: 50% !important;
    height: 48px !important;
    line-height: 48px !important;
  }

  ul.tabs .tab a {
    font-size: 0.9rem !important;
    padding: 0 5px !important;
  }

  .indicator {
    display: none !important;
    /* El indicador de Materialize suele romperse con wrap */
  }

  ul.tabs .tab a.active {
    border-bottom: 2px solid var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.1) !important;
  }
}

/* Footer Links */
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

/* Icons & Contact items alignment */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px !important;
  font-size: 1rem;
}

.contact-item i {
  background-color: var(--primary-gold);
  color: #fff !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1.1rem !important;
  box-shadow: 0 2px 6px rgba(193, 163, 95, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}

.contact-item:hover i {
  transform: translateY(-2px);
  background-color: var(--primary-red);
}

.contact-item b {
  margin-right: 5px;
  color: var(--primary-gold);
}

/* General Icons Decoration */
i.small.material-icons {
  padding: 8px;
  border: 1.5px solid var(--primary-gold);
  border-radius: 50%;
  color: var(--primary-gold);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

i.large.material-icons {
  padding: 20px;
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  background: rgba(193, 163, 95, 0.05);
  margin-bottom: 15px;
  transition: var(--transition);
}

i.large.material-icons:hover {
  background: var(--primary-gold);
  color: #fff !important;
}

/* Slider text - Menus Especiales */
.texto-slider {
  top: 5% !important;
  /* Bien arriba */
}

.texto-slider h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  /* Mucho más pequeño */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 5px;
  color: #fff;
}

.texto-slider h5 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  /* Mucho más pequeño */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 600px;
  margin: 0 auto 10px auto;
  line-height: 1.3;
  color: #f5f5f5;
}

.btn-contacto-slider {
  border-radius: 30px;
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.social-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .social-buttons-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .slider .slides {
    height: 300px !important;
  }

  .slider li.active h5 {
    font-size: 16px !important;
  }

  .slider .slides li .caption {
    top: 50px !important;
  }

  .parallax-container {
    min-height: 600px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .mu-map {
    width: 100% !important;
  }
}