.u-section-1 {
  background-image: url("images/BannerGeneral.webp");
  background-position: 50% 50%;
}

.u-section-1 .u-sheet-1 {
  min-height: 400px;
}

.u-section-1 .u-text-1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 60px auto 60px 121px;
}

@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 {
    min-height: 330px;
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-sheet-1 {
    min-height: 253px;
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 {
    min-height: 190px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    min-height: 120px;
  }

  .u-section-1 .u-text-1 {
    font-size: 1.875rem;
    margin-left: 76px;
  }
}

/* Estilos para la sección de eventos EdoMex */
#evento-especial {
    margin-top: 20px;
    padding: 40px 0;
}

#evento-especial .u-sheet-1 {
    min-height: auto;
    padding: 0 20px;
}

/* Container principal para los eventos */
.eventos-edomex-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Tarjetas de eventos */
.evento-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.evento-card:hover {
    transform: none;
    box-shadow: none;
}

/* Imágenes de eventos */
.evento-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    aspect-ratio: 1080/1350;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.evento-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Limpieza de estilos antiguos de u-section-2 para eventos */
.u-section-2 .u-sheet-1 {
  min-height: auto;
}

/* Estilos específicos para el Proyecto EdoMex */
#evento-proyecto-edomex {
    padding: 20px 0;
}

.proyecto-edomex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.proyecto-edomex-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-edomex-image:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive para la imagen del proyecto */
@media (max-width: 768px) {
    .proyecto-edomex-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .proyecto-edomex-image {
        max-width: 180px;
    }
    
    #evento-proyecto-edomex {
        padding: 15px 0;
    }
}

.u-section-3 .u-sheet-1 {
  min-height: 400px;
}

.u-section-3 .u-layout-wrap-1 {
  margin-top: 60px;
  margin-bottom: 60px;
  position: relative;
}

.u-section-3 .u-layout-cell-1 {
  min-height: 400px;
}

.u-section-3 .u-container-layout-1 {
  padding: 10px 30px;
}

.u-section-3 .u-image-1 {
  width: 295px;
  height: 295px;
  --radius: 20px;
  margin: 20px auto 0;
}

.u-section-3 .u-layout-cell-2 {
  min-height: 400px;
}

.u-section-3 .u-container-layout-2 {
  padding: 30px;
}

.u-section-3 .u-text-1 {
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 0;
}

@media (max-width: 1199px) {
  .u-section-3 .u-sheet-1 {
    min-height: 330px;
  }

  .u-section-3 .u-layout-cell-1 {
    min-height: 330px;
  }

  .u-section-3 .u-layout-cell-2 {
    min-height: 330px;
  }
}

@media (max-width: 991px) {
  .u-section-3 .u-sheet-1 {
    min-height: 253px;
  }

  .u-section-3 .u-layout-cell-1 {
    min-height: 463px;
  }

  .u-section-3 .u-image-1 {
    margin-top: 0;
  }

  .u-section-3 .u-layout-cell-2 {
    min-height: 100px;
  }
}

@media (max-width: 767px) {
  .u-section-3 .u-sheet-1 {
    min-height: 760px;
  }

  .u-section-3 .u-layout-cell-1 {
    min-height: 695px;
  }

  .u-section-3 .u-container-layout-1 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .u-section-3 .u-container-layout-2 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 575px) {
  .u-section-3 .u-sheet-1 {
    min-height: 478px;
  }

  .u-section-3 .u-layout-cell-1 {
    min-height: 438px;
  }
}

/* Estilos para el Modal */
.u-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.u-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.u-modal-close {
    color: #002654;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.u-modal-close:hover {
    color: #004AAD;
}

.u-modal-text {
    padding: 20px;
    line-height: 1.6;
}

.u-modal-text a {
    color: #002654;
    text-decoration: none;
    font-weight: bold;
}

.u-modal-text a:hover {
    color: #004AAD;
}

/* Responsive design para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .eventos-edomex-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .evento-image {
        max-width: 200px;
    }
    
    #evento-especial {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .eventos-edomex-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .evento-image {
        max-width: 250px;
    }
    
    .evento-card {
        border-radius: 15px;
    }
    
    #evento-especial {
        padding: 20px 0;
    }
}

@media (min-width: 1200px) {
    .eventos-edomex-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        gap: 25px;
    }
    
    .evento-image {
        max-width: 280px;
    }
}

.evento-trigger {
    cursor: pointer;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.evento-trigger:hover {
    transform: scale(1.02);
    animation: pulso 1.5s infinite;
}

@keyframes pulso {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.u-section-titulo-eventos {
  padding: 10px 0;
}

.u-section-titulo-eventos .u-text-1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 10px auto 5px;
  text-align: center;
}

.u-section-titulo-eventos .u-text-2 {
  font-size: 1.1rem;
  margin: 5px auto 10px;
  text-align: center;
  color: #666666;
}

@media (max-width: 575px) {
    .u-section-titulo-eventos .u-text-1 {
        font-size: 1.5rem;
    }
    
    .u-section-titulo-eventos .u-text-2 {
        font-size: 1rem;
    }
}