/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: rgb(0, 14, 59);
  color: rgb(154, 182, 194);
  line-height: 1.6;
}

/* Particle Background */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: rgba(255, 255, 255, .9);
  /* background-color: rgba(255, 255, 255, 0.1); */
}

/* Header */
header {
  background: linear-gradient(to right, rgba(0, 14, 59, 0.9), rgba(0, 74, 128, 0.9));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  justify-content: space-between; /* Distribuye el espacio entre las imágenes */
  align-items: center;
  margin-right: 10rem; /* Espacio antes del menú */
  gap: 1rem; /* Ajusta este valor según necesites */
  width: 100%; /* Asegura que ocupe todo el espacio disponible */
  flex-wrap: wrap;
  z-index: 1000;
}

.logo img {
  height: 55px; 
  width: auto; /* Mantiene la proporción de la imagen */
  object-fit: contain; /* Evita distorsión */
}

.logo h1 {
  color: rgb(0, 230, 243);
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: rgb(154, 182, 194);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: rgb(0, 230, 243);
}

.register-btn {
  background-color: #00BDE2;
  color: rgb(255, 255, 255);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.register-btn:hover {
  background-color: rgb(255, 255, 255);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 230, 243, 0.4);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0rem 0rem 6rem 0rem;
  /* background: linear-gradient(to bottom, rgba(0, 14, 59, 0.8), rgba(0, 74, 128, 0.6)); */
}

/* Añade estos estilos para la imagen */
.hero img {
  max-width: 700px;
  /* Control del tamaño máximo */
  width: 100%;
  height: auto;
  /* Espacio debajo del logo */
  /* filter: drop-shadow(0 4px 8px rgba(0, 230, 243, 0.4)); */
  /* Sutil efecto neon */
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: black;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: rgb(91, 104, 109);
}

.date-location {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: rgba(91, 104, 109, .8);
}

.date,
.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}



.primary-btn {
  background-color: #00BDE2;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.primary-btn:hover {
  color: rgb(0, 230, 243);
  background-color: rgb(255, 255, 255);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 230, 243, 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: #003F60;
  border: 2px solid #003F60;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background-color: rgba(0, 230, 243, 0.1);
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 5rem 2rem;
  background-color: rgba(143, 162, 175, 0.1);
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: rgb(69, 92, 108);
  text-shadow: #b3c3cc 0px 1px 2px;
  font-size: 2.5rem;
  font-weight: bold;
}



.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: black;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.about-text h3 {
  color: #17C8EB;
  margin-bottom: 1.1rem;
  font-size: 1.8rem;
  text-shadow: hsl(0, 0%, 93%) 0px 2px 2px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  text-shadow: #b3c3cc 0px 3px 2px;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Schedule Section */
.schedule {
  padding: 5rem 2rem;
  /* background-color: rgba(0, 14, 59, 0.8); */
  background-color: rgba(143, 162, 175, 0.1);
  
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgb(0, 230, 243);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background-color: rgba(0, 74, 128, 0.8);
  border-radius: 8px;
  border-left: 4px solid rgb(0, 230, 243);
}

.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 4px solid rgb(0, 230, 243);
}

.timeline-time {
  font-weight: 600;
  color: #50E4FF;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin-bottom: 0.5rem;
  color: rgb(250, 250, 250);
}

.timeline-title {
  color: rgb(255, 255, 255);
  margin-bottom: 0.5rem;
}

.timeline-item.active {
  border-left: 6px solid #00e6f3;
  background-color: inherit;
  box-shadow: 0 0 10px rgba(0, 230, 243, 0.4);
  transition: box-shadow 0.6s ease-in-out, border-color 0.6s ease-in-out;
}

.timeline-item.active .timeline-content {
  background-color: rgba(0, 74, 128, 1);
  color: rgb(255, 255, 255);
  font-size: large;
}


