
/* ══════════════════════════════════════════════════════
   DEMO PAGE RESET
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



/* Demo header strip to host the burger */
.demo-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #1a3228;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
}
.demo-header__logo {
  font-family: 'Catamaran', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.demo-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* Demo center content */
.demo-body {
  text-align: center;
  padding: 100px 24px 40px;
}
.demo-body h1 {
  font-family: 'Catamaran', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: -0.01em;
  color: #1a3228;
  margin-bottom: 12px;
}
.demo-body p {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
}
.demo-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #1a3228;
  color: #fff;
  font-family: 'Catamaran', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}
.demo-open-btn:hover { background: #112820; transform: translateY(-1px); }
.demo-open-btn svg { width: 18px; height: 18px; }


/* ══════════════════════════════════════════════════════
   BURGER BUTTON  (pegar en tu header)
══════════════════════════════════════════════════════ */
.dr-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 0.15s;
}
.dr-burger:hover { background: rgba(255,255,255,0.08); }
.dr-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.dr-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.dr-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dr-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════
   BACKDROP
══════════════════════════════════════════════════════ */
.dr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 188;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.dr-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}


/* ══════════════════════════════════════════════════════
   DRAWER
══════════════════════════════════════════════════════ */
.dr-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 78vw;
  max-width: 300px;
  z-index: 210;
  background: #112820;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 16px 0 80px rgba(0,0,0,0.5);
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.dr-drawer.is-open { transform: translateX(0); }

/* Thin teal accent line on right edge */
.dr-drawer::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(79,200,180,0.5) 30%,
    rgba(79,200,180,0.5) 70%,
    transparent
  );
  pointer-events: none;
}


/* ── Close button ──────────────────────────── */
.dr-close {
  position: absolute;
  top: 20px; right: 18px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, border-color 0.18s;
  z-index: 1;
}
.dr-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.22);
}
.dr-close span {
  position: absolute;
  width: 13px; height: 1.5px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
}
.dr-close span:first-child { transform: rotate(45deg); }
.dr-close span:last-child  { transform: rotate(-45deg); }


/* ── Inner scroll area ─────────────────────── */
.dr-inner {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 72px 28px 24px;
  scrollbar-width: none;
}
.dr-inner::-webkit-scrollbar { display: none; }


/* ── Logo ──────────────────────────────────── */
.dr-logo {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dr-logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
/* Si no hay imagen, usa texto */
.dr-logo__text {
  font-family: 'Catamaran', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}


/* ── Nav structure ─────────────────────────── */
.dr-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dr-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dr-col + .dr-col {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dr-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


/* ── Nav links ─────────────────────────────── */
.dr-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, gap 0.18s;
  opacity: 0;
  transform: translateX(-12px);
}
.dr-link:last-child { border-bottom: none; }
.dr-drawer.is-open .dr-link {
  animation: drItemIn 0.44s cubic-bezier(0.16,1,0.3,1) forwards;
}
.dr-link:hover {
  color: #4FC8B4;
  gap: 12px;
}
.dr-link::after {
  content: '→';
  font-size: 11px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
  margin-left: auto;
  color: #4FC8B4;
}
.dr-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}


/* ── Sub-labels ────────────────────────────── */
.dr-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  padding-bottom: 8px;
  margin-top: -4px;
}


/* ── Stagger animation ─────────────────────── */
@keyframes drItemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.dr-col:first-child .dr-group:nth-child(1) .dr-link { animation-delay: 0.07s; }
.dr-col:first-child .dr-group:nth-child(2) .dr-link { animation-delay: 0.13s; }
.dr-col:first-child .dr-link:nth-child(3)           { animation-delay: 0.19s; }
.dr-col:first-child .dr-link:nth-child(4)           { animation-delay: 0.25s; }
.dr-col:first-child .dr-link:nth-child(5)           { animation-delay: 0.31s; }
.dr-col:first-child .dr-link:nth-child(6)           { animation-delay: 0.37s; }
.dr-col:first-child .dr-link:nth-child(7)           { animation-delay: 0.43s; }
.dr-col:last-child  .dr-link:nth-child(1)           { animation-delay: 0.49s; }
.dr-col:last-child  .dr-link:nth-child(2)           { animation-delay: 0.55s; }
.dr-col:last-child  .dr-link:nth-child(3)           { animation-delay: 0.61s; }
.dr-col:last-child  .dr-link:nth-child(4)           { animation-delay: 0.67s; }
.dr-col:last-child  .dr-link:nth-child(5)           { animation-delay: 0.73s; }


/* ── CTA fija al fondo ─────────────────────── */
.dr-cta {
  padding: 18px 28px 36px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15));
}
.dr-cta-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  background: #4FC8B4;
  color: #0a1f18;
  font-family: 'Catamaran', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(79,200,180,0.3);
}
.dr-cta-btn:hover {
  background: #3dbdaa;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(79,200,180,0.45);
}

@media (max-width: 480px) {
  .dr-inner { padding: 64px 22px 20px; }
  .dr-cta   { padding: 16px 22px 30px; }
}