#custom-cursor, #cursor-trail { display: none !important; }

#header-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
header { position: relative; overflow: hidden; }
.logo-box { position: relative; z-index: 3; }

.toast-notification {
  position: fixed;
  bottom: 100px; right: 26px;
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(111,29,90,0.18), 0 0 0 1px rgba(200,155,44,0.15);
  z-index: 900;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
  opacity: 0;
  max-width: 280px;
  border-left: 3px solid var(--dorado);
}
.toast-notification.show { transform: translateX(0); opacity: 1; }
.toast-notification.hide { transform: translateX(120%); opacity: 0; }
.toast-icon { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--vino), var(--dorado)); display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; flex-shrink: 0; }
.toast-title { font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; color: var(--vino); letter-spacing: 0.5px; }
.toast-msg { font-size: 12px; color: var(--texto-suave); margin-top: 2px; line-height: 1.4; }

.countdown-widget {
  position: fixed;
  top: 170px; right: 16px;
  background: linear-gradient(135deg, var(--vino-dark), var(--vino));
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 89;
  box-shadow: 0 8px 32px rgba(111,29,90,0.4), 0 0 0 1px rgba(200,155,44,0.25);
  min-width: 160px;
  border: 1px solid rgba(200,155,44,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.countdown-widget:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(111,29,90,0.5); }
.countdown-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dorado-light); display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.countdown-title { font-family: 'Playfair Display', serif; font-size: 11px; color: rgba(255,255,255,0.85); margin-bottom: 10px; line-height: 1.3; }
.countdown-timer { display: flex; align-items: center; gap: 4px; }
.countdown-unit { text-align: center; }
.countdown-unit span { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--dorado-light); display: block; line-height: 1; text-shadow: 0 0 12px rgba(200,155,44,0.5); }
.countdown-unit small { font-size: 8px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-top: 2px; }
.countdown-sep { font-size: 18px; font-weight: 800; color: var(--dorado); align-self: flex-start; padding-top: 2px; }

.slide img { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide.active img { transform: scale(1.04); }
.slides { transition: transform 0.85s cubic-bezier(0.77,0,0.18,1); }

.slide.exiting { animation: slideZoomOut 0.85s cubic-bezier(0.77,0,0.18,1) forwards; }
@keyframes slideZoomOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.96); opacity: 0.7; } }

.card { transform-style: preserve-3d; will-change: transform; }
.card-shimmer {
  position: absolute;
  top: -100%; left: -100%;
  width: 60%; height: 60%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: rotate(30deg);
  transition: top 0.6s ease, left 0.6s ease;
  pointer-events: none;
}
.card:hover .card-shimmer { top: 150%; left: 150%; }
.card-counter {
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--texto-suave);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.card-counter .counter { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: var(--vino); line-height: 1; }
.counter-label { font-size: 11px; color: var(--texto-suave); }

.animated-border {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(var(--blanco), var(--blanco)) padding-box;
  border: 3px solid transparent;
  animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder {
  0%   { border-image: linear-gradient(0deg, var(--vino), var(--dorado), var(--vino-light), var(--dorado)) 1; }
  25%  { border-image: linear-gradient(90deg, var(--vino), var(--dorado), var(--vino-light), var(--dorado)) 1; }
  50%  { border-image: linear-gradient(180deg, var(--vino), var(--dorado), var(--vino-light), var(--dorado)) 1; }
  75%  { border-image: linear-gradient(270deg, var(--vino), var(--dorado), var(--vino-light), var(--dorado)) 1; }
  100% { border-image: linear-gradient(360deg, var(--vino), var(--dorado), var(--vino-light), var(--dorado)) 1; }
}

.typewriter-cursor {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--dorado);
  margin-top: 14px;
  min-height: 20px;
  font-style: italic;
}
.typewriter-cursor::after { content: '|'; animation: blinkCursor 0.7s infinite; }
@keyframes blinkCursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.scroll-reveal, .scroll-reveal-left, .scroll-reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.scroll-reveal { transform: translateY(40px); }
.scroll-reveal-left { transform: translateX(-50px); }
.scroll-reveal-right { transform: translateX(50px); }
.scroll-reveal.visible, .scroll-reveal-left.visible, .scroll-reveal-right.visible {
  opacity: 1; transform: translate(0);
}

