/* Layout: header/nav/main estructural */
/* HEADER NUEVO */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* Contenedor interno centrado */
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* Logo con imagen + texto */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-weight: 700;
  font-size: 20px;
  color: #005ba4;
}

.logo-sub {
  font-size: 13px;
  color: #777;
}

.nav-title {
  display: none;
}

/* En pantallas pequeñas podemos reducir un poco el logo */
@media (max-width: 900px) {
  .logo-img {
    height: 38px;
  }

  .logo-main {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }
}

/* En móvil (max-width: 1200px), mostrar título en header */
@media (max-width: 1200px) {
  .logo-link {
    flex: 1;
  }

  .logo {
    gap: 8px;
  }

  .logo-main {
    line-height: 1.3;
  }

  .logo-sub {
    display: none;
  }
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo-link:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

/* El link no debe alterar colores, solo quitar subrayado */
.logo-link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
  text-decoration: none;
}

/* Por si algún navegador subraya elementos internos */
.logo-link * {
  text-decoration: none;
}

.logo-link {
  display: inline-block;
  cursor: pointer;
}

/* Menú principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

/* subrayado suave al pasar el ratón */
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.main-nav a:not(.nav-cta):hover {
  color: #005ba4;
}

.main-nav a:not(.nav-cta):hover::after {
  background-color: #005ba4;
  transform: scaleX(1);
}

/* Botón de Reservas en el header */
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background-color: #005ba4;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 91, 164, 0.3);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover {
  background-color: #004580;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 91, 164, 0.4);
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* RESPONSIVE HEADER */
@media (max-width: 1200px) {
  .hamburger {
    display: flex !important;
  }

  .main-nav {
    display: none !important;
  }

  .main-nav.active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    font-size: 13px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 999;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: block;
    width: 100%;
  }

  .nav-title {
    display: none !important;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none !important;
  }

  .main-nav a:not(.nav-cta):hover {
    background-color: #f5f5f5;
  }

  .nav-cta {
    padding: 9px 18px;
    font-size: 15px;
    background-color: #005ba4;
    border-radius: 0;
    margin: 8px 16px;
    width: calc(100% - 32px);
    box-shadow: none;
  }

  .logo-text {
    display: flex !important;
  }

  .header-inner {
    padding: 10px 16px !important;
    gap: 10px !important;
  }
}

@media (max-width: 900px) {
  .nav-cta {
    font-size: 15px;
    padding: 8px 18px;
  }
}

main {
  padding-top: 90px; /* deja hueco para el header fijo */
  max-width: 1400px;
  margin: 0 auto 40px; /* centrado y con algo de margen abajo */
  padding-left: 20px;
  padding-right: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-primario {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #005ba4;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
