/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    height:100%;
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0px;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    left: 0;
    top: 15%;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

.modal-sections {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
    padding: 10px 0;
}

.modal-item {
    flex: 0 0 calc(25% - 20px);
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    overflow: hidden;
}

.modal-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background-color: #B25780;
    color: #fff;
    transform-origin: center;
}

.modal-item:hover h3,
.modal-item:hover p {
    color: #fff;
}

.modal-item:hover .cta-button {
    background-color: #fff;
    color: #B25780;
    border-color: #fff;
}

.modal-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    align-self: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.modal-item:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.modal-item h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #000;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-item p {
    font-size: 14px;
    color: #000;
    margin-bottom: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-button {
    background-color: transparent;
    color: #B25780;
    border: 2px solid #B25780;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    align-self: center;
    margin-top: 10px;
    width: auto;
    max-width: 240px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    font-size: 12px;
    word-break: break-word;
}

.cta-button:hover {
    background-color: #B25780;
    color: #fff;
    font-size: 12px;
}
body.modal-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}



@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 15px;
        top: 5%;
        height: 90vh; /* Ajusta la altura para que no sobrepase la pantalla */
        overflow-y: auto; /* Agrega scroll si es necesario */
    }

    .modal-sections {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding: 5px;
    }

    .modal-item {
        flex: 0 0 100%;
        padding: 10px;
        min-height: auto;
    }

    .modal-item h3 {
        font-size: 16px;
        min-height: auto;
    }

    .modal-item p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .modal-item img {
        width: 60px;
        height: 60px;
    }

    .cta-button {
        padding: 10px 15px;
        font-size: 12px;
    }
}