.eventos-timeline { position: relative; padding-left: 30px; }
.timeline-line {
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--vino), var(--dorado), var(--vino-light));
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1s ease;
}
.timeline-line.visible { transform: scaleY(1); }
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vino), var(--dorado));
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--vino), 0 0 12px rgba(200,155,44,0.5);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.timeline-item.visible .timeline-dot { opacity: 1; }

.galeria-coming { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.galeria-icon-anim { position: relative; width: 100px; height: 100px; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; }
.galeria-icon-anim i { font-size: 42px; color: var(--vino); z-index: 2; position: relative; }
.galeria-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--dorado);
  animation: pulseRing 2s ease-out infinite;
}
.galeria-ring2 { animation-delay: 1s; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.comites-section {
  position: relative;
  min-height: 100vh;
  padding: 80px 24px 100px;
  background: linear-gradient(135deg, #0d0820 0%, #1a0635 30%, #0d2140 60%, #1a0d2a 100%);
  overflow: hidden;
}

#comites-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.comites-bg-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: radial-gradient(var(--vino), transparent); top: -100px; left: -100px; animation-duration: 9s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(var(--dorado), transparent); bottom: -80px; right: -80px; animation-duration: 11s; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(#1a4080, transparent); top: 50%; left: 50%; animation-duration: 13s; animation-delay: -6s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.98); }
}

.comites-container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }

.comites-header { margin-bottom: 60px; }
.comites-badge {
  background: linear-gradient(135deg, rgba(200,155,44,0.2), rgba(200,155,44,0.1));
  border: 1px solid rgba(200,155,44,0.4);
  color: var(--dorado-light);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 3px;
  padding: 8px 22px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.comites-title {
  color: white !important;
  font-size: 48px !important;
  text-shadow: 0 0 40px rgba(200,155,44,0.3);
}
.comites-subtitle-line {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-top: 12px;
  letter-spacing: 0.3px;
}
.comites-divider { background: linear-gradient(90deg, var(--dorado), var(--dorado-light), var(--dorado)); height: 2px; width: 80px; margin: 20px auto 0; box-shadow: 0 0 12px rgba(200,155,44,0.5); }

.comites-directiva-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 40px;
  margin-top: 20px;
}

.directiva-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.directiva-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.directiva-card:hover { transform: translateY(-10px) scale(1.03) !important; }

.directiva-ring-outer {
  width: 160px; height: 160px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(200,155,44,0.3), rgba(111,29,90,0.3));
  animation: spinOuter 12s linear infinite;
  position: relative;
  animation: none;
}
.directiva-ring-outer::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--dorado);
  border-right-color: rgba(200,155,44,0.3);
  animation: spinOuter 8s linear infinite;
}
.directiva-ring-outer::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(200,155,44,0.2);
  animation: spinOuter 20s linear infinite reverse;
}

.directiva-ring-middle {
  width: 100%; height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(225deg, rgba(111,29,90,0.4), rgba(200,155,44,0.2));
  animation: spinOuter 16s linear infinite reverse;
    animation: none; 

}
.directiva-ring-middle::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(200,155,44,0.5);
  border-left-color: rgba(200,155,44,0.2);
  animation: spinOuter 10s linear infinite;
}

.directiva-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--vino-dark), #1a0035);
}

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

.directiva-foto-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a0635, #0d2140);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(200,155,44,0.2);
  transition: border-color 0.3s ease;
}
.directiva-card:hover .directiva-foto-circle { border-color: var(--dorado); }

.directiva-foto-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.directiva-card:hover .directiva-foto-circle img { transform: scale(1.08); }

.directiva-foto-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(111,29,90,0.3), rgba(13,33,64,0.5));
  transition: background 0.3s ease;
}
.directiva-foto-placeholder i {
  font-size: 38px;
  color: rgba(200,155,44,0.4);
  transition: color 0.3s ease, transform 0.3s ease;
}
.directiva-card:hover .directiva-foto-placeholder i { color: var(--dorado); transform: scale(1.15); }

