/*
Theme Name: English Online Pro
Theme URI: https://englishonlinepro.com
Author: English Online Pro
Author URI: https://englishonlinepro.com
Description: Plantilla profesional para clases de inglés en línea con sistema de registro de alumnos y maestros, pagos PayPal, redes sociales, perfil de maestros y administración completa.
Version: 10.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: english-online-pro
Tags: education, e-learning, english, online-courses, lms

*/

/* ==========================================
   VARIABLES Y RESET
========================================== */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2347;
  --secondary: #e8a020;
  --accent: #2ecc71;
  --danger: #e74c3c;
  --text: #1e1e2e;
  --text-light: #6b7280;
  --bg: #f0f4ff;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #d1d9f0;
  --shadow: 0 8px 32px rgba(26,58,107,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================
   UTILIDADES
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,58,107,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,58,107,0.45);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #d4890a);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,160,32,0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,160,32,0.5);
  color: var(--white);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c0392b);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-close {
  background: rgba(231,76,60,0.1);
  border: none;
  color: var(--danger);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.btn-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

/* ==========================================
   HEADER / NAV
========================================== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--primary);
  border-color: var(--secondary);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ==========================================
   MODALES
========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,35,71,0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-wide { max-width: 780px; }
.modal-xl { max-width: 1000px; }

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  border-radius: 24px 24px 0 0;
}

.modal-header h2 {
  font-size: 1.4rem;
  color: var(--primary);
}

.modal-body { padding: 28px 32px; }

.modal-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ==========================================
   FORMULARIOS
========================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #f8faff;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,58,107,0.1);
}

.form-control::placeholder { color: #aab2cc; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-select {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: #f8faff;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,58,107,0.1);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.form-success {
  color: var(--accent);
  font-size: 13px;
  margin-top: 6px;
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2a4f8a 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,160,32,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,204,113,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.2);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero h1 span { color: var(--secondary); }

.hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

.level-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.level-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateX(4px);
}

.level-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.level-basic .level-icon { background: rgba(46,204,113,0.25); }
.level-inter .level-icon { background: rgba(232,160,32,0.25); }
.level-adv .level-icon { background: rgba(231,76,60,0.25); }

.level-info h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.level-info p {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
}

/* ==========================================
   STATS SECTION
========================================== */
.stats {
  background: var(--primary-dark);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.4rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.stat-item p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================
   CURSOS SECTION
========================================== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(26,58,107,0.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26,58,107,0.18);
}

.course-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.course-banner.basic {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.course-banner.inter {
  background: linear-gradient(135deg, #e8a020, #d4890a);
}

.course-banner.advanced {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.course-body { padding: 28px; }

.course-body h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.course-body p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.course-features {
  list-style: none;
  margin-bottom: 24px;
}

.course-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #f8faff;
  border-top: 1px solid var(--border);
}

.course-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 900;
}

.course-price span {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-light);
  font-weight: 400;
}

/* ==========================================
   PROCESO SECTION
========================================== */
.process { background: var(--primary-dark); color: var(--white); }

.process .section-tag {
  background: rgba(232,160,32,0.2);
  color: var(--secondary);
}

.process .section-header h2 { color: var(--white); }
.process .section-header p { color: rgba(255,255,255,0.7); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.step-item {
  padding: 36px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.step-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.step-num {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), #d4890a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 auto 20px;
}

.step-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.step-item p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
}

/* ==========================================
   TEACHERS SECTION
========================================== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,58,107,0.15);
}

.teacher-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 4px solid var(--bg);
}

.teacher-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.teacher-card .specialty {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.teacher-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 15px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.6;
}

/* ==========================================
   DASHBOARDS
========================================== */
.dashboard-wrapper {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-wrapper.active { display: flex; }

.dashboard-sidebar {
  width: 280px;
  background: var(--primary-dark);
  color: white;
  padding: 28px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}

.sidebar-nav {
  list-style: none;
  padding: 0 12px;
}

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.sidebar-nav a.active {
  background: rgba(232,160,32,0.2);
  color: var(--secondary);
  border-left: 3px solid var(--secondary);
}

.sidebar-nav .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-user {
  padding: 20px 24px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user .avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #d4890a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-user .name { font-weight: 700; font-size: 14px; }
.sidebar-user .role { font-size: 12px; opacity: 0.6; }

.dashboard-main {
  margin-left: 280px;
  padding: 32px;
  flex: 1;
  min-height: 100vh;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.dashboard-topbar h1 {
  font-size: 1.4rem;
  color: var(--primary);
}

.dashboard-section {
  display: none;
}

.dashboard-section.active { display: block; }

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.dashboard-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-blue { background: rgba(26,58,107,0.1); }
.card-orange { background: rgba(232,160,32,0.15); }
.card-green { background: rgba(46,204,113,0.15); }
.card-red { background: rgba(231,76,60,0.12); }

.dashboard-card h3 {
  font-size: 2rem;
  color: var(--primary);
  font-family: var(--font-display);
}

.dashboard-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table thead {
  background: var(--primary-dark);
  color: var(--white);
}

.data-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: #f8faff; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.badge-paid { background: rgba(46,204,113,0.15); color: #27ae60; }
.badge-pending { background: rgba(232,160,32,0.15); color: #d4890a; }
.badge-blocked { background: rgba(231,76,60,0.12); color: var(--danger); }
.badge-basic { background: rgba(46,204,113,0.15); color: #27ae60; }
.badge-inter { background: rgba(232,160,32,0.15); color: #d4890a; }
.badge-adv { background: rgba(231,76,60,0.12); color: var(--danger); }
.badge-active { background: rgba(46,204,113,0.15); color: #27ae60; }

.table-actions { display: flex; gap: 6px; }

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn.edit { background: rgba(26,58,107,0.1); color: var(--primary); }
.action-btn.del { background: rgba(231,76,60,0.1); color: var(--danger); }
.action-btn.block { background: rgba(232,160,32,0.15); color: #d4890a; }
.action-btn.view { background: rgba(46,204,113,0.15); color: #27ae60; }

.action-btn:hover { transform: scale(1.1); }

.section-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-card-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px;
  transition: width 0.6s ease;
}

.notification-dot {
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}

/* ==========================================
   TYPE SELECTOR (register modal)
========================================== */
.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.type-option {
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: #f8faff;
}

.type-option:hover {
  border-color: var(--primary);
  background: rgba(26,58,107,0.05);
}

.type-option.selected {
  border-color: var(--primary);
  background: rgba(26,58,107,0.08);
}

.type-option .type-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.type-option h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.type-option p { font-size: 12px; color: var(--text-light); }

/* ==========================================
   PAYMENT
========================================== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 700;
}

.payment-method:hover, .payment-method.selected {
  border-color: var(--primary);
  background: rgba(26,58,107,0.05);
}

.payment-method .pm-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ==========================================
   ALERTS
========================================== */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(46,204,113,0.12);
  color: #27ae60;
  border: 1px solid rgba(46,204,113,0.3);
}

.alert-error {
  background: rgba(231,76,60,0.1);
  color: var(--danger);
  border: 1px solid rgba(231,76,60,0.25);
}

.alert-info {
  background: rgba(26,58,107,0.08);
  color: var(--primary);
  border: 1px solid rgba(26,58,107,0.2);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-cards { grid-template-columns: 1fr 1fr; }
}

/* ==========================================
   BOTÓN HAMBURGUESA — solo visible en móvil
========================================== */
.sidebar-toggle-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.sidebar-toggle-btn:hover { background: var(--primary); }

/* Overlay oscuro detrás del sidebar en móvil */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
  /* ---- Navegación header ---- */
  .nav-links { display: none; }

  /* ---- Grids a una columna ---- */
  .courses-grid, .teachers-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* ---- Modales ---- */
  .modal-body, .modal-header, .modal-footer { padding: 18px 16px; }
  .modal { width: 96vw; max-width: 96vw; margin: 12px auto; border-radius: 16px; }
  .modal-wide, .modal-xl { max-width: 96vw; }

  /* ---- Hero ---- */
  .hero { padding: 60px 0 40px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* ---- Stats ---- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* ---- Dashboard: sidebar oculto por defecto en móvil ---- */
  .sidebar-toggle-btn { display: flex; }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -300px;   /* oculto fuera de pantalla */
    width: 270px;
    height: 100vh;
    z-index: 200;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding-bottom: 100px;
  }

  .dashboard-sidebar.sidebar-open {
    left: 0;
  }

  /* Contenido principal ocupa todo el ancho en móvil */
  .dashboard-main {
    margin-left: 0 !important;
    padding: 16px 12px 80px;
    width: 100%;
  }

  /* Topbar en móvil */
  .dashboard-topbar {
    padding: 12px 14px 12px 64px; /* espacio para el botón hamburguesa */
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .dashboard-topbar h1 { font-size: 1.1rem; }
  .dashboard-topbar > div { gap: 6px; flex-wrap: wrap; }
  .dashboard-topbar .btn { font-size: 12px; padding: 7px 10px; }

  /* Cards en móvil: 2 columnas → 1 columna en pantallas muy pequeñas */
  .dashboard-cards { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .dashboard-card { padding: 16px; }
  .dashboard-card h3 { font-size: 1.4rem; }

  /* Section cards */
  .section-card { padding: 16px; border-radius: 12px; }
  .section-card-header { flex-wrap: wrap; gap: 8px; }
  .section-card-header h3 { font-size: 1rem; }

  /* Tablas con scroll horizontal */
  .data-table { min-width: 480px; font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }

  /* Botones de acción en tablas más pequeños */
  .eop-action { font-size: 11px !important; padding: 4px 7px !important; }

  /* Formularios */
  .form-control, .form-select { font-size: 14px; padding: 11px 14px; }
  .btn { font-size: 13px; padding: 10px 16px; }

  /* Accesos rápidos — 1 columna */
  .section-card [style*="grid-template-columns:repeat(3"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Perfil maestro */
  #maestro-avatar-container { width: 70px !important; height: 70px !important; }
}

/* Pantallas muy pequeñas (< 400px) */
@media (max-width: 400px) {
  .dashboard-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
  .modal { width: 99vw; border-radius: 12px; }
  .dashboard-topbar { padding-left: 56px; }
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.float { animation: float 4s ease-in-out infinite; }

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

/* ==========================================
   LOADING SPINNER
========================================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading .spinner { display: inline-block; }
.loading .btn-text { display: none; }

/* ==========================================
   BOTÓN DE PAGO POR CURSO (EDITABLE WP)
========================================== */
.course-pay-btn {
  padding: 0 28px 24px;
  display: flex;
  justify-content: center;
}

.pay-link-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.pay-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,107,0.25);
}

.course-featured {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(26,58,107,0.2);
  border: 2px solid var(--secondary);
  position: relative;
  z-index: 1;
}

.course-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

/* Separador entre footer del curso y botón de pago */
.course-footer {
  border-bottom: 1px dashed var(--border);
}

/* Nota informativa de pago */
.pay-info-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px 32px;
  background: rgba(26,58,107,0.05);
  border-radius: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   LOGO PERSONALIZADO
========================================== */
.site-logo-img {
  height: 42px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.logo-slogan {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Logo en sidebar de dashboards */
.sidebar-logo .site-logo-img {
  height: 36px;
  box-shadow: none;
}
.sidebar-logo .logo-name { color: white; font-size: 1rem; }
.sidebar-logo .logo-slogan { color: rgba(255,255,255,0.6); }

/* ==========================================
   BOTÓN DE PAGO — UN SOLO BOTÓN POR CURSO
========================================== */
.course-pay-btn {
  padding: 0 24px 24px;
}

.pay-link-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  font-weight: 800;
}

.pay-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,107,0.3);
}

.course-featured {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(26,58,107,0.2);
  border: 2px solid var(--secondary);
  position: relative;
  z-index: 1;
}
.course-featured:hover { transform: scale(1.03) translateY(-4px); }

/* ============================================
   V5 ADDITIONS - Content Management Admin
   ============================================ */
.admin-video-fields,
.admin-clase-vivo-fields,
.admin-fecha-limite-fields {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}
.admin-clase-vivo-fields { background: #f0fff4; border-color: #c6f6d5; }
.admin-fecha-limite-fields { background: #fff7ed; border-color: #fed7aa; }

#tabla-contenido-admin td small { color: #9ca3af; }
#tabla-contenido-admin tbody tr:hover { background: rgba(26,58,107,0.03); }

/* ==========================================
   V6: REDES SOCIALES Y PAYPAL
========================================== */
.social-btn:hover {
    transform: scale(1.15) !important;
    opacity: 0.9;
}

.paypal-pay-btn {
    background: linear-gradient(135deg, #003087, #009cde) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0,48,135,0.35) !important;
    transition: all 0.3s ease !important;
}
.paypal-pay-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 28px rgba(0,48,135,0.5) !important;
}

/* V6: Perfil maestro foto */
#maestro-avatar-container {
    cursor: pointer;
    transition: transform 0.2s;
}
#maestro-avatar-container:hover {
    transform: scale(1.05);
}

/* V6: Admin dashboard cards clickables */
.dashboard-card[onclick] {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dashboard-card[onclick]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* V6: Footer social section responsive */
.footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .social-links {
        justify-content: center !important;
    }
}

/* V6: Estabilidad general - evitar overflow en mobile */
.dashboard-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
}
.data-table {
    min-width: 500px;
}

/* V6: Conexión estable - loading spinner animado */
@keyframes spin {
    0%  { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn.loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
