/* =============================================
   NAV LANDING (.nav) — usado en index.html
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(28, 43, 51, 0);
  transition: background .25s, backdrop-filter .25s;
  color: #fff;
}

.nav.solid {
  background: rgba(28, 43, 51, .85);
  backdrop-filter: blur(6px);
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}

.nav .k {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 21px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
  outline: 2px solid var(--teal);
  outline-offset: -5px;
}

.nav .wm {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 5px;
  color: #fff;
}

.nav .sub {
  font-size: 8px;
  letter-spacing: 2px;
  opacity: .7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .4px;
}

.nav-links a:hover {
  color: var(--arena);
}

.nav .cta {
  background: var(--arena);
  color: var(--noche);
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
}

.nav .cta:hover {
  background: var(--arena-dark);
  color: #fff;
}

@media (max-width: 540px) {
  .nav { padding: 10px 14px; }
  .nav .sub, .nav .wm { display: none; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.cta) { font-size: 12.5px; font-weight: 600; }
  .nav .cta { padding: 7px 12px; font-size: 11.5px; letter-spacing: .3px; }
}


/* =============================================
   NAVBAR BLOG (.navbar) — usado en blog y posts
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 1000;
  padding: 1rem 2rem;
}

.navbar.scrolled {
  background-color: var(--oscuro);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--crema);
  transition: color 0.3s;
}

.navbar-logo:hover {
  color: var(--arena-light);
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--crema);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--arena-light);
  transition: width 0.3s var(--ease-out);
}

.navbar-links a:hover::after {
  width: 100%;
}

.btn-cita {
  background-color: var(--teal) !important;
  color: var(--blanco) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.btn-cita:hover {
  background-color: var(--teal-dark) !important;
}

.btn-cita::after {
  display: none !important;
}

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

.nav-dropdown-toggle {
  font-size: 14px;
  color: var(--blanco);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-dropdown-toggle:hover { color: var(--arena-light); }
.nav-dropdown-toggle svg { transition: transform 0.3s ease; width: 10px; height: 10px; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 43, 51, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(59, 122, 122, 0.3);
  color: white !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.navbar-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--crema);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .navbar-toggle { display: flex; flex-direction: column; padding: 8px; }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: var(--oscuro);
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    display: flex;
  }

  .navbar-links.open { right: 0; }
  .navbar-links { text-align: left; align-items: flex-start; }
  .navbar-links > a { color: rgba(255, 255, 255, 0.85) !important; font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .navbar-links > .btn-cita { margin-top: 20px; border-bottom: none; text-align: center; justify-content: center; }

  .nav-dropdown { width: 100%; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-dropdown-toggle { display: flex !important; width: 100%; font-size: 1.1rem; padding: 14px 0; color: rgba(255, 255, 255, 0.85) !important; justify-content: space-between; }
  .nav-dropdown-toggle svg { width: 12px; height: 12px; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0 0 8px 0;
    min-width: auto;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu { max-height: 300px; padding: 4px 0 12px 0; transform: none; }
  .nav-dropdown-menu a { padding: 10px 0 10px 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.5) !important; white-space: normal; }
  .nav-dropdown-menu a:hover { background: transparent; color: var(--arena-light) !important; }
  .navbar-toggle span { background: white !important; }
}

@media (max-width: 480px) {
  .navbar { padding: 1rem; }
  .navbar-inner { padding: 0; }
}
