/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  font-weight: 300;
}

/* Navegación */
.nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  padding: 1rem 0;
}

.nav-list a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-list a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Main content */
.main {
  padding: 3rem 0;
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2.2rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid de sesiones */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.session-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.session-header h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
}

.date {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.session-card h4 {
  color: #34495e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.session-card p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.session-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.session-files h5 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.session-files ul {
  list-style: none;
}

.session-files li {
  margin-bottom: 0.5rem;
}

.session-files a {
  color: #7f8c8d;
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  transition: all 0.3s ease;
  border-radius: 5px;
  padding-left: 0.5rem;
}

.session-files a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding-left: 1rem;
}

/* Grid de proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Grid de recursos */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.resource-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resource-card ul {
  list-style: none;
}

.resource-card li {
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  position: relative;
}

.resource-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.resource-card a {
  color: #7f8c8d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.resource-card a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Sección Acerca */
.about-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-text h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  margin-top: 2rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: #7f8c8d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-text ul {
  list-style: none;
  margin-left: 1rem;
}

.about-text li {
  color: #7f8c8d;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.about-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer strong {
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .sessions-grid {
    grid-template-columns: 1fr;
  }

  .session-links {
    flex-direction: column;
  }

  .projects-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .session-card,
  .project-card,
  .resource-card,
  .about-content {
    padding: 1.5rem;
  }

  .session-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.session-card,
.project-card,
.resource-card {
  animation: fadeInUp 0.6s ease-out;
}

.session-card:nth-child(1) {
  animation-delay: 0.1s;
}
.session-card:nth-child(2) {
  animation-delay: 0.2s;
}
.session-card:nth-child(3) {
  animation-delay: 0.3s;
}
.session-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Estilos para enlaces internos */
a[href^="#"] {
  scroll-margin-top: 100px;
}
