/**
 * Estilos del componente Agenda
 * 
 * @package Puerto_Sostenible
 */

.agenda {
  padding: 6rem 2rem;
  background: #F8FAFB;
}

.agenda-container {
  max-width: 900px;
  margin: 0 auto;
}

.agenda-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 3rem 0;
  letter-spacing: -0.02em;
}

.agenda-days-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.day-nav {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: none;
}

.day-nav:hover {
  background: rgba(29, 112, 183, 0.1);
}

.day-nav svg {
  display: block;
}

.agenda-days {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.day-tab {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  background: none;
  border: none;
  color: #9ABFDF;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.day-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.day-tab.active {
  color: var(--color-primary);
}

.day-tab.active::after {
  transform: scaleX(1);
}

.day-tab:hover {
  color: var(--color-primary);
}

.agenda-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2rem;
}

.agenda-location svg {
  width: 14px;
  height: 14px;
}

.agenda-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(29, 112, 183, 0.08);
}

.agenda-item:hover {
  box-shadow: 0 4px 16px rgba(29, 112, 183, 0.15);
  transform: translateY(-2px);
}

.agenda-item.coffee-break {
  background: #E5EFF7;
}

.item-time {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.item-content {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.coffee-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.agenda-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  background: none;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  color: var(--color-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.agenda-more:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 112, 183, 0.3);
}

.agenda-more .more-icon {
  width: 18px;
  height: 11px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.agenda-more .loading-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.agenda-more:hover .more-icon {
  transform: translateY(3px);
}

.agenda-more.loading .more-icon {
  display: none;
}

.agenda-more.loading .loading-icon {
  display: block !important;
  animation: spin 1s linear infinite;
}

.agenda-more.hidden {
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.agenda-item.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

@media (max-width: 768px) {
  .agenda {
    padding: 4rem 1.5rem;
  }

  .agenda-title {
    font-size: 36px;
    margin-bottom: 2rem;
  }

  .agenda-days-wrapper {
    margin-bottom: 2rem;
  }

  .day-nav {
    display: block;
  }

  .agenda-days {
    overflow: hidden;
    flex: 1;
  }

  .day-tab {
    font-size: 16px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  .day-tab:not(.active) {
    display: none;
  }

  .agenda-location {
    font-size: 14px;
    padding: 0.6rem 1.2rem;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .item-time {
    font-size: 14px;
    font-weight: 700;
  }

  .item-content {
    font-size: 14px;
  }

  .coffee-icon {
    width: 20px;
    height: 20px;
  }
}
