/* ============================================================
   LuferMatch — Sistema de diseño compartido
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --verde-cancha: #1F6350;
  --verde-noche: #16453A;
  --chalk: #F4F6F2;
  --amarillo-pelota: #D6E62B;
  --tinta: #16211C;
  --gris: #5A6A63;
  --gris-claro: #DCE3DF;
  --error: #B3261E;
  --blanco: #FFFFFF;

  --fuente-titulo: 'Space Grotesk', sans-serif;
  --fuente-cuerpo: 'Inter', sans-serif;

  --radio: 10px;
  --sombra: 0 2px 10px rgba(11, 42, 34, 0.06);
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--fuente-cuerpo);
  background: var(--chalk);
  color: var(--tinta);
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- Cabecera compartida ---- */
.lm-header {
  background: var(--verde-noche);
  color: var(--blanco);
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.lm-header .lm-marca {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lm-header .lm-marca .pelota {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amarillo-pelota);
  display: inline-block;
}
.lm-header a.lm-volver {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
}
.lm-header a.lm-volver:hover { color: white; }
.lm-header-derecha {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lm-header .lm-usuario {
  font-size: 0.82rem;
  opacity: 0.7;
}
.lm-header button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--fuente-cuerpo);
}
.lm-header button:hover { background: rgba(255,255,255,0.1); }

/* ---- Contenedor principal ---- */
.lm-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ---- Tarjetas ---- */
.lm-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.4rem 1.6rem;
}

/* ---- Botones ---- */
.lm-btn {
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: transform 0.05s ease;
}
.lm-btn:active { transform: scale(0.98); }
.lm-btn:disabled {
  background: var(--gris-claro) !important;
  color: var(--gris) !important;
  cursor: not-allowed;
  transform: none;
}
.lm-btn-primario {
  background: var(--verde-cancha);
  color: white;
}
.lm-btn-primario:hover { background: var(--verde-noche); }
.lm-btn-secundario {
  background: var(--gris-claro);
  color: var(--tinta);
}
.lm-btn-secundario:hover { background: #cbd6cf; }
.lm-btn-en-vivo {
  background: var(--amarillo-pelota);
  color: var(--verde-noche);
}
.lm-btn-en-vivo:hover { filter: brightness(0.95); }

/* ---- Badge "en vivo" ---- */
.lm-badge-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--amarillo-pelota);
  color: var(--verde-noche);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Inputs ---- */
input, select, textarea {
  font-family: var(--fuente-cuerpo);
  border: 1px solid var(--gris-claro);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  color: var(--tinta);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde-cancha);
  box-shadow: 0 0 0 3px rgba(20, 72, 59, 0.12);
}

/* ---- Utilidades ---- */
.lm-vacio {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gris);
  font-size: 0.9rem;
}

/* ============================================================
   Menú lateral (shell de navegación)
   ============================================================ */

.lm-shell {
  display: flex;
  min-height: 100vh;
}

.lm-sidebar {
  width: 240px;
  background: var(--verde-noche);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 1.4rem 1.2rem;
  transition: transform 0.2s ease;
  z-index: 50;
}

.lm-sidebar-top .lm-marca {
  margin-bottom: 2rem;
}
.lm-sidebar-top .lm-marca .lm-logo {
  display: block;
  width: 100%;
  height: auto;
}
.lm-sidebar-top .lm-marca .pelota {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amarillo-pelota);
  display: inline-block;
}

.lm-sidebar-link {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}
.lm-sidebar-link:hover, .lm-sidebar-link.activo {
  background: rgba(255,255,255,0.1);
  color: white;
}

.lm-sidebar-select-wrap {
  margin-top: 1.2rem;
}
.lm-sidebar-select-wrap label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.6;
  display: block;
  margin-bottom: 0.4rem;
}
.lm-sidebar-select-wrap select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.85rem;
}
.lm-sidebar-select-wrap select option { color: var(--tinta); }

.lm-sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
}
.lm-sidebar-email {
  display: block;
  font-size: 0.78rem;
  opacity: 0.65;
  margin-bottom: 0.7rem;
  word-break: break-all;
}
.lm-sidebar-bottom button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.55rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--fuente-cuerpo);
}
.lm-sidebar-bottom button:hover { background: rgba(255,255,255,0.1); }

.lm-content {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}

.lm-hamburguesa {
  display: none;
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 60;
  background: var(--verde-noche);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .lm-sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  .lm-sidebar.abierto {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }
  .lm-content { margin-left: 0; padding-top: 3.2rem; }
  .lm-hamburguesa { display: flex; align-items: center; justify-content: center; }
}