:root{
  --bg: #ffffff;
  --text: #0f172a;    /* gris azulado oscuro */
  --muted: #64748b;   /* gris */
  --brand: #7634bf;   /* índigo */
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(2,8,23,.08);
}

/* Reset mínimo */
*,*::before,*::after{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.brand{
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
}

/* Hamburguesa */
.hamburger{
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: inline-grid;
  place-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hamburger:focus-visible{ outline: 2px solid var(--brand); outline-offset: 3px; }
.hamburger .bar{
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
}
.hamburger[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; width: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Drawer (móvil) */
.nav-drawer{
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 0;             /* cerrado */
  opacity: 0;
  transition: max-height .28s ease, opacity .28s ease;
}
.menu{
  list-style: none;
  padding: 12px;
  margin: 0;
  display: grid;
  gap: 6px;
}
.menu a{
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.menu a:hover{ background: rgba(79,70,229,.08); }
.menu .cta .btn{
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.menu .cta .btn:hover{ filter: brightness(0.95); }

/* Overlay al abrir menú en móvil */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
  z-index: 40;
}
body.menu-open .overlay{ opacity: 1; visibility: visible; transition-delay: 0s; }

/* Contenido demo */
.content{ padding: 24px; }

/* Desktop */
@media (min-width: 768px){
  .hamburger{ display: none; }
  .site-header{ padding-inline: 24px; }
  .nav-drawer{
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    box-shadow: none;
  }
  .menu{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .menu a{ padding: 10px 12px; }
  .overlay{ display: none; }
}