/* =====================================================
   LMS ABC — styles.css
   Variables, Reset, Base, Layout, Componentes globales
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg:        #0a0a0f;
  --surface:   #111118;
  --surface2:  #1a1a24;
  --surface3:  #22222f;
  --border:    #2a2a3a;
  --accent:    #6c63ff;
  --accent2:   #ff6584;
  --accent3:   #43e97b;
  --accent4:   #f7b731;
  --text:      #e8e8f0;
  --text2:     #9090a8;
  --text3:     #5a5a72;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--surface); }
::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 3px; }

/* ---- PAGES ---- */
.page         { display: none; min-height: 100vh; }
.page.active  { display: flex; }

/* ---- ANIMACIONES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.7; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
                    /* HASTA AQUI */
/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b83ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(108,99,255,0.5); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface3); }
.btn-danger {
  background: rgba(255,101,132,0.15);
  color: var(--accent2);
  border: 1px solid rgba(255,101,132,0.3);
}
.btn-danger:hover  { background: rgba(255,101,132,0.25); }
.btn-success {
  background: rgba(67,233,123,0.15);
  color: var(--accent3);
  border: 1px solid rgba(67,233,123,0.3);
}
.btn-success:hover { background: rgba(67,233,123,0.25); }
.btn-sm   { padding: 7px 13px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* =====================================================
   FORMULARIOS
   ===================================================== */
.form-group          { margin-bottom: 18px; }
.form-group label    { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-group textarea    { resize: vertical; min-height: 80px; }
.form-group select option { background: var(--surface2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
}
.badge-blue   { background: rgba(108,99,255,0.15); color: var(--accent); }
.badge-green  { background: rgba(67,233,123,0.15);  color: var(--accent3); }
.badge-red    { background: rgba(255,101,132,0.15); color: var(--accent2); }
.badge-yellow { background: rgba(247,183,49,0.15);  color: var(--accent4); }

/* =====================================================
   MODALES
   ===================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-lg     { width: 700px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h2 { font-size: 20px; }
.modal-close {
  width: 32px; height: 32px;
  background: var(--surface2);
  border: none; border-radius: 8px;
  color: var(--text2); font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--surface3); color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
 /*HASTA AQUI*/






/* =====================================================
   TABLAS
   ===================================================== */
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 14px; color: var(--text);
  flex: 1; max-width: 300px;
}
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}
.search-box input::placeholder { color: var(--text3); }
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table               { width: 100%; border-collapse: collapse; }
thead th {
  padding: 13px 16px;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text3);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
tbody tr            { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover      { background: var(--surface2); }
td                  { padding: 13px 16px; font-size: 13px; vertical-align: middle; }
.td-actions         { display: flex; gap: 6px; }

/* =====================================================
   TABS
   ===================================================== */
.tab-list {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  font-family: 'Syne', sans-serif;
  background: none; border: none;
  color: var(--text3); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn:hover  { color: var(--text2); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel         { display: none; }
.tab-panel.active  { display: block; animation: fadeUp 0.3s ease; }

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show    { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--accent3); }
.toast.error   { border-left: 3px solid var(--accent2); }

/* =====================================================
   ESTADO VACÍO
   ===================================================== */
.empty-state        { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p      { font-size: 14px; }

/* =====================================================
   MULTIMEDIA TAGS
   ===================================================== */
.media-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.media-tag {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font-size: 12px;
}
.media-tag button {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 14px; padding: 0;
}
.media-tag button:hover { color: var(--accent2); }


/* HASTA AQUI*/
/* =====================================================
   DETALLE / INFO GRID
   ===================================================== */
.detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.detail-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700;
  color: white; flex-shrink: 0;
}
.detail-info h2     { font-size: 22px; margin-bottom: 4px; }
.detail-info p      { color: var(--text2); font-size: 13px; }
.info-grid          { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-item label    { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.info-item span     { font-size: 14px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sidebar      { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
}
