/* ========================================
   MADE Portal — Estilos base (blanco) + login oscuro
   ======================================== */

/* Tokens */
:root{
  --brand:#111;         /* textos/navigation */
  --accent:#FFD300;     /* amarillo MADE */
  --bg:#ffffff;         /* fondo claro */
  --ink:#111111;        /* texto principal */
  --muted:#666666;      /* texto secundario */
  --line:#e9e9e9;       /* bordes suaves */
  --card:#ffffff;       /* tarjetas */
}

/* Reset mínimo */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;}

/* Contenedor */
.container{max-width:1100px;margin:0 auto;padding:24px}

/* Enlaces y botones */
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid var(--brand);color:var(--brand);font-weight:700;text-decoration:none;transition:.15s}
.btn:hover{background:var(--brand);color:#fff}
.btn.disabled,[disabled]{opacity:.55;cursor:not-allowed}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand-link{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--brand);text-decoration:none}
.logo-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);display:inline-block}
.brand-text{letter-spacing:.5px}
.topbar .menu a{margin-left:18px;color:var(--brand);font-weight:500}
.topbar .menu a.danger{color:#b00020}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:#fff;padding:28px 0;text-align:center}
.site-footer .footer-links a{color:var(--brand);margin:0 6px;text-decoration:none}
.site-footer .sep{color:#bbb;margin:0 6px}
.site-footer .copy{margin-top:8px;font-weight:600}
.site-footer .byline{margin-top:6px;color:#777;font-size:13px}

/* Tarjetas y utilidades */
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px}
.h1{font-size:28px;margin:12px 0 16px}
.h3{font-size:20px;margin:0 0 8px}
.muted{color:var(--muted)}
.mb-1{margin-bottom:8px}
.mb-2{margin-bottom:16px}
.center{text-align:center}

/* Hero */
.hero.hero-light{background:#fff;color:var(--ink);padding:32px 0 8px;margin:-8px 0 24px}
.hero-title{font-size:38px;margin:0 0 6px}
.hero-sub{color:#444;max-width:900px}

/* Grid 3 columnas (directos) */
.cards-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media (max-width:1024px){.cards-grid3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cards-grid3{grid-template-columns:1fr}}

/* Tarjeta de directo */
.stream-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column}
.stream-card .thumb{display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#f5f5f5;margin-bottom:12px}
.stream-card .thumb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px}
.stream-title{font-size:18px;margin:6px 0 4px}
.stream-excerpt{margin:0 0 12px;color:#444;line-height:1.45}

/* Badges de estado */
.badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid}
.badge.ok{background:#e8f7ee;color:#16794c;border-color:#bfead2}
.badge.wait{background:#fff6e5;color:#8a5a00;border-color:#ffe1a6}

/* Formularios (login / cambios) */
form.auth{max-width:420px;margin:28px auto}
label{display:block;margin:10px 0 6px}
input[type="email"],input[type="password"],input[type="text"]{width:100%;padding:12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink)}

/* Toggle de contraseña (ojo) */
.pw-wrap{position:relative;display:flex;align-items:center}
.pw-wrap input{padding-right:44px}
.pw-toggle{position:absolute;right:8px;height:36px;width:36px;border:0;border-radius:8px;background:transparent;cursor:pointer;display:grid;place-items:center;color:#444}
.pw-toggle:hover{background:rgba(0,0,0,.05)}
.pw-toggle:focus{outline:2px solid rgba(255,211,0,.6);outline-offset:2px}
.pw-toggle.on .slash{display:none}

/* LOGIN OSCURO: aplicar <body class="theme-dark"> en /public/index.php */
body.theme-dark{background:#0f0f0f;color:#eee}
body.theme-dark .site-header{background:#0f0f0f;border-color:#1e1e1e}
body.theme-dark .brand-link,body.theme-dark .topbar .menu a{color:#eee}
body.theme-dark .card{background:#111;border-color:#222}
body.theme-dark input[type="email"],body.theme-dark input[type="password"]{background:#141414;color:#fff;border-color:#333}
body.theme-dark .btn{border-color:#eee;color:#eee}

.btn.primary{
  background: #ffd300;
  color: #111;
  border-color: #ffd300;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.btn.primary:hover{
  filter: brightness(0.95);
}
/* ===== DIRECTOS: GRID FORZADA ===== */
.cards-grid3{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
@media (max-width:1200px){ .cards-grid3{ grid-template-columns:repeat(2,1fr); } } /* 2 arriba / 2 abajo */
@media (max-width:640px){  .cards-grid3{ grid-template-columns:1fr; } }

.cards-grid3 > .card{ margin:0; width:auto; }         /* que la .card no rompa el grid */
.stream-card{ background:#fff; border:1px solid #e9e9e9; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
.stream-card .thumb{ display:block; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#f5f5f5; margin-bottom:12px; }
.stream-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.stream-title{ font-size:18px; margin:6px 0 4px; }
.stream-excerpt{ margin:0 0 12px; color:#444; line-height:1.45; }

/* Botón más notorio */
.btn.primary{ background:#ffd300; color:#111; border:1px solid #ffd300; font-weight:700; box-shadow:0 2px 0 rgba(0,0,0,.06); }
.btn.primary:hover{ filter:brightness(.95); }

.btn.primary{background:#111;color:#fff;border:1px solid #111}
.btn.primary:hover{background:#ffd000;color:#111;border-color:#ffd000}


.live-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.btn.primary{background:#111;color:#fff;border:1px solid #111}
.btn.secondary{background:#f5f5f5;border:1px solid #ddd}

/* ===== EN VIVO (responsive) ===== */
.live-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:12px;
  align-items:start;
}
.live-player iframe,
.live-chat iframe{
  width:100%;
  height:100%;
  border:0;
  border-radius:12px;
}
.live-player{ aspect-ratio:16/9; position:relative; }
.live-player iframe{ position:absolute; inset:0; }
.live-chat{ min-height:420px; }

/* móvil: stack */
@media (max-width: 900px){
  .live-grid{ grid-template-columns:1fr; }
  .live-chat{ min-height:360px; }
}

/* acordeón chat (detalles) */
.chat-accordion{
  margin-top:12px;
  background:#fff; border:1px solid #e9e9e9; border-radius:12px;
  overflow:hidden;
}
.theme-dark .chat-accordion{ background:#151515; border-color:#2b2b2b; }
.chat-accordion summary{
  list-style:none; cursor:pointer; padding:12px 14px; font-weight:700;
  border-bottom:1px solid #eee;
}
.theme-dark .chat-accordion summary{ border-color:#2b2b2b; }
.chat-accordion .chat-body{ height:420px; }
@media (max-width: 900px){ .chat-accordion .chat-body{ height:360px; } }

.live-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.btn.primary{ background:#FFD300; color:#000; border:1px solid #111; font-weight:800; }


/* ===== Header refinado ===== */
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.topbar .menu{display:flex;align-items:center;gap:18px;list-style:none;margin:0;padding:0}
.topbar .menu a{color:var(--brand);font-weight:600}
.topbar .menu a.active{position:relative}
.topbar .menu a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px;
  height:2px; background:var(--accent);
}

/* Hamburguesa (mobile) */
.nav-toggle{
  display:none; border:1px solid var(--line); background:#fff; border-radius:10px;
  padding:8px; color:var(--brand);
}
@media (max-width: 900px){
  .nav-toggle{display:inline-grid; place-items:center}
  .topbar{position:absolute; right:16px; top:58px; background:#fff; border:1px solid var(--line);
          border-radius:12px; padding:10px; display:none; box-shadow:0 12px 30px rgba(0,0,0,.08);}
  .topbar.open{display:block}
  .topbar .menu{flex-direction:column; align-items:flex-start; gap:10px}
}

/* ===== Footer compacto ===== */
.site-footer{
  background:#fff; border-top:1px solid var(--line);
  padding:12px 0; font-size:13px; color:#666;
}
.site-footer .footer-inner{
  display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; justify-content:space-between;
}
.site-footer .footer-links{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.site-footer .footer-links a{color:inherit}
.site-footer .copy{font-weight:600; color:#444}
.site-footer .byline{opacity:.85}

/* ===== Botones (consolidado) ===== */
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid var(--brand);color:var(--brand);font-weight:700;text-decoration:none;transition:.15s}
.btn:hover{background:var(--brand);color:#fff}
.btn.primary{background:#FFD300;border-color:#FFD300;color:#111;box-shadow:0 2px 0 rgba(0,0,0,.06)}
.btn.primary:hover{filter:brightness(.95)}
.btn.secondary{background:#f6f6f6;border:1px solid #ddd;color:#111}

/* ===== Hero respirando sobre fondo blanco ===== */
.hero.hero-light{background:#fff;color:var(--ink);padding:28px 0 12px;margin:0 0 20px}

/* ===== Ajustes menores de grids y tarjetas (siguen como tienes) ===== */
/* ... tu grid de .cards-grid3 permanece ... */


/* Fondo claro global */
body,
body.theme-light{
  background:#ffffff;
  color:#111;
}

/* Si quedó alguna regla del tema oscuro, la neutralizamos */
body.theme-dark{
  background:#ffffff !important;
  color:#111 !important;
}
body.theme-dark .site-header{
  background:#fff !important;
  border-color:#e9e9e9 !important;
}
body.theme-dark .card{
  background:#fff !important;
  border-color:#e9e9e9 !important;
}
body.theme-dark input[type="email"],
body.theme-dark input[type="password"]{
  background:#fff !important;
  color:#111 !important;
  border-color:#e1e1e1 !important;
}
body.theme-dark .btn{ border-color:#111 !important; color:#111 !important; }

/* Footer discreto, centrado y con respiro arriba */
.site-footer{
  background:#fff;
  border-top:1px solid #e9e9e9;
  padding:18px 0;                 /* más delgado */
  text-align:center;
  margin-top:40px;                /* baja el footer cuando hay poco contenido */
}
.site-footer .container{ text-align:center; }
.site-footer .footer-links{
  display:inline-flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.site-footer .footer-links a{ color:#111; text-decoration:none; }
.site-footer .copy{ margin-top:6px; font-weight:600; }
.site-footer .byline{ margin-top:4px; color:#777; font-size:13px; }

/* Asegura respiro en páginas cortas sin sticky */
.site-main{ padding-bottom:24px; }

/* ======== DASHBOARD (tarjetas con acento) ======== */
.page-title{
  font-size: 32px;
  margin: 8px 0 18px;
  font-weight: 800;
  letter-spacing:.2px;
}

.cards-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1050px){ .cards-3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){  .cards-3{ grid-template-columns: 1fr; } }

.card--outline{
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  padding: 18px 18px 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}

.card--accent{
  border-color: var(--accent);
}

.card-title{
  font-size: 26px;
  line-height: 1.15;
  margin: 4px 0 6px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing:.2px;
}
.card-title--accent{
  color: #111;
}

.card-underline{
  height: 3px;
  border: 0;
  margin: 8px 0 14px;
  background: linear-gradient(90deg, var(--accent) 0 160px, #eee 160px);
  border-radius: 2px;
}

.card-actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Botones coherentes con tu sistema */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--brand);
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
  transition:.15s;
}
.btn:hover{ background:var(--brand); color:#fff; }
.btn.ghost{
  background:#fff;
  border:1px solid #ddd;
  color:#111;
}
.btn.ghost:hover{
  background:#f7f7f7;
}

/* Ajustes visuales */
.card p{ margin: 0 0 10px; }
.card p:last-child{ margin-bottom: 0; }



/* Secciones MI CUENTA */
.section-title{
  font-size:24px;
  margin:0 0 12px;
  font-weight:800;
  letter-spacing:.2px;
  position:relative;
  padding-bottom:6px;
}
.section-title:after{
  content:"";
  display:block;
  width:64px;
  height:3px;
  background: var(--accent); /* #FFD300 */
  margin-top:8px;
  border-radius:2px;
}

.cards-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:1024px){.cards-grid3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cards-grid3{grid-template-columns:1fr}}

.account-card{min-height:100%; border:1px solid var(--line);}

.form-grid .form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:640px){ .form-grid .form-row{grid-template-columns:1fr} }
.form-grid input, .form-grid select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}

.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left}
.table th{font-weight:700}
.table .btn{padding:6px 10px;border-radius:8px}

.notice{border-radius:12px;padding:12px 14px;margin:8px 0}
.notice.ok{background:#e8f7ee;color:#16794c;border:1px solid #bfead2}
.notice.error{background:#ffecec;color:#8a1f1f;border:1px solid #f5b5b5}


.user-chip{
  display:inline-block;
  margin-left:10px;
  padding:4px 10px;
  font-size:12px;
  line-height:1;
  border-radius:999px;
  background:#111;               /* fondo negro */
  color:#fff;                    /* texto blanco */
  border:1px solid #FFD200;      /* borde amarillo marca */
  white-space:nowrap;
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}

/* Opcional: ocultar en pantallas muy pequeñas */
@media (max-width: 560px){
  .user-chip{ display:none; }
}


/* ===== NAV compacto y limpio ===== */
.site-header { border-bottom: 1px solid #eee; }
.header-inner { padding: 10px 0; gap: 18px; }

/* Marca */
.brand .brand-text { font-size: 18px; font-weight: 800; letter-spacing: .2px; }

/* Menú principal */
.topbar .menu{
  display: flex;
  align-items: center;
  gap: 18px;                 /* separa menos los ítems */
}
.topbar .menu a{
  font-size: 14px;           /* ↓ más pequeño */
  font-weight: 600;          /* semibold, no tan pesado */
  color: #111;
  padding: 8px 6px;          /* menos padding */
  line-height: 1;
  border-radius: 8px;
  opacity: .9;
  transition: opacity .15s ease, background .15s ease;
  text-decoration: none;
}
.topbar .menu a:hover{ opacity: 1; }

/* Estado activo: subrayado fino amarillo */
.topbar .menu a.active{
  position: relative;
  color: #000;
}
.topbar .menu a.active::after{
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 2px;
  height: 3px;
  background: #FFD200;
  border-radius: 2px;
}

/* Enlace de salir */
.topbar .menu a.danger{ color: #c01818; }
.topbar .menu a.danger:hover{ background: #fff2f2; }

/* Chip del email más discreto */
.user-chip{
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;           /* ↓ más pequeño */
  border: 1px solid #FFD200;
  background: #111;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Responsive: aún más compacto en pantallas medianas */
@media (max-width: 1024px){
  .topbar .menu{ gap: 12px; }
  .topbar .menu a{ font-size: 13px; padding: 6px 4px; }
}

/* Oculta el chip en móviles para no saturar */
@media (max-width: 560px){
  .user-chip{ display: none; }
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-chat { order: 2; margin-top: 10px; min-height: 280px; }
  .live-player { order: 1; }
  .live-actions { flex-direction: column; }
  .live-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; } /* ya lo tenías, mantenlo */
  .live-player { aspect-ratio: 16/9; }
  .live-chat iframe { min-height: 280px; }
}

/* (opcional) esconder el chat en pantallas muy estrechas */
@media (max-width: 420px) {
  .live-chat { display: none; }
}
/* ====== FIX EN VIVO: layout mobile como "bienvenida" ====== */
@media (max-width: 900px){
  /* 1 columna: player arriba, chat abajo (o escondido más abajo) */
  .live-grid{ grid-template-columns: 1fr !important; gap: 10px !important; }
  .live-player{ order: 1; }
  .live-chat{ order: 2; min-height: 280px !important; }

  /* Card más compacta, como tus cards de bienvenida */
  .card{ padding: 12px !important; border-radius: 12px !important; }

  /* Botones ocupan el ancho y no se desbordan */
  .live-actions{ flex-direction: column !important; gap: 8px !important; }
  .live-actions .btn{ width: 100% !important; text-align: center; }
}

@media (max-width: 640px){
  /* Ocultar chat en teléfonos para evitar “descuadre” */
  .live-chat{ display: none !important; }

  /* El player mantiene 16:9 y ocupa todo */
  .live-player{ aspect-ratio: 16/9 !important; }
  .live-player iframe{
    width: 100% !important;
    height: 100% !important;
    inset: 0 !important;
    position: absolute !important;
    border-radius: 12px !important;
  }

  /* Grid de recursos a 1 columna (como en bienvenida) */
  .res-grid{ grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* Evita que el chat “empuje” el alto de la card cuando sí se muestra */
.live-chat iframe{ min-height: 280px !important; }

/* Evita rellenos blancos excesivos dentro de la card del player */
.live-player, .live-chat{ margin: 0 !important; }

/* ===== Footer ultracompacto (override definitivo) ===== */
footer.site-footer{
  padding-block: 6px !important;           /* alto total mínimo */
  background:#fff;
  border-top:1px solid var(--line);
  text-align:center;
}

footer.site-footer .container{
  /* anula el padding global de .container (24px) solo aquí */
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

footer.site-footer .footer-links{
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  margin:0 !important;                     /* sin espacio debajo */
  line-height: 1.1;                        /* compacta vertical */
}

footer.site-footer .footer-links a,
footer.site-footer .sep{
  padding:0 !important;
  margin:0 !important;
  line-height:1.1 !important;
}

footer.site-footer .copy,
footer.site-footer .byline{
  margin:0 !important;                     /* quita márgenes */
  line-height:1.1 !important;
  font-size:13px;
}

footer.site-footer .copy{ font-weight:600; color:#444; }
footer.site-footer .byline{ color:#777; }

/* Si el main dejaba colchón, quítalo */
.site-main{ margin-bottom:0 !important; padding-bottom:0 !important; }

/* Footer ultracompacto + enlace byline */
footer.site-footer{ padding:6px 0 !important; }
footer.site-footer .container{ padding-top:4px !important; padding-bottom:4px !important; }
footer.site-footer .footer-links{ margin:0 !important; }
footer.site-footer .copy,
footer.site-footer .byline{ margin:0 !important; line-height:1.15 !important; }

/* Enlace de la byline */
.site-footer .byline a.byline-link{
  color:inherit; 
  text-decoration:none;
}
.site-footer .byline a.byline-link:hover{
  text-decoration:underline;
}




.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto;
}


.made-sidebar {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 24px 16px;
}

.made-sidebar .sidebar-logo {
  font-size: 18px;
  margin-bottom: 16px;
}

.made-sidebar nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.made-sidebar nav a.active {
  background: #ffd300;
  font-weight: 600;
}


/* ----- Layout con sidebar en móvil: se apilan ----- */
@media (max-width: 900px){
  .layout-with-sidebar{
    display:block;          /* sidebar arriba, contenido abajo */
    margin: 16px auto;
  }
  .made-sidebar{
    margin-bottom:16px;     /* respiro entre sidebar y contenido */
  }
}


.made-main {
  min-height: 400px;
}

.course-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  margin-bottom: 24px;
}

.course-sidebar-card {
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.course-thumb img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.course-price-box {
  margin-top: 12px;
  text-align: center;
}

.course-price-box .price-main {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn.full {
  width: 100%;
}

.course-tabs {
  margin-top: 16px;
  border-bottom: 1px solid #eee;
}

.course-tabs .tab-link {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.course-tabs .tab-link.active {
  border-bottom: 2px solid #ffd300;
  font-weight: 600;
}

.tab-content {
  display: none;
  margin-top: 16px;
}

.tab-content.active {
  display: block;
}

.course-progress-bar {
  margin: 16px 0 24px;
}

.progress-bar.big {
  height: 10px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.progress-bar.big span {
  display: block;
  height: 100%;
  background: #ffd300;
}

.course-sections .course-section {
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.section-header {
  background: #fafafa;
}

.section-toggle {
  width: 100%;
  border: none;
  background: none;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.section-body {
  display: none;
  padding: 8px 14px 12px;
}

.course-section.open .section-body {
  display: block;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-title {
  font-weight: 500;
  font-size: 14px;
}

/* Aviso de éxito centrado */
.notice.notice-center {
  text-align: center;
}


/* Botón primario MADE */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1.6rem;
  background: #ffd600;        /* amarillo MADE */
  color: #000000;
  border-radius: 999px;       /* pastilla */
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
  background: #ffeb4d;        /* un amarillo un poco más claro */
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}


/* ===== Admin usuarios: versión mobile como tarjetas ===== */
@media (max-width: 720px){
  .table-wrap{
    overflow-x: visible;         /* dejamos de forzar scroll horizontal */
  }

  .table{
    border-collapse: separate;
    border-spacing: 0 10px;      /* espacio entre "tarjetas" */
  }

  .table thead{
    display: none;               /* ocultamos cabecera */
  }

  .table tbody tr{
    display: block;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:8px 10px;
  }

  .table tbody td{
    display:block;
    padding:6px 4px;
    border-bottom:0;
    font-size:13px;
  }

  .table tbody td + td{
    margin-top:4px;
  }

  .table tbody td[data-label]::before{
    content: attr(data-label);
    display:block;
    font-size:11px;
    font-weight:600;
    color:var(--muted);
    margin-bottom:2px;
  }

  /* Botones más compactos */
  .table tbody td .btn{
    padding:4px 8px;
    font-size:12px;
  }

  .table tbody td form{
    width:100%;
  }
}






.back-to-courses {
  margin-bottom: 16px;
}

.back-to-courses .btn.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ffd44d;
  background: #fffbe6;
  color: #111;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.back-to-courses .btn.back-btn:hover {
  background: #ffd44d;
  color: #111;
}


