/* Header Sticky con transparencia al scroll */
header.u-header {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(52, 193, 244, 0.95) 0%, rgba(76, 175, 245, 0.95) 100%);
}

header.u-header.scrolled {
  background: transparent !important;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Botón flecha regreso */
.u-back-button {
  display: none;
}

.u-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.u-back-arrow:hover {
  transform: scale(1.1);
}

/* Ocultar botones en mobile */
@media (max-width: 1024px) {
  .u-btn-stack {
    display: none !important;
  }
  
  .u-back-button {
    display: flex !important;
    align-items: center;
  }
}

/* Mostrar botones en desktop */
@media (min-width: 1025px) {
  .u-btn-stack {
    display: flex !important;
  }
  
  .u-back-button {
    display: none !important;
  }
}

.u-section-1 {
  background-image: , linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/gfgffg.jpg');
  background-position: 50% 50%;
}

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

.u-section-1 .u-text-1 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  font-size: 3rem;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: -300px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  margin: 214px 0 0 586px;
}

.u-section-1 .u-btn-1 {
  border-style: solid;
  font-weight: 700;
  text-transform: uppercase;
  align-self: flex-end;
  background-image: none;
  margin: 29px 0 60px auto;
  padding: 18px 63px 20px;
}

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

  .u-section-1 .u-text-1 {
    margin-left: 386px;
  }
}

@media (max-width: 991px) {
   .u-section-1 {
    background-position: 5.07% 50%;
  }

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

  .u-section-1 .u-text-1 {
    width: auto;
    font-size: 2.75rem;
    margin-top: 277px;
    margin-left: 210px;
  }

  .u-section-1 .u-btn-1 {
    margin-top: 51px;
  }
}

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

  .u-section-1 .u-text-1 {
    margin-left: 30px;
  }
}

@media (max-width: 575px) {
   .u-section-1 {
    background-position: 14.12% 50%;
  }

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

  .u-section-1 .u-text-1 {
    font-size: 2.125rem;
    margin-top: 253px;
    margin-left: 33px;
  }

  .u-section-1 .u-btn-1 {
    margin: 27px -24px 54px;
    padding: 19px 0;
  }
}

/* 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);
}

/* Estilos específicos para imágenes de Becas 2026 */
#becas-2026 .evento-image {
    aspect-ratio: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    max-height: 350px;
}

/* 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;
    }
}