/* Main styles for the Diplomado website */
:root {
  --primary-color: #004a87; /* UASLP blue */
  --secondary-color: #c8102e; /* Faculty of Engineering red */
  --accent-color: #f8a100; /* UASLP gold/yellow */
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --font-main: 'Montserrat', Arial, sans-serif;
  --font-secondary: 'Open Sans', Arial, sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header styles */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 5px 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
}

.top-bar a:hover {
  text-decoration: underline;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 60px;
  margin-right: 20px;
}

.nav-container {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--accent-color);
}

.hero {
  background-image: url("../images/fondo-ia.jpg"); /* Ruta a tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-main);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #e69100;
}

/* Main content sections */
section {
  padding: 60px 0;
}

section h2 {
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* About section */
.about {
  background-color: var(--light-gray);
}

/* Modules section */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.module-card {
  background-color: var(--white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.module-card:hover {
  transform: translateY(-5px);
}

.module-card-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  text-align: center;
}

.module-card-body {
  padding: 20px;
}

.module-card-header h3 {
  color: var(--white); /* Asegura contraste en el encabezado */
}


.module-card ul {
  list-style-position: inside;
  margin-bottom: 15px;
}

/* Target audience section */
.audience {
  background-color: var(--light-gray);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.audience-item {
  text-align: center;
  padding: 20px;
}

.audience-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Registration section */
.registration-info {
  background-color: var(--white);
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.registration-steps {
  margin-top: 30px;
}

.registration-steps ol {
  list-style-position: inside;
  counter-reset: step-counter;
}

.registration-steps li {
  margin-bottom: 15px;
  counter-increment: step-counter;
}

.registration-steps li::before {
  content: counter(step-counter);
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Contact section */
.contact {
  background-color: var(--light-gray);
}

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

.contact-info, .contact-form {
  padding: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.form-group textarea {
  height: 150px;
}

.submit-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #003a6a;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-column ul li a {
  color: var(--white);
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
  }
  
  .logo-container {
    margin-bottom: 20px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
