.san-grid-cursos-content{
  display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f7f7;
    padding: 10px;
    /* border: 1px dashed #b4b9be;*/
    flex-wrap: wrap;
    column-wrap: wrap;
    zoom: 0.9;
    justify-content: center;
}

.san-grid-curso-item{
    display: flex;
    flex-direction: column; /* 🔥 ESTO SOLUCIONA TODO */
    
    width: 370px;
    height: 220px;
    min-width: 370px;
    min-height: 220px;
    max-width: 370px;
    max-height: 220px;

    background: var(--bs-body-bg);
    border-radius: 10px;
    overflow: hidden;

    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.san-grid-curso-item:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.san-lupita {
    top: 1px;
    right: 168px;
    position: relative;
    color: rgba(var(--unicamp-color-primary), 0.8);
    
    /* box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px; */

    /* Transiciones suaves */
    transition: box-shadow 0.4s ease, transform 0.3s ease, color 0.3s ease;
}

/* Hover */
.san-lupita:hover {
    transform: translateY(-4px) scale(1.03); /* leve elevación + zoom */
    /* box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px; */
    color: rgba(var(--unicamp-color-primary), 1); /* opcional: más intenso */
}


.san-page {
    top: 1px;
    right: 186px;
    position: relative;
    color: rgba(var(--unicamp-color-primary), 0.8);
    
    /* box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px; */

    /* Transiciones suaves */
    transition: box-shadow 0.4s ease, transform 0.3s ease, color 0.3s ease;
}

/* Hover */
.san-page:hover {
    transform: translateY(-4px) scale(1.03); /* leve elevación + zoom */
    /* box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px; */
    color: rgba(var(--unicamp-color-primary), 1); /* opcional: más intenso */
}

.san-image-item{
    width: 100%;
    height: 60%; /* ajustable */
    background-size: cover;
    background-position: center;  
}

.btnfa{    display: inline-block;
    padding: 7px 12px;
    margin: 3px;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 100px;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    -webkit-transform: scale3d(0, 0, 0);
    transform: scale3d(0, 0, 0);
    -webkit-transition: all 400ms;
    transition: all 400ms;

}


.san-grid-cat {
        font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 8px;
    position: relative;
    top: 161px;
    /* left: -130px; */
    background-color: var(--unicamp-color-box-grey-background);
    padding: 10px;
    border: var(--unicamp-color-box-border);
    box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
    /* border-radius: 24%;*/
}
.san-grid-curso-item:hover .san-lupita{
    display: block;
}

.san-grid-badge{
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    border-radius: 0px;
    padding: 12px;
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 12px 0px;
}


.san-grid-info{
    position: relative;
   padding: 10px;
    height: 40%;
}
.san-grid-title{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}
.san-grid-desc{
    font-size: 14px;
    color: #666;
}



.san-grid-actions{
     display: flex;
    gap: 50px;
    position: absolute;
    top: 41%;
    left: 50%;
    /* z-index: 100; */
    justify-content: center;
    width: 376px;
}

.san-page,.san-grid-info,
.san-lupita{    
    transition: all 0.3s ease;
}

.san-page:hover,
.san-lupita:hover{
    color: rgba(var(--unicamp-color-primary), 1) !important;
    transform: scale(1.4);
}

.san-grid-curso-item{
    position: relative;
}

.san-grid-image{
       height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    width: 370px;
}

.san-grid-info{
     position: absolute;
    top: 0px;
    height: 219px;
    width: 370px;
    padding: 0px;
    background: linear-gradient(to top, rgb(219 219 219 / 70%), transparent);
    color: #fff;
}

.san-grid-info:hover {
     position: absolute;
    top: 0px;
    height: 219px;
    width: 370px;
    padding: 0px;
    background: linear-gradient(to top, rgb(219 219 219 / 70%), transparent);
    color: #fff;
    background-color: #32333485;
}

.fancybox__content{
    max-width: min(740px, 90%) !important;
}



.san-modal-grid-content {
    background: #fff;
    margin: 3% auto;
    width: 100% !important;
    max-height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow-x: scroll;
    justify-content: center;
}
.san-modal-grid-content {
    /* max-width: min(740px, 90%); */
    padding: 20px;
    text-align: center;
    justify-content: center;
}


.san-modal-grid-img{
    /*width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;*/

    max-height: 116px;
    height: 116px;
    border-radius: 10px;
    margin-bottom: 15px;
    aspect-ratio: 16 / 9;    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.san-modal-grid-title{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.san-modal-grid-desc{
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.san-modal-grid-badge{
  display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 0px 0px 20px 0px;
    margin-bottom: 15px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 35%;
    /* box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px; */
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}