/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 5%;
  /* Adding padding at top to ensure the logo isn't chopped off */
  padding-top: 100px; /* Adjusted to account for floating header */
  padding-bottom: 80px;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gradient-overlay), url('../public/fondo1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
}

/* Adjust hero content to maintain proper spacing */
.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  color: var(--text-light);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
  /* Ensure content is properly positioned with room for the logo */
  padding-top: 20px;
}

.hero-logo {
  width: 300px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  /* Ensure the logo has room to display fully */
  margin-top: -60px;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
  color: var(--text-light);
}

.hero-date {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 3rem;
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent);
  color: var(--text-dark);
  border-radius: 50px;
  animation: fadeInUp 1s ease 0.5s;
  animation-fill-mode: both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero buttons styles - modified to match new layout */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.7s;
  animation-fill-mode: both;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  /* Change from fixed height to min-height */
  min-height: 350px;
  height: auto;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.8;
  transition: all 0.4s ease;
}

.info-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-card:hover::before {
  opacity: 0.9;
}

.info-card.expanded {
  /* Adjust height when expanded to fit content */
  height: auto;
  min-height: 750px;
}

.info-card.expanded .info-description {
  max-height: 1300px; /* Increased from 500px to ensure all text is visible */
  opacity: 1;
  margin-top: 15px;
}

.info-card.expanded .info-read-more .fa-chevron-down {
  transform: rotate(180deg);
}

.info-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  z-index: 1;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  transform: translateZ(50px);
}

.info-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.info-description {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateZ(30px);
}

.info-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.info-read-more {
  background: transparent;
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  width: fit-content;
  transform: translateZ(40px);
}

.info-read-more:hover {
  background-color: white;
  color: var(--primary);
}

/* Feature Cards Section */
.feature-section {
  padding: 7rem 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.feature-cards {
  display: flex;
  flex-wrap: nowrap; /* Changed from wrap to nowrap to keep items in single row */
  justify-content: center;
  gap: 2.5rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in Chrome, Safari and Opera */
.feature-cards::-webkit-scrollbar {
  display: none;
}

.feature-card {
  width: 100%;
  min-width: 250px; /* Ensure minimum width for readability */
  max-width: 280px;
  flex-shrink: 0; /* Prevent shrinking of cards */
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.feature-img-container {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-img-container::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  top: -60%;
  left: -100%;
  transition: all 0.6s ease;
}

.feature-card:hover .feature-img-container::before {
  top: -40%;
  left: -20%;
}

.feature-img {
  max-width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
  transform: scale(0.9);
  z-index: 2;
}

.feature-card:hover .feature-img {
  transform: scale(1);
}

.feature-content {
  padding: 2rem;
  text-align: center;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.feature-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.feature-description {
  color: #6c757d;
  font-size: 1rem;
}

/* Explore Section - Different Design */
.explore-section {
  padding: 7rem 0;
  background-color: #f1f1f1;
  overflow: hidden;
  position: relative;
}

.explore-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent), var(--primary), var(--accent));
}

.explore-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.explore-card {
  flex: 1 1 500px;
  max-width: 560px;
  border-radius: 15px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.explore-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.explore-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: all 0.4s ease;
}

.explore-card:hover .explore-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
  padding-bottom: 3rem;
}

.explore-overlay h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.explore-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.explore-text {
  padding: 2rem;
  color: var(--text-dark);
}

.explore-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.explore-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.explore-card:hover .explore-btn {
  transform: translateY(0);
  opacity: 1;
}

.explore-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.explore-btn-coming-soon {
  background-color: var(--secondary);
  cursor: not-allowed;
}

.explore-btn-coming-soon:hover {
  background-color: var(--secondary);
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  
  .hero-logo {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-date {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .feature-cards {
    gap: 2rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .hero-logo {
    width: 200px;
  }
  

   .explore-card {
    flex: 1 1 100%;
  }
  
  .explore-overlay h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  
  .hero-logo {
    width: 180px;
  }

  
}