:root {
  --primary-accent: #1DC0D6;
  --secondary-accent: #F9DD20;
  --primary-dark: #004A6D;
  --highlight-red: #FF0000;
  --success-green: #7FB539;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #2c3e50;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.programa-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-accent) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') center/50px 50px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-accent), var(--success-green));
  margin: 0 auto;
  border-radius: 2px;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
  position: relative;
}

.content-section:nth-child(even) {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--success-green));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--primary-accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--primary-dark));
  margin: 0 auto;
  border-radius: 2px;
}

/* Event Overview */
.event-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.overview-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-accent);
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.overview-card:nth-child(2) { border-left-color: var(--success-green); }
.overview-card:nth-child(3) { border-left-color: var(--secondary-accent); }
.overview-card:nth-child(4) { border-left-color: var(--primary-dark); }

.overview-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.overview-card:nth-child(1) .overview-icon { background: var(--primary-accent); }
.overview-card:nth-child(2) .overview-icon { background: var(--success-green); }
.overview-card:nth-child(3) .overview-icon { background: var(--secondary-accent); color: var(--primary-dark); }
.overview-card:nth-child(4) .overview-icon { background: var(--primary-dark); }

.overview-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.overview-content p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.overview-content small {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* Schedule Container */
.schedule-container {
  max-width: 1000px;
  margin: 0 auto;
}

.schedule-day {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  margin-bottom: 2rem;
}

.day-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-accent) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.day-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.day-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Timeline */
.schedule-timeline {
  padding: 2rem;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4rem;
  top: 5rem;
  width: 2px;
  height: calc(100% - 3rem);
  background: linear-gradient(180deg, var(--primary-accent), var(--light-gray));
  z-index: 1;
}

.timeline-time {
  flex-shrink: 0;
  width: 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.time-hour {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.time-period {
  display: block;
  font-size: 0.9rem;
  color: var(--medium-gray);
  font-weight: 500;
}

.timeline-content {
  flex: 1;
}

/* Session Cards */
.session-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border-left: 5px solid;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.session-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(29, 192, 214, 0.3), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.session-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.session-card:hover::before {
  transform: scaleX(1);
}

/* Session Card Types */
.session-card.registration { border-left-color: var(--success-green); }
.session-card.opening { border-left-color: var(--primary-accent); }
.session-card.keynote { border-left-color: var(--primary-dark); }
.session-card.presentation { border-left-color: var(--secondary-accent); }
.session-card.break { border-left-color: var(--medium-gray); }
.session-card.panel { border-left-color: var(--success-green); }
.session-card.closing { border-left-color: var(--primary-accent); }

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.session-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.session-type {
  background: var(--primary-accent);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.session-card.keynote .session-type { background: var(--primary-dark); }
.session-card.presentation .session-type { background: var(--secondary-accent); color: var(--primary-dark); }
.session-card.break .session-type { background: var(--medium-gray); }
.session-card.panel .session-type { background: var(--success-green); }

.session-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.session-location,
.session-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.session-location i,
.session-duration i {
  color: var(--primary-accent);
  font-size: 0.9rem;
}

.session-speakers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.speaker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.speaker i {
  color: var(--primary-accent);
  font-size: 0.9rem;
  width: 16px;
}

.session-institution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--light-gray);
  border-radius: 10px;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.session-institution i {
  color: var(--primary-accent);
  font-size: 1rem;
}

.session-description {
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-accent);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.info-card:nth-child(2) { border-top-color: var(--success-green); }
.info-card:nth-child(3) { border-top-color: var(--secondary-accent); }

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
  background: var(--primary-accent);
}

.info-card:nth-child(2) .info-icon { background: var(--success-green); }
.info-card:nth-child(3) .info-icon { background: var(--secondary-accent); color: var(--primary-dark); }

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .content-section {
    padding: 3rem 0;
  }
  
  .event-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .overview-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-item:not(:last-child)::after {
    display: none;
  }
  
  .timeline-time {
    width: auto;
    text-align: left;
  }
  
  .session-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .session-details {
    flex-direction: column;
    gap: 1rem;
  }
  
  .session-speakers {
    gap: 0.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .schedule-timeline {
    padding: 1.5rem;
  }
  
  .session-card {
    padding: 1.5rem;
  }
  
  .session-title {
    font-size: 1.2rem;
  }
  
  .day-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .hero-section {
    background: var(--primary-dark);
  }
  
  .session-card {
    border: 2px solid var(--primary-dark);
  }
  
  .session-type {
    border: 1px solid var(--primary-dark);
  }
}

/* Focus styles for keyboard navigation */
.session-card:focus,
.overview-card:focus,
.info-card:focus {
  outline: 3px solid var(--secondary-accent);
  outline-offset: 2px;
}