/*
 Theme Name:   Medixi Child
 Theme URI:    https://wordpress.vecurosoft.com/medixi/
 Author:       Vecurosoft
 Template:     medixi
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         two-columns, three-columns, left-sidebar, right-sidebar, flexible-header, custom-background, custom-colors, custom-header, custom-menu, theme-options, editor-style, featured-images, microformats, post-formats,  sticky-post, threaded-comments, translation-ready
 Text Domain:  medixi-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */



.service-list-card {
    position: relative;
    border-radius: 10px;
    background: var(--title-color);
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.09);
    text-align: center;
    padding: 30px 20px 40px;
    transition: all 0.3s ease;
    margin-bottom: 52px;
    transition: all ease 0.4s;
    li {
        color: var(--white-color);
    }

    &:hover {
        background-color: var(--white-color);
        transition: all ease 0.4s;

        li {
            color: var(--title-color);
        }

        .icon-box {
            background-color: var(--title-color);
            color: var(--white-color);
            transition: all ease 0.4s;
        }

        .content-box {
            .title {
                color: var(--title-color);

                &:hover {
                    & > a {
                        color: var(--title-color);
                    }
                }
            }

            p {
                color: var(--title-color);
                transition: all ease 0.4s;
            }
        }
    }
}

/*.event-brand-icons { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 40%); !* Centrado horizontal y sobresaliente vertical *! display: flex; gap: 12px; flex-wrap: wrap; z-index: 2; }*/
/*.event-brand-icons .brand-icon { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.3s ease; }*/
/*.event-brand-icons .brand-icon:hover { transform: scale(1.1); }*/

.event-brand-icons {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 40%);
    display: flex;
    flex-wrap: nowrap; /* 🔒 Evita que se rompa en múltiples líneas */
    gap: 8px; /* 🔧 Reduce el espacio entre íconos */
    z-index: 2;
    max-width: 100%;
    padding: 0 10px;
}

.event-brand-icons .brand-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0; /* 🧱 Evita que se achiquen si hay muchas */
}

.event-brand-icons .brand-icon:hover {
    transform: scale(1.1);
}


.event-brand-static-icons { display: flex; justify-content: center; gap: 12px; margin-top: 20px; padding-bottom: 12px; flex-wrap: wrap; }
.event-brand-static-icons .brand-static-icon { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 4px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.event-brand-static-icons .brand-static-icon:hover { transform: scale(1.1); }

.event-brands-title { bottom: -45px; /* sobresale la mitad de 90px */ }
.event-brands-title .brand-title-icon img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); background: #fff; }


/* Contenedor Masonry para el calendario de eventos */
/* Contenedor principal */
.event-masonry-wrapper {
    width: 100%;
    overflow: hidden;
}

/* El grid debe ser relativo para que Masonry posicione los items absolutamente */
.event-masonry {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* El contenedor de la columna (Wrapper del card) */
.grid-item {
    width: 33.333%; /* 3 columnas */
    padding: 10px 15px; /* Espaciado lateral entre tarjetas */
    float: left;
}

/* Ajuste de la Card Visual */
.event-box.card {
    position: relative !important;
    overflow: visible !important;
    border: 1.5px solid #d1d1d1 !important;
    border-radius: 15px !important;
    background-color: #fff;
    box-shadow: none !important;
    margin-top: 15px; /* Espacio para el badge */
    display: block !important;
}

/* Etiqueta de la ciudad */
.event-box .badge-city {
    position: absolute !important;
    top: -15px !important;
    left: 20px !important;
    background-color: #000 !important;
    color: #fff !important;
    padding: 5px 20px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    z-index: 5;
}

.event-box .card-title {
    color: #000 !important;
    font-weight: 800 !important;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Responsivo */
@media (max-width: 992px) {
    .grid-item { width: 50%; } /* 2 columnas */
}

@media (max-width: 768px) {
    .grid-item { width: 100%; } /* 1 columna */
}

/* Fin del contenedor Masonry para el calendario de eventos */



/* Efecto combinado */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.4s ease;
    padding: 0;
}

.gallery-item img {
    transition: transform 2s ease;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 0;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Caption refinado */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.8) 0%,
            transparent 100%
    );
    color: white;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}
