/* ========================================
   PROGRAM SECTION STYLES
   ======================================== */

.program-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 60px 20px;
}

.program-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.program-ribbon-img-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.program-ribbon-img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.program-note {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
  margin: 20px 0 40px;
  font-weight: 500;
}

/* ========================================
   TABS
   ======================================== */

.program-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.program-tab {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 15px 30px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.program-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #4a90e2;
}

.program-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-icon {
  font-size: 1.3rem;
}

.tab-text {
  font-size: 1rem;
}

/* ========================================
   DAY CONTAINER
   ======================================== */

.program-day-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.program-day-container.active {
  display: block;
}

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

.day-header {
  text-align: center;
  margin-bottom: 30px;
}

.day-title {
  font-size: 2rem;
  color: #333;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   SESSIONS CONTAINER
   ======================================== */

.program-sessions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================================
   SESSION CARD
   ======================================== */

.program-session {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 5px solid #667eea;
}

.program-session:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Session Types - Different colors */
.scientific-session {
  border-left-color: #667eea;
}

.break-session {
  border-left-color: #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.meal-session {
  border-left-color: #ed8936;
  background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
}

.symposium-session {
  border-left-color: #9f7aea;
}

.keynote-session {
  border-left-color: #f6ad55;
  background: linear-gradient(135deg, #fffaf0 0%, #fed7aa 100%);
}

.roundtable-session {
  border-left-color: #38b2ac;
}

.presentation-session {
  border-left-color: #4299e1;
}

.admin-session {
  border-left-color: #718096;
  background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.poster-session {
  border-left-color: #ed64a6;
}

.closing-session {
  border-left-color: #f56565;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

/* ========================================
   SESSION HEADER
   ======================================== */

.session-header {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.9);
  flex-wrap: wrap;
}

.session-time {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  flex-shrink: 0;
}

.time-icon {
  font-size: 1.5rem;
}

.time-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.session-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  flex: 1;
  line-height: 1.4;
}

.session-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #667eea;
  font-weight: 600;
  background: #f0f4ff;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.speaker-icon {
  font-size: 1.1rem;
}

.speaker-name {
  font-size: 0.95rem;
}

/* ========================================
   SESSION CONTENT
   ======================================== */

.session-content {
  padding: 0 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 15px;
  background: #f7fafc;
  border-radius: 10px;
  border-left: 3px solid #cbd5e0;
  transition: all 0.2s ease;
}

.session-item:hover {
  background: #edf2f7;
  border-left-color: #667eea;
  transform: translateX(5px);
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-activity {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

.item-speaker {
  font-size: 0.95rem;
  color: #667eea;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-speaker::before {
  content: "👤";
  font-size: 0.9rem;
}

.item-time {
  min-width: 70px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #718096;
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: center;
}

/* Moderator Item */
.moderator-item {
  background: linear-gradient(135deg, #ebf4ff 0%, #e1e9f8 100%);
  border-left-color: #4299e1;
  font-style: italic;
}

.moderator-item .item-activity {
  color: #2c5282;
  font-size: 0.95rem;
  font-weight: 500;
}

.moderator-item::before {
  content: "👥";
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Q&A Item */
.qa-item {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-left-color: #48bb78;
  justify-content: space-between;
}

.qa-item .item-activity {
  color: #22543d;
  font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .program-section {
    padding: 40px 15px;
  }
  
  .program-ribbon-img {
    max-width: 300px;
  }
  
  .program-note {
    font-size: 1rem;
  }
  
  .program-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
  }
  
  .tab-icon {
    font-size: 1.1rem;
  }
  
  .tab-text {
    font-size: 0.85rem;
  }
  
  .day-title {
    font-size: 1.5rem;
  }
  
  .session-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }
  
  .session-time {
    min-width: auto;
  }
  
  .time-text {
    font-size: 1rem;
  }
  
  .session-title {
    font-size: 1.05rem;
  }
  
  .session-speaker {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.9rem;
  }
  
  .session-content {
    padding: 0 20px 15px;
    gap: 12px;
  }
  
  .session-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .item-activity {
    font-size: 0.95rem;
  }
  
  .item-speaker {
    font-size: 0.9rem;
  }
  
  .item-time {
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 3px 10px;
  }
}

@media (max-width: 480px) {
  .program-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .program-tab {
    width: 100%;
    justify-content: center;
  }
  
  .session-header {
    padding: 12px 15px;
  }
  
  .session-content {
    padding: 0 15px 12px;
  }
  
  .session-item {
    padding: 8px 10px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .program-tabs {
    display: none;
  }
  
  .program-day-container {
    display: block !important;
    page-break-before: always;
  }
  
  .program-day-container:first-child {
    page-break-before: avoid;
  }
  
  .program-session {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }
  
  .session-item {
    page-break-inside: avoid;
  }
}

/* ========================================
   SCROLL BEHAVIOR
   ======================================== */

html {
  scroll-behavior: smooth;
}

.program-sessions {
  max-height: none;
  overflow: visible;
}

/* Para tabletas en landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .session-header {
    gap: 15px;
  }
  
  .session-time {
    min-width: 130px;
  }
  
  .session-title {
    font-size: 1.1rem;
  }
}
