:root {
  --primary: #1a3a52;
  --secondary: #2c5aa0;
  --accent: #d4a574;
  --accent-red: #e74c3c;
  --dark: #0f1419;
  --light: #f8f9fa;
  --muted: #6c757d;
  --border: #dee2e6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ===== Navbar Customization ===== */
.navbar-dark {
  background-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.div {
  color: rgb(219, 159, 30);
}
.select-option {
  color: rgb(219, 159, 30);
}
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.brand-highlight {
  color: var(--accent);
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.nav-logout {
  color: var(--accent-red) !important;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url("#pattern#pattern")"/></svg>');
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero-badge {
  display: inline-block;
}

.badge {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title .text-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #c89858;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-outline-light {
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Features Section ===== */
.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 1.5rem;
}

.feature-card h5 {
  font-weight: 600;
  color: var(--primary);
}

/* ===== Course Card ===== */
.course-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.course-header {
  padding: 1.5rem;
  background-color: var(--primary);
}

.course-body {
  padding: 1.5rem;
}

.course-info {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== Contact Section ===== */
.contact-form {
  background: var(--light);
  padding: 2rem;
  border-radius: 0.75rem;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 58, 82, 0.25);
}

.contact-info p {
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--dark) !important;
  margin-top: 5rem;
}

footer h6 {
  font-weight: 600;
}

.text-accent {
  color: var(--accent) !important;
}

footer a:hover {
  color: var(--accent) !important;
  transition: color 0.3s ease;
}

/* ===== Utilities ===== */
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--muted) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .row > .col-lg-6 {
    margin-bottom: 1.5rem;
  }
}

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

/* ===== Bootstrap Overrides ===== */
.bg-light {
  background-color: #f5f5f5 !important;
}

.container-lg {
  max-width: 1200px;
}

.tabla-asistencia {
  background-color: #2c5aa0;
}
