/* Single curso */
.nef-header{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.nef-actions{display:flex;gap:10px;flex-wrap:wrap}
.nef-grid{display:grid;grid-template-columns:280px 1fr;gap:24px}
@media(max-width:960px){.nef-grid{grid-template-columns:1fr}}
.nef-aside{border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#fff;position:sticky;top:16px;height:fit-content}
.nef-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.nef-tab{padding:8px 10px;border:1px solid #252525;border-radius:9999px;background:#252525;color:#fff;cursor:pointer;font-size:14px}
.nef-tab.active{background:#e18f10;color:#fff;border-color:#e18f10}
.nef-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.nef-table th,.nef-table td{padding:10px;border-bottom:1px solid #f3f4f6;text-align:left;font-size:14px;vertical-align:top}
.nef-table th{background:#fafafa}
.nef-cards{display:none;gap:12px}
.nef-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}
.nef-lec-title{font-weight:600;margin:0 0 4px 0}
.nef-lec-meta{font-size:12px;color:#6b7280;margin-bottom:8px}
.nef-card-actions{display:flex;gap:10px;align-items:center;justify-content:space-between}
.nef-check-label{display:flex;align-items:center;gap:6px}
.nef-check-label span{font-size:12px;color:#6b7280}
@media(max-width:720px){.nef-table{display:none}.nef-cards{display:grid;grid-template-columns:1fr}}
.nef-video-wrap{display:none;margin:0px auto;max-width:960px}
.nef-video-wrap iframe{display:block;margin:0 auto;width:100%;max-width:960px;height:540px}
.nef-video-row td{background:#fff;text-align:center;padding:12px;border:1px solid #e5e7eb}
.nef-mats-list{margin:0;padding-left:18px}
.nef-mats-list li{margin:2px 0;}
.nef-mats-list a{text-decoration:none;color:#1f2937}
.nef-mats-mobile{margin:6px 0}
@media(max-width:720px){.nef-video-wrap iframe{height:360px}}
@media print{
  header, footer, .nef-actions, .nef-tabs, .nef-video-wrap, .nef-cards{display:none !important}
  .nef-grid{grid-template-columns:1fr !important}
  .nef-table{display:table !important}
}


/* === NEF override: lighter hover colors (scoped) === */
.nef-wrap .button.button-primary:hover,
.nef-wrap .wp-block-button__link:hover,
.nef-wrap .r-btn-primary:hover,
.nef-wrap .nef-btn--primary:hover,
.nef-wrap button[type="submit"].button-primary:hover,
.nef-wrap input[type="submit"].button-primary:hover,
.nef-wrap input[type="button"].button-primary:hover {
  background-color: #f2a53a !important; /* lighter than #e18f10 */
  border-color: #f2a53a !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Dark buttons/labels hover (lighter gray than #252525) */
.nef-wrap .nef-tab:hover,
.nef-wrap .button-dark:hover,
.nef-wrap .nef-chip:hover {
  background-color: #3b3b3b !important;
  border-color: #3b3b3b !important;
  color: #fff !important;
}
/* === End NEF override === */


/* === Ajustes adicionales solicitados === */

/* 1. Quitar subrayado del botón "Empezar" */
.nef-wrap .button:hover,
.nef-wrap .r-btn-primary:hover,
.nef-wrap .btn:hover {
  text-decoration: none !important;
}

/* 2. Hover del módulo seleccionado en amarillo más claro */
.nef-wrap .nef-tab.active:hover {
  background-color: #f2a53a !important;
  border-color: #f2a53a !important;
  color: #fff !important;
}

/* === Fin de ajustes adicionales === */


/* === NEF video aspect ratio fix: make embed rectangular (16:9) and responsive === */
.nef-video-wrap{ position:relative; width:100%; max-width:960px; margin:0px auto; }
.nef-video-wrap::before{ content:""; display:block; padding-top:56.25%; } /* 16:9 ratio */
.nef-video-wrap iframe{
  position:absolute; inset:0;
  width:100% !important; height:100% !important;
  max-width:none !important; margin:0 auto; display:block;
}
@supports (aspect-ratio: 16/9) {
  .nef-video-wrap::before{ padding-top:0; }
  .nef-video-wrap iframe{ position:static; aspect-ratio:16/9; height:auto !important; }
}
/* === End fix === */


/* === YTC overrides === */
.ytc iframe { width:100% !important; height:100% !important; border:0; display:block; }
.ytc:fullscreen, .ytc:-webkit-full-screen { max-width:none; width:100%; height:100%; border-radius:0; }
.ytc:fullscreen .ytc__stage, .ytc:-webkit-full-screen .ytc__stage { position:absolute; inset:0; aspect-ratio:auto; height:100%; }
.ytc:fullscreen iframe, .ytc:-webkit-full-screen iframe { width:100%; height:100%; }

/* Prevent interactions with the real YouTube player */
.nef-video-wrap iframe { pointer-events: auto !important; touch-action: auto !important; }

/* enforce module title size on single curso */
.nef-module-title{font-size:30px;line-height:1.2}

/* === Border styling for modules (requested) === */
.nef-module {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

/* margins override per request */
.ytc{ margin: 5px auto; }

/* Margin superior solo en pantallas grandes */
@media (min-width: 768px) {
  .nef-video-notes {
    margin-top: 20px;
  }
}


/* === Enforce 12px radius on module tabs (high specificity) === */
.nef-tabs .nef-tab,
.nef-tab,
button.nef-tab,
.nef-tab.active {
  border-radius: 12px !important;
}


.nef-locked{opacity:.55}
.nef-lock-note{font-size:12px;color:#6b7280}


.nef-locked{opacity:.55;pointer-events:none;position:relative}
.nef-lock-note{font-size:13px;color:#d97706;display:flex;align-items:center;gap:6px;font-weight:500;margin-top:4px}
.nef-lock-icon{font-size:15px;line-height:1;color:#d97706}
.nef-course-lock-banner{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;padding:12px 14px;border-radius:10px;margin:12px 0;display:flex;align-items:center;gap:8px}


/* Custom: availability line on mobile */
@media (max-width: 768px) {
  .nef-lesson-availability {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
  }
}

/* Mobile: lock note on its own line under title in cards */
@media (max-width: 768px) {
  .nef-card .nef-lock-note.nef-mobile-only {
    display: block !important;
    font-size: 12px;
    margin-top: 0px;
  }
}
@media (min-width: 769px) {
  .nef-card .nef-lock-note.nef-mobile-only { display: none !important; }
}

/* Safety: never show lock note inline in card title */
.nef-card .nef-lec-title .nef-lock-note { display: none !important; }

/* Added by automation: dashed rule under notes heading */
.nef-notes-head{border-bottom:1px dashed #e5e7eb;padding-bottom:8px;margin-bottom:8px}
