/* ───────────────────────────────────────────────
   Módulo Pronto · Navegación (dropdowns + menú móvil)
   Versión piel ATELIER (sage/cream/cobre + Fraunces).
   Se inyecta con nav.js. Reutiliza .navbar/.nav-links/
   .nav-logo/.nav-actions/.nav-cta de styles.css.
   ⚠️ A PROPÓSITO NO se portaron los bloques del master
   que retocan el hero (.hero:not(.hero-compact) etc.):
   el hero de Atelier es INTOCABLE.
   ─────────────────────────────────────────────── */

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--sage-deepest, #1a2618);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

/* ── Dropdown (desktop) ── */
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-chev { transition: transform .25s ease; opacity: .9; }
.nav-dd:hover .nav-chev { transform: rotate(180deg); }

/* puente invisible para que el hover no se corte al bajar al submenú */
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }

.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white, #fff);
  border: 1px solid var(--border, #d4cfbf);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(26, 38, 24, .16);
  padding: 10px;
  min-width: 234px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 1200;
}
.nav-dd:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub li { margin: 0; }
/* el subrayado del link activo del navbar Atelier no aplica dentro del submenú */
.nav-sub a::after { display: none; }
.nav-sub li::before { display: none; }
.nav-sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--sage-deepest, #1a2618);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-sub a:hover { background: var(--sage-soft, #e4ead9); color: var(--accent, #b14d2e); }

/* ── Menú móvil (overlay) — estructura del master, vestida de Atelier ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(to left, var(--sage-bg, #d8e1cd) 30%, #ecf0e0 100%);
  display: flex;
  flex-direction: column;
  padding: 78px 26px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s .3s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.mm-close {
  position: absolute; top: 20px; right: 22px;
  background: none; border: none; font-size: 30px; line-height: 1;
  color: var(--sage-deepest, #1a2618); cursor: pointer;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mobile-menu a {
  display: block; padding: 12px 8px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 80;
  font-size: 26px;
  color: var(--sage-deepest, #1a2618); text-decoration: none;
}
.mm-group {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #b14d2e);
  padding: 18px 8px 4px;
}
.mobile-menu a.mm-sub { font-family: 'Manrope', sans-serif; font-size: 16px; padding: 10px 8px 10px 20px; color: var(--text-soft, #4a5a47); }
.mm-cta {
  margin-top: 26px; background: var(--sage-deep, #2a3e2a); color: var(--cream, #faf8f1) !important;
  text-align: center; border-radius: 999px;
  font-family: 'Manrope', sans-serif !important; font-weight: 600 !important;
  font-size: 16px !important; padding: 16px !important;
}

/* ── Franja de confianza (debajo del hero) ── */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 36px;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
  background: var(--sage-deep, #2a3e2a);
}
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 14px;
  color: rgba(250, 248, 241, .92);
}
.trust-item strong { font-weight: 700; color: var(--cream, #faf8f1); }
.trust-item .ti-star { color: #f5a623; font-weight: 700; }
.trust-sep { width: 1px; height: 18px; background: rgba(250, 248, 241, .25); }
@media (max-width: 700px) { .trust-sep { display: none; } .trust-strip { gap: 10px 20px; padding: 18px 20px; } .trust-item { font-size: 13px; } }

/* ── Responsive nav ── */
@media (min-width: 861px) {
  .navbar .nav-links { display: flex !important; }
  .nav-burger { display: none !important; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .navbar .nav-links { gap: 20px !important; }
  .nav-cta { padding: 10px 18px !important; font-size: 14px !important; }
  .nav-phone { padding: 10px 18px !important; font-size: 14px !important; }
}
@media (max-width: 860px) {
  .navbar .nav-links { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-phone { display: none; }   /* en móvil queda logo + CTA (como el Atelier original) */
}

/* ── CTA con pulso tipo notificación (del master, anillo en tono sage) ── */
@keyframes ctaShine {
  0%   { box-shadow: 0 0 0 0 rgba(42, 62, 42, .45),  0 6px 18px rgba(26, 38, 24, .12); }
  70%  { box-shadow: 0 0 0 13px rgba(42, 62, 42, 0), 0 6px 20px rgba(26, 38, 24, .15); }
  100% { box-shadow: 0 0 0 0 rgba(42, 62, 42, 0),    0 6px 18px rgba(26, 38, 24, .12); }
}
.nav-cta { animation: ctaShine 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .nav-cta { animation: none; } }
