/* ==========================================================================
   base.css – Reset, variables globales, tipografía base
   Usado en TODAS las páginas
   Última actualización: marzo 2026
   ========================================================================== */

:root {
  --primary: #3ba676;
  --primary-dark: #2e8b57;
  --accent: #ff6b35;
  --text-dark: #111827;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --bg-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(226, 232, 240, 0.8);
  --shadow-soft: 0 25px 60px -20px rgba(0,0,0,0.15);
  --radius-lg: 28px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Montserrat, Montserrat fallback, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilidades globales reutilizables */
.center-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
  position: relative;
}

.center-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* contenedor dropdown */
.user-dropdown {
  position: relative;
}

/* menú oculto por defecto */
.dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  top: 100%;
  display: none;
  flex-direction: column;   /* ← clave: vertical */
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  padding: 8px 0;
  z-index: 999;
}

/* cuando está abierto */
.user-dropdown.open .dropdown-menu {
  display: flex;
}

/* links en vertical ocupando todo el ancho */
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  white-space: nowrap;
}

.dropdown-menu hr {
  margin: 6px 0;
  border: none;
  border-top: 1px solid #eee;
}


/* HEADER */
.unread-badge {
    min-width: 22px;
    height: 22px;
    background: #22c55e;
    color: white;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 0 0 2px white;
    position: absolute;
    top: -6px;
}

.profile-btn {
    position: relative;
}

.menu-item-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* 👈 esto es lo importante */
}

.menu-badge {
    position: static;
    margin-left: 15px;
}