:root {
  --color-primary: #8C7B6C;
  --color-primary-dark: #736558;
  --color-gold: #D4AF37;
  --color-venezuela: #B8860B;
  --color-europa: #556B2F;
  --color-bg: #F8F5F2;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Palette Override / Extension */
  --mystic-gold: #D4AF37;
  --accent-gold: #D4AF37;
  --mystic-gold-light: #F9E79F;
  --mystic-purple-deep: #2E1065;
  --mystic-purple-vivid: #7C3AED;
  --mystic-bg-dark: #1a1a1a;
  --mystic-text: #F3F4F6;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: #4A4A4A;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
}

.gooey-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(44, 62, 80, 0.3) 100%);
  z-index: 2;
}

.video-content {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* === FLIP CARDS UNIVERSAL === */
.flip-card-container {
  width: 240px;
  height: 320px;
  perspective: 1000px;
}

.flip-content {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.flip-front {
  background: linear-gradient(135deg, var(--color-primary), var(--color-venezuela));
  color: white;
  transform: rotateY(0deg);
}

.flip-back {
  background: white;
  color: var(--color-text);
  transform: rotateY(180deg);
}

.flip-card-container:hover .flip-content,
.flip-card-container:focus-within .flip-content {
  transform: rotateY(180deg);
}

/* Cards 3D mejoradas */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateY(-8px);
}

/* === HORARIOS 3D === */
.schedule-parent {
  width: 300px;
  padding: 20px;
  perspective: 1000px;
}

.schedule-card {
  padding-top: 50px;
  border: 3px solid #F8F5F2;
  transform-style: preserve-3d;
  background:
    linear-gradient(135deg, transparent 18.75%, #D4CFC7 0 31.25%, transparent 0),
    repeating-linear-gradient(45deg, #D4CFC7 -6.25% 6.25%, #F8F5F2 0 18.75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  background-color: #F8F5F2;
  width: 100%;
  box-shadow: rgba(140, 123, 108, 0.2) 0px 30px 30px -10px;
  transition: all 0.5s ease-in-out;
  border-radius: 12px;
}

.schedule-card:hover {
  background-position: -100px 100px, -100px 100px;
  transform: rotate3d(0.5, 1, 0, 30deg);
}

.schedule-content-box {
  background: rgba(140, 123, 108, 0.85);
  transition: all 0.5s ease-in-out;
  padding: 60px 25px 25px 25px;
  transform-style: preserve-3d;
  border-radius: 12px;
}

.schedule-content-box .card-title {
  display: inline-block;
  color: white;
  font-size: 25px;
  font-weight: 900;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 50px);
  font-family: 'Cormorant Garamond', serif;
}

.schedule-content-box .card-title:hover {
  transform: translate3d(0px, 0px, 60px);
}

.schedule-content-box .card-content {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #F8F5F2;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 30px);
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

.schedule-content-box .card-content:hover {
  transform: translate3d(0px, 0px, 60px);
}

.schedule-content-box .see-more {
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  color: #D4AF37;
  background: white;
  padding: 0.5rem 0.7rem;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.schedule-content-box .see-more:hover {
  transform: translate3d(0px, 0px, 60px);
  color: #B8860B;
}

.schedule-date-box {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
  width: 60px;
  background: white;
  border: 1px solid #D4AF37;
  padding: 10px;
  transform: translate3d(0px, 0px, 80px);
  box-shadow: rgba(140, 123, 108, 0.25) 0px 17px 10px -10px;
  border-radius: 8px;
}

.schedule-date-box span {
  display: block;
  text-align: center;
}

.schedule-date-box .month {
  color: #8C7B6C;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.schedule-date-box .date {
  font-size: 20px;
  font-weight: 900;
  color: #B8860B;
}

/* === TARJETAS DE VISIÓN / MISIÓN / OBJETIVOS === */
.cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .cards {
    flex-direction: row;
    gap: 24px;
  }
}

.cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100px;
  width: 250px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.3, 0, 0.4, 1.2);
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cards .card p.tip {
  font-size: 1em;
  font-weight: 700;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
}

.cards .card p.second-text {
  font-size: 0.7em;
  margin: 8px 0 0;
  opacity: 0.92;
  max-width: 90%;
  line-height: 1.4;
}

.cards .card-vision {
  background: linear-gradient(135deg, #8C7B6C, #736558);
}

.cards .card-mision {
  background: linear-gradient(135deg, #D4AF37, #B8860B);
}

.cards .card-objetivos {
  background: linear-gradient(135deg, #556B2F, #6B8E23);
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.cards:hover>.card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9, 0.9);
}

/* === INTRO VIDEO === */
#video-intro {
  animation: fadeIn 0.5s ease-in;
}

#video-intro.fade-out {
  animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* === CARRUSEL CONTAINER === */
.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
  display: flex;
  opacity: 1;
  animation: fadeInSlide 0.6s ease-in-out;
}

/* === ANIMACIONES GENERALES === */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* === MYSTIC CARDS (PATHWAYS) === */
.mystic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .mystic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mystic-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  display: block;
}

.mystic-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(80, 60, 90, 0.25);
}

