/* eventosVideos.css */
:root {
  --eventoVideosPrimary: #c1272d;
  --eventoVideosPrimaryDark: #7b0f14;
  --eventoVideosSecondary: #2d3748;
  --eventoVideosAccent: #4299e1;
  --eventoVideosSuccess: #38a169;
  --eventoVideosWarning: #d69e2e;
  --eventoVideosInfo: #4299e1;
  --eventoVideosLight: #f8fafc;
  --eventoVideosDark: #1a202c;
  --eventoVideosGray: #718096;
  --eventoVideosBorder: #e2e8f0;
  --eventoVideosCardBg: #ffffff;
  --eventoVideosShadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --eventoVideosShadowHover: 0 40px 80px rgba(0, 0, 0, 0.15);
  --eventoVideosRadius: 20px;
  --eventoVideosTransition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --eventoVideosGradient: linear-gradient(135deg, #c1272d 0%, #7b0f14 100%);
  --eventoVideosCourseGradient: linear-gradient(
    135deg,
    #4299e1 0%,
    #3182ce 100%
  );
  --eventoVideosDiplomaGradient: linear-gradient(
    135deg,
    #38a169 0%,
    #2f855a 100%
  );
}

/* Reset y estilos base */
.eventoVideosBody {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--eventoVideosSecondary);
  background-color: var(--eventoVideosLight);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.eventoVideosContainer {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Hero Section */
.eventoVideosHero {
  background: var(--eventoVideosGradient);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.eventoVideosHero::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 1200 600" opacity="0.1"><path d="M0,0V600H1200V0ZM600,300A150,150,0,1,1,750,450,150,150,0,0,1,600,300Z"/></svg>')
    center/cover;
}

.eventoVideosHeroContent {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  animation: eventoVideosFadeUp 0.8s ease-out;
}

.eventoVideosBreadcrumb {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 20px;
}

.eventoVideosBreadcrumb a {
  color: #ffd700;
  text-decoration: none;
  transition: var(--eventoVideosTransition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.eventoVideosBreadcrumb a:hover {
  color: white;
  transform: translateX(3px);
}

.eventoVideosBreadcrumb span {
  color: white;
  opacity: 0.9;
}

.eventoVideosTitle {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.eventoVideosSubtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  margin: 0;
}

/* Main Content */
.eventoVideosMain {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  animation: eventoVideosFadeIn 0.6s ease-out;
}

/* Search Form */
.eventoVideosSearch {
  background: var(--eventoVideosCardBg);
  padding: 40px;
  border-radius: var(--eventoVideosRadius);
  box-shadow: var(--eventoVideosShadow);
  margin-bottom: 40px;
  transition: var(--eventoVideosTransition);
}

.eventoVideosSearch:hover {
  box-shadow: var(--eventoVideosShadowHover);
  transform: translateY(-5px);
}

.eventoVideosSearchForm {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

@media (max-width: 1024px) {
  .eventoVideosSearchForm {
    grid-template-columns: 1fr;
  }
}

.eventoVideosFormGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eventoVideosFormLabel {
  font-weight: 600;
  color: var(--eventoVideosSecondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eventoVideosFormLabel i {
  color: var(--eventoVideosPrimary);
}

.eventoVideosInput {
  padding: 16px 20px;
  border: 2px solid var(--eventoVideosBorder);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--eventoVideosTransition);
  background: var(--eventoVideosLight);
  color: var(--eventoVideosSecondary);
}

.eventoVideosInput:focus {
  outline: none;
  border-color: var(--eventoVideosPrimary);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

.eventoVideosInputGroup {
  position: relative;
  display: flex;
  align-items: center;
}

.eventoVideosInputGroup .eventoVideosInput {
  flex: 1;
  padding-right: 50px;
}

.eventoVideosCalendarButton {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--eventoVideosGray);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--eventoVideosTransition);
}

.eventoVideosCalendarButton:hover {
  color: var(--eventoVideosPrimary);
  transform: scale(1.1);
}

.eventoVideosSearchButton {
  padding: 16px 40px;
  background: var(--eventoVideosPrimary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--eventoVideosTransition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.eventoVideosSearchButton:hover {
  background: var(--eventoVideosPrimaryDark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(193, 39, 45, 0.3);
}

/* Videos Grid */
.eventoVideosGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .eventoVideosGrid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .eventoVideosGrid {
    grid-template-columns: 1fr;
  }
}

.eventoVideosCard {
  background: var(--eventoVideosCardBg);
  border-radius: var(--eventoVideosRadius);
  overflow: hidden;
  box-shadow: var(--eventoVideosShadow);
  transition: var(--eventoVideosTransition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.eventoVideosCard:hover {
  transform: translateY(-10px);
  box-shadow: var(--eventoVideosShadowHover);
}

.eventoVideosCardBadge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--eventoVideosPrimary);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.eventoVideosCardImage {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.eventoVideosCardImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--eventoVideosTransition);
}

.eventoVideosCard:hover .eventoVideosCardImage img {
  transform: scale(1.1);
}

.eventoVideosCardPlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eventoVideosPrimary);
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--eventoVideosTransition);
}

.eventoVideosCard:hover .eventoVideosCardPlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.eventoVideosCardContent {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eventoVideosCardTitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--eventoVideosSecondary);
  margin: 0 0 15px 0;
  line-height: 1.4;
  transition: var(--eventoVideosTransition);
}

.eventoVideosCard:hover .eventoVideosCardTitle {
  color: var(--eventoVideosPrimary);
}

.eventoVideosCardDate {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eventoVideosGray);
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--eventoVideosBorder);
}

.eventoVideosCardDate i {
  color: var(--eventoVideosPrimary);
}

/* No Results */
.eventoVideosNoResults {
  text-align: center;
  padding: 80px 40px;
  background: var(--eventoVideosCardBg);
  border-radius: var(--eventoVideosRadius);
  box-shadow: var(--eventoVideosShadow);
  grid-column: 1 / -1;
}

.eventoVideosNoResultsIcon {
  font-size: 4rem;
  color: var(--eventoVideosGray);
  margin-bottom: 20px;
}

.eventoVideosNoResults h2 {
  color: var(--eventoVideosSecondary);
  font-size: 2rem;
  margin: 0 0 15px 0;
}

.eventoVideosNoResults p {
  color: var(--eventoVideosGray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pagination */
.eventoVideosPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.eventoVideosPaginationLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  background: var(--eventoVideosCardBg);
  color: var(--eventoVideosSecondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--eventoVideosTransition);
  border: 2px solid var(--eventoVideosBorder);
}

.eventoVideosPaginationLink:hover,
.eventoVideosPaginationLinkActive {
  background: var(--eventoVideosPrimary);
  color: white;
  border-color: var(--eventoVideosPrimary);
  transform: translateY(-2px);
}

.eventoVideosPaginationEllipsis {
  color: var(--eventoVideosGray);
  padding: 0 10px;
}

/* Sidebar */
.eventoVideosSidebar {
  animation: eventoVideosFadeIn 0.6s ease-out 0.2s both;
}

.eventoVideosSidebarCard {
  background: var(--eventoVideosCardBg);
  border-radius: var(--eventoVideosRadius);
  box-shadow: var(--eventoVideosShadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--eventoVideosTransition);
}

.eventoVideosSidebarCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--eventoVideosShadowHover);
}

