/* =========================================
   MAIN.CSS - Archivo principal que importa todos los módulos
   ========================================= */

/* Importar estilos base */
@import '/assets/css/base.css';

/* Importar estructura y layout */
@import '/assets/css/layout.css';

/* Importar componentes */
@import '/assets/css/components.css';

/* Importar estilos específicos */
@import '/assets/css/admin.css';
@import '/assets/css/cursos.css';
@import '/assets/css/usuarios.css';
@import '/assets/css/dashboard.css';
@import '/assets/css/perfil.css';
@import '/assets/css/felicitacion.css';
@import '/assets/css/modulo.css';
@import '/assets/css/asistentaai.css';

/* Colores institucionales */
:root {
  --primary: #1F2D3D;         /* Azul marino como color principal */
  --primary-dark: #162231;    /* Variante oscura del azul marino */
  --primary-light: #2C3E50;   /* Variante clara del azul marino */
  
  --secondary: #8AFF41;       /* Verde Iguana70 como color secundario/acento */
  --secondary-dark: #6ED828;  /* Variante oscura del verde */
  --secondary-light: #A3FF66; /* Variante clara del verde */
  
  --light: #FFFFFF;           /* Color claro/blanco */
  --dark: #1A1A1A;            /* Color oscuro/negro */

  /* Configuración del hero */
  --hero-bg: var(--primary);      /* Azul marino para el fondo del hero */
  --hero-text: #FFFFFF;           /* Texto blanco para hero */

  /* Variables de espaciado */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Transiciones */
  --transition-fast: 0.3s ease;
}

/* Barra superior con texto oscuro para mejor legibilidad */
.top-bar, 
header {
  color: var(--primary-dark);
}

.top-bar a, 
.top-bar span, 
.top-bar i, 
header a, 
.main-navigation a,
.nav-menu a,
.site-header a,
.navbar a, 
.navbar span,
.navbar i {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Elementos específicos de la barra superior */
[href^="tel:"], 
[href^="mailto:"],
.contact-info a,
.contact-details a,
.auth-links a,
.user-actions a {
  color: var(--primary-dark) !important;
}

/* Sobreescribir estilos específicos del hero para usar colores institucionales */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--light);
}

/* Estilos del footer */
.footer, .main-footer {
  background-color: var(--primary-dark);
  color: var(--light);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-logo {
  margin-bottom: var(--spacing-lg);
}

.footer-logo img {
  max-width: 180px;
  height: auto;
}

.footer-about {
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links h3, .footer h3 {
  color: var(--light);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-links h3:after, .footer h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul, .footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer li {
  margin-bottom: 8px;
}

.footer-links a, .footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover, .footer a:hover {
  color: var(--secondary);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Correcciones para tarjetas de cursos que coincidan con el diseño de la imagen */
.curso-card {
  border: none;
  background-color: var(--light);
}

.curso-image {
  height: 220px;
}

.curso-level {
  background-color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Ajustes de colores institucionales para elementos de enfoque */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Asegurarnos que los headers de sección tengan los colores correctos */
.section-header h2:after {
  background-color: var(--secondary);
}

/* =========================================
   MEJORAS DE LEGIBILIDAD Y ESTÉTICA
   ========================================= */

/* Mejora de contrastes para textos */
body {
  color: #333333; /* Texto más oscuro para mejor legibilidad */
}

h1, h2, h3, h4, h5, h6 {
  color: #1A1A1A; /* Títulos más oscuros */
  margin-bottom: 1rem; /* Más espacio después de los títulos */
}

p {
  line-height: 1.6; /* Más espacio entre líneas para mejor legibilidad */
}

/* Mejoras para el hero */
.hero-section {
  padding: 5rem 0; /* Más espacio vertical */
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* Sobrecapa sutil para mejorar contraste */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Sombra sutil para mejorar legibilidad */
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilos mejorados para el banner principal */
.hero-section {
  background-color: var(--primary); /* Azul marino */
  padding: 5rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* Sobrecapa sutil para mejorar contraste */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 0 0 50%;
  padding-right: 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Sombra sutil para mejorar legibilidad */
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-light {
  background-color: var(--secondary); /* Verde */
  color: var(--primary-dark); /* Azul marino oscuro para texto */
  border: none;
}

.btn-light:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero-image {
  flex: 0 0 40%;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  max-width: 130%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Estilos responsivos para tablets */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    margin-bottom: 2rem;
    padding-right: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Mejoras para los botones */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mejoras para las tarjetas de cursos */
.curso-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: white;
  height: 100%;
}

.curso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.curso-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.curso-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.curso-card:hover .curso-image img {
  transform: scale(1.05);
}

.curso-level {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--secondary);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.curso-content {
  padding: 1.5rem;
}

.curso-content h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.curso-content h3 a {
  color: var(--dark);
  transition: color 0.3s ease;
}

.curso-content h3 a:hover {
  color: var(--secondary);
}

.curso-instructor, .curso-duration {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.curso-instructor i, .curso-duration i {
  margin-right: 0.5rem;
  color: var(--secondary);
}

.curso-description {
  margin: 1rem 0;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.5;
}

.curso-actions {
  margin-top: auto;
}

/* Estilos para la sección "Por qué elegirnos" */
.features-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(138, 255, 65, 0.2); /* Verde claro semi-transparente */
  border-radius: 50%;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--secondary); /* Verde Iguana70 */
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Estilos responsivos */
@media (max-width: 992px) {
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 20px;
  }
}

/* Mejoras para el CTA */
.cta-section {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), transparent);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
  background-color: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
}

.cta-section .btn-primary:hover {
  background-color: var(--secondary-light);
}

/* Mejoras para el footer */
.footer, .main-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer h3, .main-footer h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h3::after, .main-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer a, .main-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer a:hover, .main-footer a:hover {
  color: var(--secondary);
}

.footer ul, .main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li, .main-footer li {
  margin-bottom: 0.75rem;
}

.footer p, .main-footer p {
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mejoras generales de espaciado */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
}