/* ============ base.css (global) ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-title: 'Cormorant Garamond', serif;
  --font-text: 'Inter', sans-serif;
  --main-color: #0a3d62;
  --accent-color: #38ada9;
  --background-light: #f9f9f9;
}

body {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  color: #222;
  background-color: #f9f9f9;
  line-height: 1.7;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

body > * { overflow-x: clip; }

h2 {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--main-color);
}

h3 {
  font-family: var(--font-text);
  font-weight: 500;
}

/* ==== BARRA DE NAVEGACIÓN - ESCRITORIO ==== */
.desktop-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 90px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: 0 2rem;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo a {
  font-family: var(--font-title);
  text-decoration: none;
  color: var(--main-color);
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: 1px;
}

.desktop-nav ul {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 500;
  font-size: 1.3em;
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after {
  width: 100%;
}

/* === OCULTAR EN MÓVIL === */
@media (max-width: 1048px) {
  .desktop-nav { display: none; }
}

/* OCULTA NAV MOBILE EN ESCRITORIO */
.mobile-nav,
.mobile-menu,
.overlay { display: none; }

.hamburger { display: none; }
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

/* ===== Dropdown desktop ===== */
.nav-dropdown {
  position: relative;
}

/* Botón principal */
.btn-booknow {
  background: var(--main-color);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .6rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.4rem
}
.btn-booknow .chev {
  font-size: .85rem;
  transition: transform .2s ease;
}
.nav-dropdown:hover .btn-booknow .chev,
.nav-dropdown:focus-within .btn-booknow .chev {
  transform: rotate(180deg);
}

/* Panel dropdown */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  padding: .6rem;
  display: none;
  z-index: 50;
}

.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel {
  display: block;
}

/* Items dentro del dropdown */

.drop-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .8rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}

/* Hover: fondo más oscuro */
.drop-item:hover {
  background-color: #f0f4f8;   /* gris claro, puedes ajustar */
  color: var(--main-color);    /* mantiene la coherencia con tu tema */
}


/* Textos */
.drop-title {
  font-weight: 550;
  color: #0f172a;
  font-size: 1.3rem;
}
/* ===== Mobile accordion ===== */
.mobile-accordion { border-top: 1px solid #eee; }
.mobile-accordion-toggle {
  width: 100%;
  text-align: left;
  background: var(--main-color);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
}
.mobile-accordion-toggle .chevron { transition: transform .2s ease; }
.mobile-accordion.open .mobile-accordion-toggle .chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  margin: .4rem 0 .6rem 0;
  padding-left: .5rem;
  display: none;
}
.mobile-accordion.open .mobile-submenu { display: block; }

.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .6rem;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
}
.mobile-submenu a:hover { background: #f7f7f7; }

/* Pega el panel al botón (sin hueco) */
.dropdown-panel {
  position: absolute;
  top: 100%;           /* <- sin +10px */
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  padding: .6rem;
  display: none;
  z-index: 50;
}

/* Puente invisible para que no se pierda el hover al cruzar */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;        /* el “puente” */
}

/* Mostrar por hover/focus */
.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel,
.nav-dropdown.open > .dropdown-panel {   /* también por JS (click) */
  display: block;
}

/* Si quitaste <img>, oculta estilos del ícono */
.drop-item {
  display: grid;
  grid-template-columns: 1fr;   /* sin columna de icono */
  gap: .4rem;
  padding: .8rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

/* Quita cualquier subrayado heredado en el panel */
.dropdown-panel a::after {
  content: none !important;
}


/* Dropdown en el menú móvil */
.dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fafafa;
  border-left: 2px solid var(--main-color, #0a3d62);
  margin-left: 1rem;
  padding-left: 0.5rem;
}

.dropdown.open {
  max-height: 300px; /* suficiente para mostrar los enlaces */
  padding: 0.5rem 0;
}

.submenu-item {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.1rem;
  color: #0a3d62;
  text-decoration: none;
}

.submenu-item:hover {
  background: #f1f1f1;
}














/* ==== Efectos de Animación ==== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.3s; }



/* ==== BOTONES (reutilizables) ==== */
.button-solid {
  padding: .75rem 1.25rem;
  border-radius: 8px;
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s ease;
}
.button-solid:hover { opacity: .9; }

.button-outline {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.button-outline:hover {
  background-color: var(--main-color);
  color: white;
}

/* ==== ÍCONOS FLOTANTES ==== */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
}
.floating-icons a {
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.floating-icons a.instagram { background-color: #e4405f; }
.floating-icons a:hover { transform: scale(1.1); }

/* ==== MODAL ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
}
.modal-content h2 { color: var(--main-color); margin-bottom: 10px; }
.modal-content p { font-size: 1em; color: #333; margin-bottom: 20px; }
.close {
  position: absolute;
  top: 12px; right: 20px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
}
.close:hover { color: #000; }

/* ==== PIE DE PÁGINA ==== */
.footer {
  background-color: #000;
  color: #f5f5f5;
  padding: 3rem 2rem;
  font-family: var(--font-text);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}
.footer-left, .footer-center, .footer-right {
  flex: 1; min-width: 0;
}
.footer-left {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.footer-left p:first-child {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 0;
}
.footer h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-center ul { list-style: none; padding: 0; margin: 0; }
.footer-center ul li { margin-bottom: 0.5rem; }
.footer-center a, .footer-right a {
  position: relative;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}
.footer-center a::after, .footer-right a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0%; height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.footer-center a:hover::after, .footer-right a:hover::after { width: 100%; }

