/* ═══════════════════════════════════════════
   nav-dropdowns.css
   Agregar en <head> de ccp-loreto.html:
   <link rel="stylesheet" href="/static/css/sections/nav-dropdowns.css">
═══════════════════════════════════════════ */

/* ── Desktop nav — item con dropdown ─────── */
.dns-group {
  position: relative;
}

.dns-group-btn {
  background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  padding: 10px 14px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 4px;
  border-bottom: 3px solid transparent;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.dns-group-btn .caret {
  font-size: 16px;
  transition: transform .25s;
}
.dns-group-btn:hover { color: white; background: rgba(255,255,255,.06); }
.dns-group.open .dns-group-btn {
  color: var(--oro2);
  border-bottom-color: var(--oro2);
}
.dns-group.open .dns-group-btn .caret { transform: rotate(180deg); }

/* Dropdown panel */
.dns-drop {
  position: absolute; top: calc(100% + 3px); left: 0;
  background: white;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 200;
  overflow: hidden;
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dns-group.open .dns-drop {
  opacity: 1; transform: translateY(0);
  pointer-events: all;
}

/* Header del dropdown (label de grupo) */
.dns-drop-header {
  padding: 10px 16px 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #aaa;
  border-bottom: 1px solid #f0f0f0;
}

/* Items del dropdown */
.dns-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 500; color: #2a4a35;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dns-drop a:last-child { border-bottom: none; }
.dns-drop a .mi { font-size: 17px; color: var(--verde3); flex-shrink: 0; }
.dns-drop a:hover { background: var(--verde-lt); color: var(--verde); }
.dns-drop a:hover .mi { color: var(--verde); }

/* Separador dentro del dropdown */
.dns-drop-sep {
  height: 1px; background: #f0f0f0; margin: 4px 0;
}

/* Badge "Nuevo" */
.dns-badge {
  margin-left: auto;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 10px; background: var(--oro); color: var(--verde);
  letter-spacing: .3px;
}

/* Botón Directorio — destacado en el nav */
.dns-directorio {
  display: flex; align-items: center; gap: 5px;
  color: var(--oro2) !important;
  font-weight: 600 !important;
  border-bottom: 3px solid transparent;
  padding: 10px 14px;
  transition: .2s; white-space: nowrap;
}
.dns-directorio:hover { color: white !important; border-bottom-color: var(--oro2); }
.dns-directorio .mi { font-size: 15px; color: var(--oro2) !important; }

/* ── Bottom nav actualizado (5 ítems) ─────── */
/* Reemplaza el bottom-nav existente */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--verde);
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; color: rgba(255,255,255,.5);
  font-size: 10px; font-weight: 600;
  background: none; border: none; text-decoration: none;
  transition: color .2s; cursor: pointer;
}
.bnav-item .mi { font-size: 22px; }
.bnav-item:hover,
.bnav-item.active { color: white; }

/* Botón central "Ingresar" — destacado */
.bnav-item.bnav-primary {
  color: var(--oro2);
  position: relative;
}
.bnav-item.bnav-primary::before {
  content: '';
  position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--oro);
  z-index: -1;
}
.bnav-item.bnav-primary .mi { color: var(--verde); font-size: 24px; }
.bnav-item.bnav-primary span:not(.mi) { color: var(--oro2); }

/* ── Drawer — grupos colapsables ─────────── */
.drawer-group { border-bottom: 1px solid rgba(255,255,255,.06); }

.drawer-group-btn {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; color: rgba(255,255,255,.5);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  transition: color .2s;
}
.drawer-group-btn:hover { color: rgba(255,255,255,.8); }
.drawer-group-btn .mi  { font-size: 15px; transition: transform .25s; }
.drawer-group.open .drawer-group-btn .mi { transform: rotate(180deg); }
.drawer-group.open .drawer-group-btn { color: var(--oro2); }

.drawer-group-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.drawer-group.open .drawer-group-body { max-height: 500px; }

@media (min-width: 768px) {
  .bottom-nav  { display: none; }
}