.eventoVideosSidebarHeader {
  background: var(--eventoVideosGradient);
  color: white;
  padding: 25px;
}

.eventoVideosSidebarTitle {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eventoVideosSidebarTitle i {
  font-size: 1.3rem;
}

.eventoVideosSidebarContent {
  padding: 25px;
}

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

.eventoVideosSidebarItem {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--eventoVideosBorder);
  text-decoration: none;
  color: var(--eventoVideosSecondary);
  transition: var(--eventoVideosTransition);
}

.eventoVideosSidebarItem:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eventoVideosSidebarItem:hover {
  transform: translateX(5px);
  color: var(--eventoVideosPrimary);
}

.eventoVideosSidebarDate {
  font-size: 0.9rem;
  color: var(--eventoVideosGray);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eventoVideosSidebarItemTitle {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .eventoVideosMain {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }

  .eventoVideosHeroContent,
  .eventoVideosMain {
    padding-left: 30px;
    padding-right: 30px;
  }

  .eventoVideosTitle {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .eventoVideosHero {
    padding: 60px 0 40px;
  }

  .eventoVideosTitle {
    font-size: 2.2rem;
  }

  .eventoVideosSubtitle {
    font-size: 1.1rem;
  }

  .eventoVideosHeroContent,
  .eventoVideosMain {
    padding-left: 20px;
    padding-right: 20px;
  }

  .eventoVideosSearch {
    padding: 30px;
  }

  .eventoVideosSearchForm {
    gap: 15px;
  }

  .eventoVideosCardImage {
    height: 180px;
  }

  .eventoVideosCardContent {
    padding: 20px;
  }

  .eventoVideosCardTitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .eventoVideosHero {
    padding: 40px 0 30px;
  }

  .eventoVideosTitle {
    font-size: 1.8rem;
  }

  .eventoVideosSubtitle {
    font-size: 1rem;
  }

  .eventoVideosBreadcrumb {
    font-size: 14px;
  }

  .eventoVideosHeroContent,
  .eventoVideosMain {
    padding-left: 15px;
    padding-right: 15px;
  }

  .eventoVideosSearch {
    padding: 20px;
  }

  .eventoVideosInput {
    padding: 14px 16px;
  }

  .eventoVideosSearchButton {
    padding: 14px 30px;
    min-height: 52px;
  }

  .eventoVideosGrid {
    gap: 15px;
  }

  .eventoVideosCardImage {
    height: 160px;
  }

  .eventoVideosCardContent {
    padding: 15px;
  }

  .eventoVideosCardTitle {
    font-size: 1.1rem;
  }

  .eventoVideosNoResults {
    padding: 50px 20px;
  }

  .eventoVideosNoResults h2 {
    font-size: 1.5rem;
  }

  .eventoVideosNoResults p {
    font-size: 1rem;
  }
}

/* Flatpickr Customization */
.flatpickr-calendar {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  border-radius: var(--eventoVideosRadius) !important;
  box-shadow: var(--eventoVideosShadow) !important;
  border: 1px solid var(--eventoVideosBorder) !important;
}

.flatpickr-day.selected {
  background: var(--eventoVideosPrimary) !important;
  border-color: var(--eventoVideosPrimary) !important;
}

.flatpickr-day:hover {
  background: var(--eventoVideosLight) !important;
  border-color: var(--eventoVideosBorder) !important;
}

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

.eventoVideosCard:focus-within,
.eventoVideosSidebarItem:focus-within,
.eventoVideosSearchButton:focus,
.eventoVideosInput:focus,
.eventoVideosPaginationLink:focus {
  outline: 3px solid var(--eventoVideosAccent);
  outline-offset: 3px;
}
