.elementor-123 .elementor-element.elementor-element-7a0bb75{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:50px;--margin-bottom:50px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:40px;--padding-right:40px;}.elementor-123 .elementor-element.elementor-element-80fcfc1{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-123 .elementor-element.elementor-element-0acf99e .elementor-heading-title{font-size:18px;font-weight:600;color:var( --e-global-color-51939fe );}.elementor-123 .elementor-element.elementor-element-586fab3{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:40px 40px;--row-gap:40px;--column-gap:40px;--margin-top:50px;--margin-bottom:50px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:40px;--padding-right:40px;}.elementor-123 .elementor-element.elementor-element-58eb89f{--display:flex;--gap:40px 40px;--row-gap:40px;--column-gap:40px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-123 .elementor-element.elementor-element-eb01bdd .elementor-heading-title{font-size:18px;font-weight:600;color:var( --e-global-color-51939fe );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.expand:not(.background-gradient), .elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.background-gradient:after{background-color:#FFFFFF;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:not(.background-gradient), .elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.background-gradient:before{background-color:#FFFFFF;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:hover{background-color:#FFFFFF;border-radius:5px 5px 5px 5px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.expand .card-header:not(.background-gradient) .card-header-button, .elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header.background-gradient:after{background-color:#FFFFFF00;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header:not(.background-gradient) .card-header-button, .elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header.background-gradient:before{background-color:#FFFFFF00;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.expand{border-radius:5px 5px 5px 5px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper{border-radius:5px 5px 5px 5px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button{font-family:"Montserrat", Sans-serif;font-size:14px;font-weight:500;padding:10px 50px 10px 20px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper.expand .card-header .card-header-button{color:var( --e-global-color-51939fe );margin:5px 5px 5px 5px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:not(.expand) .card-header .card-header-button{color:var( --e-global-color-51939fe );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:hover .card-header .card-header-button{color:var( --e-global-color-51939fe );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-expand .card-body{font-size:14px;padding:0px 20px 20px 20px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"]{margin:0px 20px 0px 0px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"] > [class*="icon"]{padding:0px 0px 0px 0px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"] .active-icon{color:var( --e-global-color-primary );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"] .active-icon svg{fill:var( --e-global-color-primary );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"] .normal-icon{color:var( --e-global-color-primary );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"] .normal-icon svg{fill:var( --e-global-color-primary );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:hover .card-header .card-header-button [class*="icon-group"] [class*="-icon"]{color:var( --e-global-color-primary );}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper:hover .card-header .card-header-button [class*="icon-group"] [class*="-icon"] svg{fill:var( --e-global-color-primary );}@media(min-width:768px){.elementor-123 .elementor-element.elementor-element-586fab3{--content-width:900px;}}@media(max-width:767px){.elementor-123 .elementor-element.elementor-element-7a0bb75{--padding-top:0px;--padding-bottom:0px;--padding-left:20px;--padding-right:20px;}.elementor-123 .elementor-element.elementor-element-586fab3{--gap:20px 20px;--row-gap:20px;--column-gap:20px;--padding-top:0px;--padding-bottom:0px;--padding-left:20px;--padding-right:20px;}.elementor-123 .elementor-element.elementor-element-58eb89f{--gap:20px 20px;--row-gap:20px;--column-gap:20px;}.elementor-123 .elementor-element.elementor-element-1602714 .jeg-elementor-kit.jkit-accordion .card-wrapper .card-header .card-header-button [class*="icon-group"]{margin:0px 10px 0px 0px;}}/* Start custom CSS for shortcode, class: .elementor-element-e85c3cd */.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
    gap: 20px;
}

@media (max-width: 1024px) { /* Tablet */
    .especialidades-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablet */
    }
}

@media (max-width: 768px) { /* Móvil */
    .especialidades-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 columna en móvil */
    }
}

.especialidad-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    height: 200px; /* Altura ajustable */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.especialidad-item:hover {
    transform: scale(1.05); /* Efecto zoom en hover */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Capa negra con opacidad */
}

.especialidad-text {
    position: relative;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}/* End custom CSS */