/* Prizes Section */
.prizes {
  padding: 5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.prize-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.prize-card {
  /* background: linear-gradient(to bottom right, rgba(0, 74, 128, 0.3), rgba(0, 14, 59, 0.5)); */
  background: linear-gradient(to right, rgba(0, 14, 59, 0.9), rgba(0, 74, 128, 0.9));
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.prize-card:hover {
  transform: translateY(-10px);
}

.prize-place {
  font-size: 2rem;
  color: #50E4FF;
  margin-bottom: 1rem;
  font-weight: 700;
}

.prize-amount {
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  margin-bottom: 1rem;
  font-weight: 700;
}

.prize-description {
  font-size: 1rem;
}

/* Sponsors Section */
.sponsors {
  padding: 5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.sponsor-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding: 0 2rem;
}

.sponsor-item {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sponsor-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  transition: filter 0.3s ease;
}

.sponsor-item:hover img {
  filter: brightness(1) invert(0);
}

/* FAQ Section */
.faq {
  padding: 5rem 2rem;
  background-color: rgba(143, 162, 175, 0.1);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(0, 74, 128, 0.2);
}

.faq-question {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  color: #006FAB;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 1.5rem;
  display: none;
  color: rgb(255, 255, 255);
  background-color: #006fab83;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  background-color: rgb(0, 14, 59);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  color: rgb(154, 182, 194);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: rgb(0, 230, 243);
}

.copyright {
  color: rgb(69, 92, 108);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-content {
    border-left: 4px solid rgb(0, 230, 243);
    border-right: none;
  }

  .sponsor-item {
    width: 150px;
    height: 80px;
  }

  .sponsor-grid {
    gap: 1.5rem;
    padding: 0;
  }
}

/* Categories Section */
.categories {
  padding: 5rem 2rem;
  /* background-color: rgba(0, 14, 59, 0.9); */
  background-color: rgba(0, 14, 59, 0);
}

.category-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.category-card {
  background-color: rgba(69, 92, 108, 0.2);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-header {
  padding: 1.5rem;
  color: white;
}

.category-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.problems-list {
  padding: 1.5rem;
}

.problem-item {
  background-color: rgba(0, 74, 128, 0.8);
  border-left: 3px solid #50E4FF;;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 5px 5px 0;
}

.problem-item h4 {
  color: #50E4FF;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.problem-item p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: rgb(255, 255, 255);
}

.prize-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fafafa;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .category-cards {
    flex-direction: column;
    align-items: center;
  }

  .category-card {
    width: 100%;
  }
}

/* Participation Section */
.participation {
  padding: 5rem 2rem;
  background-color: rgba(69, 92, 108, 0.1);
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.participation-card {
  background-color: rgba(0, 74, 128, 0.8);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.participation-card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 74, 128, 0.6);
}

.participation-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.participation-card h3 {
  color: white;
  margin-bottom: 0.8rem;
}

.participation-card p {
  color: rgb(255, 255, 255);
  margin-bottom: 1.2rem;
}

.eligibility-note {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: rgb(109, 128, 136);
}

/* Venue Section */
.venue {
  padding: 5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.venue-content {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  color: rgb(91, 104, 109);
}

.venue-details {
  flex: 1;
}

.venue-map {
  flex: 1;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.venue-address {
  color: rgb(91, 104, 109);
  background-color: rgba(0, 230, 243, 0.1);
  border-left: 3px solid #50E4FF;
  padding: 1rem;
  margin: 1.5rem 0;
}

.venue-features {
  margin: 2rem 0;
}

.venue-features h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.venue-features ul {
  list-style-type: none;
  margin-top: 1rem;
}

.venue-features li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
}

.venue-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgb(91, 104, 109);}

@media (max-width: 768px) {
  .venue-content {
    flex-direction: column;
  }

  .venue-map {
    min-height: 300px;
  }
}

/* Roles Section */
.roles {
  padding: 5rem 2rem;
  background-color: rgba(143, 162, 175, 0.1);
}

.roles-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.role-card {
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.role-header {
  padding: 1.5rem;
  color: white;
}

.role-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.role-content {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.4);
}

.role-activities,
.role-requirements {
  margin-bottom: 1.5rem;
  color: rgb(91, 104, 109);
}

.role-activities h4,
.role-requirements h4 {
  color: rgb(91, 104, 109);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.role-activities ul,
.role-requirements ul {
  list-style-type: none;
}

.role-activities li,
.role-requirements li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.5rem;
}

.role-activities li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: rgb(91, 104, 109);
}

.role-requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgb(91, 104, 109);
}

