/* ==========================================================================
   ANXEITY — BLUEPRINT / OLED TECHNICAL SYSTEM
   Progressive Blur + Zero Hard Lines + Fixed Dropdown Clipping
   ========================================================================== */

:root {
  --bg: #030508;
  --bg-surface: #070b12;
  --card: rgba(10, 14, 22, 0.74);
  --card-hover: rgba(16, 22, 34, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(115, 197, 255, 0.35);
  --grid-line: rgba(255, 255, 255, 0.035);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --ghost-blue: #73c5ff;
  --ghost-glow: rgba(115, 197, 255, 0.25);
  --accent-coral: #ef4444;
  --accent-purple: #a855f7;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  background-position: center top;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   01. VIDEO DE FONDO Y AMBIENTACIÓN DINÁMICA
   ========================================================================== */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #030406;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.38) contrast(1.05);
  transition: opacity 0.8s ease-in-out;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(3, 4, 6, 0.45) 0%, rgba(0, 0, 0, 0.88) 85%);
  pointer-events: none;
}

/* ==========================================================================
   02. NAVBAR: 100% TRANSPARENTE ARRIBA + BLUR DEGRADADO REAL
   ========================================================================== */
#navbar-root {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
}

.navbar-wrapper {
  position: relative;
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 16px 24px;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

/* Capa de desenfoque degradado independiente para NO cortar el dropdown */
.navbar-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -25px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(
    to bottom,
    rgba(3, 5, 8, 0.88) 0%,
    rgba(3, 5, 8, 0.65) 60%,
    rgba(3, 5, 8, 0) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: linear-gradient(to bottom, black 50%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
}

.navbar-wrapper.scrolled {
  padding: 12px 24px;
}

.navbar-wrapper.scrolled::before {
  opacity: 1;
}

.navbar-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* Lado Izquierdo: Fantasma + Enlaces */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-ghost {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(115, 197, 255, 0.35));
  transition: transform 0.25s ease;
}

.nav-brand:hover .brand-ghost {
  transform: translateY(-2px) scale(1.05);
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.32rem;
  color: #ffffff;
  letter-spacing: -0.6px;
}

.brand-name span {
  color: var(--ghost-blue);
}

/* Enlaces rápidos: Limpios y sin bordes duros */
.nav-quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-quick-links::-webkit-scrollbar {
  display: none;
}

.quick-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: none !important;
  white-space: nowrap;
}

.quick-link:hover, .quick-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Lado Derecho: Botón Más */
.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.more-menu-wrapper {
  position: relative;
}

.more-options-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none !important;
  color: #ffffff;
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-options-btn:hover, .more-options-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.burger-icon span {
  display: block;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ==========================================================================
   03. MENÚ FLOTANTE BURBUJA (SIEMPRE VISIBLE Y SIN CORTES)
   ========================================================================== */
.more-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 285px;
  max-width: 90vw;
  background: rgba(10, 14, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100005;
  transform-origin: top right;
}

.more-dropdown.open {
  display: flex;
  animation: bubbleFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleFade {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.drop-item:hover, .drop-item.active {
  background: rgba(255, 255, 255, 0.06);
}

.drop-item-icon {
  font-size: 1.15rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-item strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.drop-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.drop-emergency {
  margin-top: 4px;
  padding: 8px 12px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drop-emergency span {
  color: var(--text-muted);
}

.drop-emergency strong {
  color: #f87171;
  font-size: 0.85rem;
}

/* ==========================================================================
   04. ADAPTACIÓN MÓVIL
   ========================================================================== */
@media (max-width: 680px) {
  .navbar-wrapper {
    padding: 12px 16px;
  }
  .brand-name {
    display: none;
  }
  .quick-link {
    font-size: 0.82rem;
    padding: 6px 10px;
  }
  .more-options-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .more-dropdown {
    right: 0;
    width: 265px;
  }
}

/* ==========================================================================
   05. MAIN, HERO Y COMPONENTES
   ========================================================================== */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  position: relative;
  z-index: 10;
}

.hero-center {
  text-align: center;
  margin: 0 auto;
  max-width: 820px;
}

.hero-title-center {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #ffffff;
}

.hero-lead-center {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.7;
  margin: 0 auto 30px auto;
}

.label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ghost-blue);
  margin-bottom: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  align-self: flex-start;
}

.action-btn:hover {
  background: rgba(115, 197, 255, 0.12);
  border-color: var(--ghost-blue);
  color: var(--ghost-blue);
  transform: translateY(-2px);
}

/* ==========================================================================
   06. DIRECTORIO GEOAPIFY (profesionales.html)
   ========================================================================== */
.directory-controls {
  display: flex;
  gap: 14px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.search-input-field {
  flex: 1;
  min-width: 260px;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.search-input-field:focus {
  border-color: var(--ghost-blue);
}

.manual-form-box {
  display: none;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}

.manual-form-box.open {
  display: flex;
}

#professionals-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.pro-card-modern {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  transition: all 0.25s var(--ease);
}

.pro-card-modern:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.badge-clinical {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ghost-blue);
  letter-spacing: 0.8px;
}

.pro-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 8px 0;
}

.pro-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pro-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-dist-tag, .badge-tag {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: #cbd5e1;
}

.maps-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ghost-blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

/* ==========================================================================
   07. FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 80px;
  background: rgba(3, 5, 8, 0.95);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ghost-blue);
}