/* ─── Base & Utilities ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─── Header Scroll State ─── */
#header.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-title {
  transition: color 0.3s ease;
}

.header-sub {
  transition: color 0.3s ease;
}

/* ─── Nav Links ─── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #14b8a6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active::after {
  width: 60%;
}

/* ─── Mobile Menu ─── */
#mobile-menu {
  animation: slideDown 0.4s ease-out;
}

.mobile-link {
  transition: all 0.3s ease;
}

.mobile-link:hover {
  padding-left: 12px;
}

/* ─── Hero ─── */
#inicio {
  position: relative;
}

/* ─── Cart Cards ─── */
#carta .space-y-5 > div:hover {
  background: linear-gradient(to right, rgba(20, 184, 166, 0.03), transparent);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  transition: all 0.3s ease;
}

#carta .space-y-5 > div h4 {
  position: relative;
}

#carta .space-y-5 > div:hover h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #14b8a6, transparent);
  border-radius: 1px;
}

/* ─── Gallery ─── */
#galeria .col-span-2 {
  grid-column: span 2;
}

#galeria .rounded-2xl {
  height: 200px;
}

#galeria .col-span-2 {
  height: 420px;
}

@media (max-width: 767px) {
  #galeria .col-span-2 {
    grid-column: span 1;
    height: 250px;
  }
  #galeria .rounded-2xl {
    height: 180px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #galeria .rounded-2xl {
    height: 220px;
  }
}

/* ─── Testimonial Cards ─── */
#opiniones .bg-white\/5 {
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

#opiniones .bg-white\/5:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(20, 184, 166, 0.1);
}

/* ─── Form ─── */
#reservation-form input:focus,
#reservation-form select:focus,
#reservation-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

#reservation-form input::placeholder,
#reservation-form textarea::placeholder {
  color: #94a3b8;
}

/* ─── Date input styling ─── */
input[type="date"] {
  color-scheme: light;
}

/* ─── CTA Section ─── */
#contacto ~ section {
  position: relative;
}

/* ─── Footer ─── */
footer a {
  text-decoration: none;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

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

/* ─── Print ─── */
@media print {
  header, #mobile-menu, .reveal { display: none; }
  body { color: #000; background: #fff; }
}