.directiva-ring-outer {
  box-shadow: 0 0 0 rgba(200,155,44,0), 0 0 30px rgba(111,29,90,0.3);
  transition: box-shadow 0.4s ease;
}
.directiva-card:hover .directiva-ring-outer {
  box-shadow: 0 0 30px rgba(200,155,44,0.4), 0 0 60px rgba(200,155,44,0.15), 0 0 100px rgba(111,29,90,0.3);
}

.directiva-presidente .directiva-ring-outer {
  width: 190px; height: 190px;
  animation-duration: 6s;
}
.directiva-presidente .directiva-ring-outer::before { border-top-color: var(--dorado-light); }
.directiva-presidente .directiva-ring-outer { box-shadow: 0 0 40px rgba(200,155,44,0.5), 0 0 80px rgba(200,155,44,0.2); }
.directiva-corona {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--dorado), var(--dorado-light));
  color: var(--vino-dark);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 14px rgba(200,155,44,0.8), 0 0 28px rgba(200,155,44,0.4);
  z-index: 10;
  animation: crownPulse 2s ease-in-out infinite;
}
@keyframes crownPulse {
  0%,100% { box-shadow: 0 0 14px rgba(200,155,44,0.8), 0 0 28px rgba(200,155,44,0.4); transform: translateX(-50%) scale(1); }
  50% { box-shadow: 0 0 24px rgba(200,155,44,1), 0 0 50px rgba(200,155,44,0.6); transform: translateX(-50%) scale(1.1); }
}

.directiva-info {
  text-align: center;
  position: relative;
}
.directiva-cargo {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 5px;
  opacity: 0.9;
}
.directiva-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(200,155,44,0.2);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.directiva-card:hover .directiva-nombre {
  color: var(--dorado-light);
  text-shadow: 0 0 20px rgba(200,155,44,0.5);
}
.directiva-especialidad {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

.directiva-sparkles {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  pointer-events: none;
}
.directiva-sparkles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--dorado);
  opacity: 0;
  box-shadow: 0 0 6px var(--dorado), 0 0 12px rgba(200,155,44,0.5);
}
.directiva-sparkles span:nth-child(1) { top: 15%; left: 8%; animation: sparkle 3s ease-in-out 0.2s infinite; }
.directiva-sparkles span:nth-child(2) { top: 5%; left: 50%; animation: sparkle 2.5s ease-in-out 0.7s infinite; }
.directiva-sparkles span:nth-child(3) { top: 20%; right: 8%; animation: sparkle 3.5s ease-in-out 1.1s infinite; }
.directiva-sparkles span:nth-child(4) { top: 70%; left: 5%; animation: sparkle 2.8s ease-in-out 0.4s infinite; }
.directiva-sparkles span:nth-child(5) { top: 75%; right: 5%; animation: sparkle 3.2s ease-in-out 0.9s infinite; }
@keyframes sparkle {
  0%,100% { opacity: 0; transform: scale(0); }
  20%,80% { opacity: 0; }
  50% { opacity: 1; transform: scale(1.5); }
}
.directiva-card:hover .directiva-sparkles span { animation-duration: 1.2s; }

.comites-nota {
  text-align: center;
  margin-top: 60px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,155,44,0.15);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.comites-nota i { color: var(--dorado); opacity: 0.5; flex-shrink: 0; }

@media (max-width: 768px) {
  .countdown-widget { display: none; }
  .comites-directiva-grid { gap: 40px 20px; }
  .directiva-ring-outer { width: 130px; height: 130px; }
  .directiva-presidente .directiva-ring-outer { width: 155px; height: 155px; }
  .directiva-foto-placeholder i { font-size: 30px; }
  .comites-title { font-size: 32px !important; }
  .timeline-line { display: none; }
  .eventos-timeline { padding-left: 0; }
  .timeline-dot { display: none; }
}
@media (max-width: 480px) {
  .comites-directiva-grid { gap: 35px 10px; }
  .directiva-ring-outer { width: 115px; height: 115px; }
  .toast-notification { max-width: 220px; right: 10px; }
}