/* Background Layer */
.mystic-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.mystic-card:hover .mystic-card-bg {
  transform: scale(1.1);
}

/* Gradient Overlay */
.mystic-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(17, 4, 39, 0.95) 0%,
      rgba(30, 20, 40, 0.6) 50%,
      rgba(50, 35, 60, 0.1) 100%);
  z-index: 2;
}

/* Content Layer */
.mystic-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.mystic-tag {
  background: linear-gradient(90deg, var(--mystic-gold), #B8860B);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.mystic-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #fff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mystic-description {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.mystic-card:hover .mystic-description {
  transform: translateY(0);
  opacity: 1;
}

.mystic-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mystic-gold);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mystic-card:hover .mystic-cta {
  opacity: 1;
  gap: 1rem;
  color: var(--mystic-gold-light);
}

/* === MIST & GLOW EFFECTS === */
.mystic-glow-blob {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--mystic-purple-vivid);
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.mystic-card:hover .mystic-glow-blob {
  opacity: 0.4;
}

/* === CURSOR AURA MÍSTICA === */
@media (min-width: 1024px) {
  body.cursor-enabled {
    cursor: none;
  }

  body.cursor-enabled a,
  body.cursor-enabled button,
  body.cursor-enabled .interactive {
    cursor: none;
  }
}

.cursor-aura {
  width: 20px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  transition: background 0.3s ease;
  opacity: 0.8;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}

/* Efecto cuando el cursor está sobre un enlace o botón */
body.cursor-active .cursor-aura {
  transform: translate(-50%, -50%) scale(2.5);
  background: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 20px rgba(212, 175, 55, 1);
}

body.cursor-active .cursor-outline {
  border-color: rgba(212, 175, 55, 1);
  opacity: 1;
}

/* Partículas de fondo */
#particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* AOS custom */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Carrusel infinito */
.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ORACLE MODAL STYLES */
.oracle-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  /* Toggled by JS */
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.oracle-modal.flex {
  display: flex;
}

.oracle-container {
  position: relative;
  width: 300px;
  height: 480px;
  transition: all 0.5s ease;
  transform: scale(0.9);
  opacity: 0;
  perspective: 1000px;
}

.oracle-container.scale-100 {
  transform: scale(1);
  opacity: 1;
}

.oracle-close-btn {
  position: absolute;
  top: -3rem;
  right: 0;
  color: white;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.oracle-close-btn:hover {
  color: var(--mystic-gold);
}

/* 3D Card Structure */
.oracle-card {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oracle-card.flipped {
  transform: rotateY(180deg);
}

.oracle-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Safari support */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Front Face */
.oracle-front {
  background: #1a1a1a;
  border-radius: 20px;
  /* Image handles content */
  padding: 0;
  transform: rotateY(0deg);
  border: none;
}

.oracle-front-border {
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Back Face */
.oracle-back {
  position: relative;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: white;
}

/* Dark overlay for text readability */
.oracle-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.oracle-back>* {
  position: relative;
  z-index: 2;
}

#oracle-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--mystic-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#oracle-message {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Share Button Overlay */
.oracle-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(212, 175, 55, 0.2);
  color: white;
  border: 1px solid var(--mystic-gold);
  border-radius: 9999px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  margin-top: auto;
}

.oracle-share-btn:hover {
  background-color: var(--mystic-gold);
  color: #1a1a1a;
}

/* Remove old image container as we use background-image */
.oracle-img-container {
  display: none;
}

/* Custom Toast Notification */
.oracle-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 20, 40, 0.9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  z-index: 11000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.oracle-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Responsiveness for Oracle Modal */
@media (max-width: 640px) {
  .oracle-container {
    width: 85vw;
    height: auto;
    aspect-ratio: 5/8;
    max-height: 80vh;
    touch-action: manipulation;
  }

  .oracle-close-btn {
    top: -2.5rem;
    right: 0.5rem;
  }

  .oracle-back {
    padding: 1.5rem;
  }

  .oracle-img-container {
    height: 140px;
  }

  #oracle-title {
    font-size: 1.5rem;
  }

  #oracle-message {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .oracle-share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}



/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .video-hero {
    height: 60vh;
  }
  
  .mystic-card {
    height: 350px;
  }
  
  .mystic-title {
    font-size: 1.8rem;
  }
  
  .mystic-description {
    font-size: 0.85rem;
  }
  
  #particles {
    visibility: hidden;
    pointer-events: none;
  }
  
  #backgroundVideo {
    display: none !important;
  }
  
  .cursor-aura,
  .cursor-outline {
    display: none !important;
  }
}