/* ============================================
   RIO ESTACIÓN BRASIL — Custom Styles
   Complementary to Tailwind CSS
   ============================================ */

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.modal-open {
  overflow: hidden;
}

/* ===== GOLD LINE DIVIDERS ===== */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #F5B731, #f7c958);
  margin-top: 16px;
  border-radius: 2px;
}

.gold-line-center {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #F5B731, #f7c958);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== SCROLL REVEAL (IntersectionObserver) ===== */
.reveal {
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ===== HERO SCROLL INDICATOR (BOUNCE) ===== */
@keyframes bounce-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.scroll-indicator {
  animation: bounce-scroll 2s ease-in-out infinite;
}



/* ===== SMART VIDEO WRAPPER (9:16 Reel) ===== */
.smart-video-wrapper {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 580px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0d1b2a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.smart-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-video-wrapper .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.smart-video-wrapper .play-icon svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.smart-video-wrapper:hover .play-icon {
  opacity: 0;
}

.smart-video-wrapper:hover .play-icon svg {
  transform: scale(1.2);
}

/* ===== ROOM CARD EFFECTS ===== */
.room-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.room-card .room-image {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-image {
  transform: scale(1.08);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 61;
  width: 92%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #2E97A7;
  border-radius: 3px;
}

/* ===== NAVBAR TRANSITIONS ===== */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(27, 58, 75, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-btn {
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  opacity: 0.6;
}

.lang-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.1);
  position: relative;
}

.lang-btn.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: #F5B731;
  border-radius: 2px;
}

/* ===== GUEST COUNTER ===== */
.guest-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #2E97A7;
  color: #2E97A7;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  line-height: 1;
}

.guest-btn:hover {
  background: #2E97A7;
  color: #fff;
}

.guest-btn:active {
  transform: scale(0.9);
}

/* ===== DATE INPUTS ===== */
input[type="date"] {
  color-scheme: light;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
  padding: 5px;
  filter: invert(44%) sepia(34%) saturate(769%) hue-rotate(143deg) brightness(87%) contrast(85%); /* #2E97A7 approx */
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(66%) sepia(87%) saturate(399%) hue-rotate(352deg) brightness(101%) contrast(92%); /* #F5B731 approx */
}

/* ===== CUSTOM SCROLLBAR (Global) ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1B3A4B;
}

::-webkit-scrollbar-thumb {
  background: #2E97A7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F5B731;
}

/* ===== INFO CARD ===== */
.info-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: #F5B731;
  box-shadow: 0 8px 30px rgba(245, 183, 49, 0.1);
  transform: translateY(-3px);
}

.info-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E97A7, #1B3A4B);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ===== AMENITY CARD ===== */
.amenity-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: #2E97A7;
}

.amenity-card .amenity-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(46, 151, 167, 0.1), rgba(27, 58, 75, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.amenity-card:hover .amenity-icon {
  background: linear-gradient(135deg, rgba(46, 151, 167, 0.2), rgba(27, 58, 75, 0.1));
}

/* ===== UTILITY ===== */
.text-gradient {
  background: linear-gradient(135deg, #F5B731, #f7c958);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== MOBILE BOOKING BAR FIXED BOTTOM ===== */
@media (max-width: 1023px) {
  #reservas.mobile-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 50;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  }
}