@media (max-width: 768px) {
  .roles-container {
    flex-direction: column;
    align-items: center;
  }

  .role-card {
    width: 100%;
  }
}

/* Add to your existing CSS */
/* Scroll Animation Styles */
[data-aos] {
  transition: all 0.5s ease;
  opacity: 0;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

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

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Navigation active state */
.nav-active {
  color: rgb(0, 230, 243) !important;
  font-weight: 600;
}

/* Roles Section - Updated for 3 Cards */
.roles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.role-card {
  background-color: rgba(69, 92, 108, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.role-card:hover {
  transform: translateY(-5px);
}

/* Tertiary Button Style */
.tertiary-btn {
  background-color: transparent;
  color: rgb(154, 182, 194);
  border: 2px solid rgb(154, 182, 194);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

.tertiary-btn:hover {
  background-color: rgba(154, 182, 194, 0.1);
  color: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .roles-container {
    grid-template-columns: 1fr;
  }
}

/* Form Section */
.form-section {
  padding: 5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: rgba(0, 74, 128, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.form-container label {
  color: rgb(255, 255, 255);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #50E4FF;
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: rgb(255, 255, 255);
}

select {
    border: 2px solid #ccc;      
    border-radius: 8px;          
    padding: 10px 15px;           
    width: 100%;                 
    font-size: 16px;             
    background-color: white;      
    cursor: pointer;              
    transition: all 0.3s ease;    
}

input {
  border: 2px solid #ccc;      
  border-radius: 8px;          
  padding: 10px 15px;           
  width: 100%;                 
  font-size: 16px;             
  background-color: white;      
  transition: all 0.3s ease;    
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

label {
  color: rgb(154, 182, 194);
  font-weight: 600;
}

input {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: rgb(0, 14, 59);
}

input::placeholder {
  color: rgba(0, 14, 59, 0.5);
}

input:focus {
  outline: 2px solid rgb(0, 230, 243);
  background-color: #fff;
}

.submit-btn {
  background-color: #00BDE2;
  color: white;
  padding: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: white;
  color: rgb(0, 230, 243);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 230, 243, 0.4);
}

.mensaje-enviado {
  margin-top: 1.5rem;
  background-color: rgba(0, 230, 243, 0.1);
  color: rgb(0, 230, 243);
  text-align: center;
  padding: 0.8rem;
  border-radius: 8px;
  display: none;
  font-weight: bold;
}

/* Popup Modal */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 14, 59, 0.6);
  /* Fondo más oscuro */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: rgba(0, 74, 128, 0.95);
  /* Azul con opacidad */
  padding: 2rem 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 230, 243, 0.4);
  position: relative;
  color: rgb(0, 230, 243);
  font-weight: bold;
  font-size: 1.2rem;
  max-width: 90%;
  width: 400px;
}

.popup-content p {
  margin: 0;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup .close:hover {
  color: rgb(0, 230, 243);
}

/* POPUP OVERLAY */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 14, 59, 0.85);
  /* Fondo oscuro semitransparente */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Muy arriba para que flote sobre todo */
}

/* CONTENIDO DEL POPUP */
#popup .popup-content {
  background-color: rgba(0, 74, 128, 0.95);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  color: rgb(0, 230, 243);
  max-width: 90%;
  width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

#popup .popup-content p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

#popup .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}