/* ==========================================================================
   TILCANET EDU - Plataforma Digital Educativa
   Quebrada de Humahuaca · Jujuy · Argentina
   ========================================================================== */

:root {
  --bg-dark: #0b0f19;
  --bg-card: #151c2c;
  --bg-card-hover: #1e273b;
  --bg-panel: rgba(21, 28, 44, 0.95);
  --border-glow: rgba(255, 159, 67, 0.3);
  --border-light: rgba(255, 255, 255, 0.12);

  --color-primary: #ff9f43; /* Sol Quebradeño */
  --color-secondary: #00d2d3; /* Cielo Puna */
  --color-purple: #8c7ae6; /* Cardón Flor / IA */
  --color-text: #f1f5f9;
  --color-muted: #cbd5e1;
  --color-success: #10b981;
  --color-danger: #ef4444;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(255, 159, 67, 0.35);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html, body {
  background-color: #0b0f19 !important;
  color: #f1f5f9 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #ff9f43 !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #00d2d3 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
}

p {
  color: #cbd5e1;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Navbar */
.edu-navbar {
  background: #0b0f19 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff !important;
}

.brand-logo span.accent {
  color: #ff9f43 !important;
}

.brand-logo span.badge-subdomain {
  background: linear-gradient(135deg, #ff9f43, #00d2d3) !important;
  color: #000000 !important;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #cbd5e1 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover, .nav-links a.active {
  color: #ff9f43 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9f43, #e67e22) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.6);
  color: #000000 !important;
}

.btn-secondary {
  background: #151c2c !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #1e273b !important;
  border-color: #ff9f43 !important;
  color: #ff9f43 !important;
}

/* Messages / Alerts */
.messages-container {
  margin: 1rem auto;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success { background: rgba(16, 185, 129, 0.25) !important; border: 1px solid #10b981 !important; color: #6ee7b7 !important; }
.alert-error, .alert-danger { background: rgba(239, 68, 68, 0.25) !important; border: 1px solid #ef4444 !important; color: #fca5a5 !important; }
.alert-warning { background: rgba(245, 158, 11, 0.25) !important; border: 1px solid #f59e0b !important; color: #fcd34d !important; }
.alert-info { background: rgba(0, 210, 211, 0.25) !important; border: 1px solid #00d2d3 !important; color: #99f6e4 !important; }

/* Hero Section */
.hero-edu {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 159, 67, 0.15) !important;
  border: 1px solid #ff9f43 !important;
  color: #ff9f43 !important;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-edu h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-edu h1 span.gradient {
  background: linear-gradient(135deg, #ff9f43, #00d2d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-edu p.lead {
  font-size: 1.15rem;
  color: #cbd5e1 !important;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Feature & Course Cards */
.section-title {
  text-align: center;
  margin: 3rem 0 2rem;
}

.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  color: #ffffff !important;
}

.section-title p {
  color: #cbd5e1 !important;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-panel {
  background: #151c2c !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.course-card {
  background: #151c2c !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: #ff9f43 !important;
  box-shadow: 0 0 25px rgba(255, 159, 67, 0.35);
}

.course-header {
  height: 160px;
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 3.5rem;
  color: #ff9f43 !important;
}

.course-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #ffffff !important;
  font-weight: 600;
}

.course-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

.course-body p {
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.course-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ff9f43 !important;
}

/* LMS Layout & Video Player */
.lms-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin: 2rem 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.video-container iframe, .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sidebar-modules {
  background: #151c2c !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 1.5rem;
  height: fit-content;
}

.module-title {
  font-weight: 700;
  color: #ff9f43 !important;
  margin-bottom: 0.75rem;
}

.lesson-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.lesson-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: #f1f5f9 !important;
  font-size: 0.9rem;
}

.lesson-item.active a {
  background: #ff9f43 !important;
  color: #000000 !important;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px;
  color: #ffffff !important;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #ff9f43 !important;
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer.edu-footer {
  background: #070a12 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  text-align: center;
  color: #cbd5e1 !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero-grid, .lms-layout {
    grid-template-columns: 1fr;
  }
  .hero-edu h1 {
    font-size: 2.1rem;
  }
  .nav-links {
    display: none;
  }
}
