/* ===== VARIABLES ===== */
:root {
  /* Primary color scheme (Tetrad) */
  --primary-color: #FF4D4D;       /* Bright Red */
  --secondary-color: #4DFF4D;     /* Bright Green */
  --tertiary-color: #4D4DFF;      /* Bright Blue */
  --quaternary-color: #FF4DFF;    /* Bright Purple */
  
  /* Darker variations */
  --primary-dark: #CC3939;
  --secondary-dark: #39CC39;
  --tertiary-dark: #3939CC;
  --quaternary-dark: #CC39CC;
  
  /* Lighter variations */
  --primary-light: #FF7A7A;
  --secondary-light: #7AFF7A;
  --tertiary-light: #7A7AFF;
  --quaternary-light: #FF7AFF;
  
  /* Neutral colors */
  --black: #121212;
  --dark-gray: #333333;
  --mid-gray: #666666;
  --light-gray: #999999;
  --off-white: #F5F5F5;
  --white: #FFFFFF;
  
  /* Utility */
  --text-color: #333333;
  --heading-color: #121212;
  --link-color: var(--tertiary-color);
  --link-hover: var(--tertiary-dark);
  --background: #FFFFFF;
  --border-radius: 4px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
}

/* ===== GLOBAL STYLES ===== */
body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--link-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== BUTTONS ===== */
.button, button, input[type="submit"] {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  display: inline-block;
  z-index: 1;
}

.button::before, button::before, input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  z-index: -1;
}

.button:hover::before, button:hover::before, input[type="submit"]:hover::before {
  left: 0;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: white;
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-gray);
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
}

.button.is-tertiary {
  background-color: var(--tertiary-color);
  color: white;
}

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
}

.button.is-quaternary {
  background-color: var(--quaternary-color);
  color: white;
}

.button.is-quaternary:hover {
  background-color: var(--quaternary-dark);
}

.button.is-light {
  background-color: var(--off-white);
  color: var(--text-color);
}

.button.is-light:hover {
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

/* Read more links styling */
a[href="#"]:has(~ i), a:contains("Leer más"), a:contains("Read more") {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

a[href="#"]:has(~ i)::after, a:contains("Leer más")::after, a:contains("Read more")::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

a[href="#"]:has(~ i):hover::after, a:contains("Leer más"):hover::after, a:contains("Read more"):hover::after {
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand .title {
  font-family: var(--heading-font);
  color: var(--primary-color);
}

.navbar-item {
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-color);
}

.navbar-burger:hover {
  background-color: transparent;
}

.navbar-burger span {
  background-color: currentColor;
}

.navbar.is-fixed-top {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .title, .hero .subtitle {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

.arrow-down {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto 2rem;
  cursor: pointer;
}

.arrow-down span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  animation: arrow-wave 1.5s infinite;
  opacity: 0;
}

.arrow-down span:nth-child(1) {
  animation-delay: 0s;
}

.arrow-down span:nth-child(2) {
  top: 16px;
  animation-delay: 0.15s;
}

@keyframes arrow-wave {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ===== HISTORY SECTION ===== */
.history-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.history-section .title {
  color: var(--heading-color);
  margin-bottom: 3rem;
}

.history-section .content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-container figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  font-style: italic;
  text-align: center;
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 5rem 0;
  position: relative;
}

.mission-section .title {
  margin-bottom: 3rem;
}

.mission-section .content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== PORTFOLIO / FESTIVALES SECTION ===== */
.portfolio-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.portfolio-section .title {
  margin-bottom: 3rem;
}

.card {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image figure {
  width: 100%;
  margin: 0;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-content .content {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== OUR PROCESS SECTION ===== */
.our-process-section {
  padding: 5rem 0;
}

.our-process-section .title {
  margin-bottom: 3rem;
}

.process-steps {
  margin-top: 3rem;
}

.step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step .title {
  margin-bottom: 0.5rem;
}

.step p {
  margin-bottom: 0;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.blog-section .title {
  margin-bottom: 3rem;
}

.blog-section .card-content .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-section .card-content .subtitle {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

/* ===== WORKSHOPS SECTION ===== */
.workshops-section {
  padding: 5rem 0;
}

.workshops-section .title {
  margin-bottom: 3rem;
}

.workshops-section .card {
  margin-bottom: 2rem;
}

.workshops-section .card-image img {
  height: 250px;
}

.workshops-section .card-content .button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* ===== WEBINARS SECTION ===== */
.webinars-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.webinars-section .title {
  margin-bottom: 3rem;
}

.webinars-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.webinars-section .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.webinars-section .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ===== EXTERNAL RESOURCES SECTION ===== */
.external-resources-section {
  padding: 5rem 0;
}

.external-resources-section .title {
  margin-bottom: 3rem;
}

.external-links {
  margin-top: 2rem;
}

.link-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.link-card .title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.link-card .description {
  color: var(--mid-gray);
  font-size: 0.9rem;
}

/* ===== ACCOLADES SECTION ===== */
.accolades-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.accolades-section .title {
  margin-bottom: 3rem;
}

.accolades-list {
  margin-top: 3rem;
}

.accolade-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.accolade-icon {
  flex: 0 0 100px;
  margin-right: 2rem;
}

.accolade-icon img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  object-fit: cover;
}

.accolade-content {
  flex: 1;
}

.accolade-content .title {
  margin-bottom: 0.5rem;
}

.accolade-content p {
  margin-bottom: 0;
}

/* ===== BEHIND SCENES SECTION ===== */
.behind-scenes-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 5rem 0;
  position: relative;
}

.behind-scenes-section .title {
  margin-bottom: 3rem;
}

.behind-scenes-section .content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.contact-section .title {
  margin-bottom: 3rem;
}

.contact-section .card {
  height: 100%;
}

.contact-section .label {
  color: var(--text-color);
  font-weight: 600;
}

.contact-section .input, 
.contact-section .textarea, 
.contact-section .select select {
  border-color: var(--light-gray);
  box-shadow: none;
  transition: var(--transition);
}

.contact-section .input:focus, 
.contact-section .textarea:focus, 
.contact-section .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.social-media .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.social-media .button {
  color: var(--text-color);
  background-color: var(--off-white);
  transition: var(--transition);
}

.social-media .button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-gray);
  color: var(--off-white);
  padding: 4rem 0 2rem;
}

.footer .title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--off-white);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer .content.has-text-centered {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* ===== ANIMATION STYLES ===== */
/* Particle Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Card animation on scroll */
.card, .step, .accolade-item, .link-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.animate-in, .step.animate-in, .accolade-item.animate-in, .link-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.mt-6 {
  margin-top: 3rem !important;
}

.has-text-centered {
  text-align: center !important;
}

/* ===== SPECIAL PAGES ===== */
/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-page .card {
  max-width: 600px;
  margin: 0 auto;
}

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-page .container, .terms-page .container {
  max-width: 800px;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.3rem;
  }
  
  .accolade-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .accolade-icon {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .step {
    padding-left: 0;
    padding-top: 50px;
    text-align: center;
  }
  
  .step-number {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

/* ===== HYPERREALISTIC TEXTURE EFFECTS ===== */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image/texture-overlay.jpg') repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
}

.image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image/grain-texture.jpg') repeat;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Cookie consent styling */
#cookie-consent {
  font-family: var(--body-font);
  border-top: 3px solid var(--primary-color);
}

#cookie-consent p {
  margin-bottom: 0;
  line-height: 1.5;
}

#accept-cookies {
  background-color: var(--primary-color) !important;
  color: white;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

#accept-cookies:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
}
*{
  opacity: 1 !important;
}