/* Popup para errores y mensajes */
.form-error,
.form-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 400px;
    width: 90%;
    cursor: pointer;
    animation: popupFadeIn 0.3s ease;
}

/* Diferenciación visual */
.form-error {
    border: 4px solid #d32f2f;
    padding: 20px 40px;
    text-align: center;
}


 
.form-message {
     background-color: #dff0d8;
    padding: 20px 40px;
    text-align: center;
}

/* Backdrop oscuro */
body:has(.form-error)::before,
body:has(.form-message)::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* Animación de entrada */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Animación de salida */
@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Estilos del texto */
.form-error p,
.form-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.form-error p {
    color: #d32f2f;
}

.form-message p {
    color: #388e3c;
}

/* Opcional: X de cerrar */
.form-error::after,
.form-message::after {
    content: '×';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.form-error:hover::after,
.form-message:hover::after {
    color: #333;
}


            .btn-bypass {
                background: #46b450;
                color: white;
                padding: 10px 20px;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                font-size: 14px;
                margin: 10px 0;
            }

            .btn-bypass:hover {
                background: #368f3f;
            }

            .btn-bypass:disabled {
                background: #ccc;
                cursor: not-allowed;
            }


            /* Estilos generales para la página del perfil */
            .perfil-container {
                width:100vw;
                margin: 0 auto;
                padding: 120px 0 0 0;
            }

            /* p {
            
                margin-block-start: 1em;
                margin-block-end: 1em;
            } */

            body{
                width: 100vw;
                overflow-x:hidden;
            }



            /* Cabecera del perfil */
            .perfil-header {
                display: flex;
                flex-wrap: nowrap;
                flex-direction: row;
                align-items: flex-start;
                justify-content: flex-start;
                width: calc(100% / 5 * 5);
                position: relative;
                
            }

            .perfil-header-nota {
                display: flex;
                flex-wrap: nowrap;
                flex-direction: row;
                align-items: flex-start;
                justify-content: flex-start;
                width: calc(100% / 5 * 5);
                position: relative;
                margin: 30px 0;
                
            }

            .perfil-header, .perfil-header  {
                margin: 0px 0px 0px calc((100vw/5)*1);
                width:calc((100vw/5)*4);
            }
            .perfil-header .perfil-imagen {
                position:relative;
                width: calc(100vw / 5 * 1); 
                height: auto;
                margin: 0px 0px 50px 0px;
                display: block;
                object-fit: contain;
                border-radius: 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                align-content: flex-start;
                flex-wrap: nowrap;

            }

            .perfil-cabecera{
                width: calc(100% / 4 * 3);
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
                align-items: flex-start;
                justify-content: flex-start;
        }


            .perfil-datos {
                padding: 0px;
                margin:0;
                height:100px;
                border-radius: 16px;
                position: relative;
                width: calc((100vw / 5) * 2) ;
                display: flex;
                justify-content: space-between; 
                align-items: flex-start;
                z-index:3;
            }



            .content-container{
            
                width: 100%;
                text-align: justify;

            }


            #votes{
                width:100%;
                position:relative;
            }
            /* Estilo para porcentajes */

            .valoracion-nota-votes{
                position: absolute;
                top: 30px;
                right: 0px;
                padding: 5px 10px;
                text-align: center;
                font-size: 40px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                width: 100%;
            }
            .valoracion-nota-votes .starn{
                margin: -45px -70px 0 0;
                font-size: 25px;
                position: absolute;
            }
            /* Contenedor principal */
            .contenedor-valoracion {
            position: relative;
            display: flex;       /* Para poner la barra a la izquierda y criterios a la derecha */
            align-items: flex-start;
            margin: 20px 0 -80px 0;
            }
            .contenedor-valoracion2 {
            position: relative;
            display: flex;       /* Para poner la barra a la izquierda y criterios a la derecha */
            align-items: flex-start;
            margin: 20px 0 20px 0;
            }


            /* Animación para el degradado (vertical) */
            @keyframes moveGradient {
            0% {
                background-position: 0% 0;
            }
            100% {
                background-position: 0% -200%;
            }
            }


            .rating-criterio .star {
            cursor: pointer;
            color: #ddd;
            transition: color 0.2s ease-in-out;
            font-size: 16px; 
            }


            .rating-criterio .star.azul {
            color: #2634ED; 
            } 



            /* Colores de las estrellas según el rango */
            .rating-criterio .star.rojo {
                color: #FF6004; /* Rojo */
            }

            .rating-criterio .star.naranja {
                color: #F68827; /* Naranja */
            }

            .rating-criterio .star.amarillo {
                color: #F0D637; /* Amarillo */
            }

            .rating-criterio .star.morado {
                color: #8189EF; /* Morado */ 
            }

            .rating-criterio .star.azul {
                color: #2634ED; /* Azul */ 
            }
            .rating-criterio .star.dorado {
                color: #2634ED; /* Dorado */
            }


            /* Texto del criterio */
            .texto-criterio {
            margin-left: 8px;
            font-weight: 500;
            }


             .porcentajes{
                            display:flex;
                            align-items: flex-end;
                            /* background: #fff;
                            border: 1px solid #e8e8e8;
                            border-radius: 16px;
                            padding: 15px;
                            box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5); 
                            width: 100%;
                            text-align:center;
                            text-shadow: 1px 1px 1px rgba(197, 197, 197, 0.5);  */

                        }
                        .porcentajes span{display: inline-block;}
                        .porcentajes svg{margin: 0 0 -30px 0;}
                        .porcentajes span p{ font-style: italic;
                            margin: 20px 0; }
                        .porcentajes span strong{text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); font-style: italic;}

                        .btngl{
                            
                        /* width: 270px;
                         height: 50px; */
                         border: none;
                         color: white !important;
                         font-weight: 600;
                         font-size: 20px;
                         position: relative;
                         overflow: hidden;
                         
                         cursor: pointer;
                         background: linear-gradient(-45deg, #ff6004, #f0d637, #2634ed);
                         background-size: 1000% 1000%;
                         animation: gradient 5s ease infinite;
                         box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.247);
                         transition-duration: 0.1s;
                        }
                        /* Button's gradient animation */
                        @keyframes gradient {
                         0% {
                         background-position: 0 50%;
                         }

                         50% {
                         background-position: 100% 50%;
                         }

                         100% {
                         background-position: 0 50%;
                         }
                        }
                        /* Effect on Hover*/
                        .btngl::before {
                         content: "";
                         position: absolute;
                         width: 50px;
                         height: 100%;
                         left: -70px;
                         top: 0;
                         background-color: rgba(214, 199, 255, 0.329);
                         filter: blur(10px);
                         transition-duration: 0.3s;
                         border-top-left-radius: 50%;
                         border-bottom-right-radius: 50%;
                        }

                        .btngl:hover::before {
                         transform: translateX(250px);
                         transition-duration: 0.3s;
                        }
                        /* Effect on click */
                        .btngl:active {
                         transform: translate(2px, 2px);
                         transition-duration: 0.1s;
                        }


            /* Estilo para la galería */


            .galeria-avanzada .swiper-wrapper{
                justify-content: center;
            }
            .galeria-container-simple {
                margin: 0 auto;
                width: 100%;
                overflow: hidden;
                height: fit-content;
                
            }



            .galeria-carousel::-webkit-scrollbar {
                display: none;
            }

            .galeria-carousel-item {
                flex: 0 0 calc(100% / 4);
                max-width: calc(100% / 4);
                transition: transform 0.3s ease-in-out;
            }

            .galeria-carousel-item:hover {
                transform: scale(1.05);
            }




            /* Estilo para imágenes en Masonry */
            /* Contenedor tipo Masonry */
            .galeria-escritorio {
                column-count: 4; 
                column-gap: 15px; 
                margin: 0 auto;
                max-width: 1200px;
                display:none;
            }

            /* Elementos dentro de la galería */
            .galeria-item {
                margin-bottom: 5px;
                display: inline-block; /* Necesario para column-count */
                width: 100%; /* Cada imagen ocupa el ancho completo de la columna */
            }

            .galeria-item img {
                width: 100%;
                height: auto;
                display: block;
                border-radius: 16px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            }

            #lightbox{top:15vh !important;}



            .lightboxOverlay {
                background: rgba(0, 0, 0, 0.85) !important; 
            }  

            /* Imagen sin borde blanco */
            .lb-image {
                border: none !important;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); 
            }

            .lb-details{display:none !important;}
            /* Texto de título debajo de la imagen */
            .lb-data .lb-caption {
                color: #fff !important; 
                font-family: 'Arial', sans-serif; 
                font-size: 16px;
                padding: 10px 0; 
            }

            /* Botones de navegación personalizados */
            .lb-nav a.lb-prev, 
            .lb-nav a.lb-next {
                background: none !important; 
                font-size: 30px; 
                color: #fff; 
                text-shadow: none !important; 
            }





            .swiper-button-next, .swiper-button-prev{
                color:white !important;
            }
            .swiper-pagination-bullet-active{
                background: white !important;

            }
            /* Mapa del perfil */

            .leaflet-bottom{display:none;}
            .leaflet-top, .leaflet-bottom{
                z-index: 3 !important;
            }
            .leaflet-pane{
                z-index: 2 !important;
            }


            #mapa {
                width: 100%;
                min-width: calc(100vw / 5 * 2 - 10px);
                height: 400px;
                border-radius: 16px;
            }
            #map-container{
                border-radius: 16px;
            }

            /* Descripción del perfil */
            .perfil-descripcion {
                background: #f4f4f4;
                padding: 20px;
                border-radius: 16px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            }

            .perfil-descripcion h3 {
                font-size: 1.5rem;
                margin-bottom: 10px;
            }

            .perfil-descripcion p {
                font-size: 1rem;
            }

            /* Estilos para el perfil y las columnas */
            .layout {

                width: 100%;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: flex-start;
                align-items: flex-start;
            }


            input[type="text"],
            input[type="email"],
            input[type="password"],
            input[type="number"],
            input[type="tel"],
            input[type="url"],
            input[type="date"],
            input[type="time"]
            {
                min-width: 150px;
                max-width: 100%;
                padding: 5px 10px !important;
                margin: 5px 0 5px 0 !important;
                border-radius: 8px !important;
                background: #f3f3f3;
                border:none !important;
                box-shadow:inset 4px 4px 12px rgba(197,197,197,0.5), inset -4px -4px 12px #ffffff;
                outline: none;
                display:block;
            }
            textarea  {
                width: 100% !important; 
                padding: 5px 10px !important;
                margin: 15px 0 !important;
                border-radius: 8px !important;
                resize: vertical;
                background: #f3f3f3;
                border:none !important;
                box-shadow:inset 4px 4px 12px rgba(197,197,197,0.5), inset -4px -4px 12px #ffffff;
                outline: none;
                height:150px;

            }

            .col-left {
                margin: 10px 10px 0 calc((100vw / 5)* 1);
                height: auto;
                border-radius: 16px;
                /* box-shadow: 10px 10px 50px #c5c5c5, -10px -10px 50px #ffffff; */
                position: relative;
                max-width: calc((100vw / 5)* 2 - 10px);
                display: flex;
                justify-content: flex-start;
                align-items: flex-start;
                flex-direction: column;
                z-index:3;
                width:calc((100vw / 5)* 2);

            }
            .col-left h4{
                margin: 15px 0 5px 0;
                font-weight:500;
            }

            .col-left .contacto-categorias{
                margin: 0;
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-content: center;
                flex-wrap: wrap;
                align-items: center;
                
            }
            .col-left .contacto-categorias p {
                margin: 10px 0;
                width: 100%;
            }

            .contacto-categorias-left{
            
            }


            .col-right {
                
                /* background: #f3f3f3; */
                padding: 0px 10px 0 10px;
                height: auto;
                border-radius: 16px;
                /* box-shadow: 10px 10px 50px #c5c5c5, -10px -10px 50px #ffffff; */
                position: relative;
                width: calc((100vw / 5)* 1);
                display: flex;
                justify-content: space-around;
                flex-wrap: nowrap;
                align-items: center;
                flex-direction: column;
                z-index: 2;
            }

            .col-right h4{
                margin: 20px auto 10px auto;
                text-align:center;
                width: 100%;
                max-width: 250px;
                font-weight:500;
            }
            .perfiles-similares{
                display: flex;
                flex-direction: column;
                width: 100%;
            }


            .experiencias-list {
            display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
            list-style: none;
            padding: 0;
            }

            /* Cada elemento hijo necesita ser un bloque continuo */
            .experiencias-list > li {
            display: inline-block; /* Importante para evitar saltos entre columnas */
            width: 100%;
            margin-bottom: 30px; /* Espaciado vertical entre elementos */
            break-inside: avoid; /* Evita que un elemento se divida entre columnas */
            }

            .experiencia {
                /* border-bottom: 1px solid #ddd; */
                /* padding: 20px 0; */
                position: relative;
            }
            .experiencia-oculta {
                border: 5px solid red;
                opacity: 0.5;

            }

            .experiencia h4 a {
                color: #1C1C1C;
                text-decoration: none;
                font-size: 1.2rem;
            }

            .experiencia h4 a:hover {
                text-decoration: underline;
            }

            .comentario-general{
                font-style: italic;
                text-align: justify;
            }
            .respuesta-botones{
                display: flex;
                justify-content: flex-start;
                align-items: baseline;
                color:#FF6004;
            }

            .cliente {
                margin: 10px 0;
                display: flex;
                align-items: center;
            }

            .cliente .foto-cliente {
                margin: 0 10px;
                overflow: hidden;
                border: solid 1px #E6DFDF;
                border-radius:50%;
                /* padding: 2px 2px 0px 2px; */
                width: 60px;
            }
            .cliente .foto-cliente img{
                margin: 0px 0 -3px 0;
            }

            /* valoración de los criterios */
            .criterio {
                margin: 0 0 0 30px;
            }
            #preguntas-container {
                margin: 0 0 0 30px;
            }

            .criterio-contenido {
                /* border-left: 2px solid #1C1C1C; */
                padding-left: 10px;
                margin-top: 10px;
            }

            .votaciones-criterios p,
            .valoracion-total {
                margin: 5px 0;
            }

            .valoracion-total {
                font-size: 1.2rem;
                font-weight: bold;
            }

            /* valoración con estrellas */
            .rating {
                display: inline-block;
                margin: 10px 0;
                direction: ltr;
                font-size: 32px;
                color: #ddd;
            }

            .rating .star {
                cursor: pointer;
                color: #ddd;
                transition: color 0.2s ease-in-out;
            }

            .rating .star.selected {
                color: #cea221;
            }




            /* Colores de las estrellas según el rango */
            .rating .star.rojo {
                color: #FF6004; /* Rojo */
            }

            .rating .star.naranja {
                color: #F68827; /* Naranja */
            }

            .rating .star.amarillo {
                color: #F0D637; /* Amarillo */
            }

            .rating .star.morado {
                color: #8189EF; /* Morado */ 
            }

            .rating .star.azul {
                color: #2634ED; /* Azul */ 
            }
            .rating .star.dorado {
                color: #2634ED; /* Dorado */
            }




            .perfil-valoracion-nota.rojo .starn {
                color: #FF6004; /* Rojo */
            }

            .perfil-valoracion-nota.naranja .starn{
                color: #F68827; /* Naranja */
            }

            .perfil-valoracion-nota.amarillo .starn{
                color: #F0D637; /* Amarillo */
            }

            .perfil-valoracion-nota.morado .starn{
                color: #8189EF; /* Morado */ 
            }

            .perfil-valoracion-nota.azul .starn{
                color: #2634ED; /* Azul */ 
            }
            .perfil-valoracion-nota.dorado .starn{
                color: #2634ED; /* Dorado */
            }


            .valoracion-nota-votes.rojo .starn {
                color: #FF6004; /* Rojo */
            }

            .valoracion-nota-votes.naranja .starn{
                color: #F68827; /* Naranja */
            }

            .valoracion-nota-votes.amarillo .starn{
                color: #F0D637; /* Amarillo */
            }

            .valoracion-nota-votes.morado .starn{
                color: #8189EF; /* Morado */ 
            }

            .valoracion-nota-votes.azul .starn{
                color: #2634ED; /* Azul */ 
            }
            .valoracion-nota-votes.dorado .starn{
                color: #2634ED; /* Dorado */
            }




            .votacionestrella .star.rojo {
                color: #FF6004; /* Rojo */
            }

            .votacionestrella .star.naranja {
                color: #F68827; /* Naranja */
            }

            .votacionestrella .star.amarillo {
                color: #F0D637; /* Amarillo */
            }

            .votacionestrella .star.morado {
                color: #8189EF; /* Morado */ 
            }

            .votacionestrella .star.azul {
                color: #2634ED; /* Azul */ 
            }
            .votacionestrella .star.dorado {
                color: #2634ED; /* Dorado */
            }

            /* Botones de acción */
            .toggle-btn, .toggle-criterio-btn {
                background-color: #1c1c1c;
                color: #fff;
                border: none;
                padding: 10px 15px;
                cursor: pointer;
                font-size: 16px;
                display: inline-block;
                margin-bottom: 10px;
                border-style: none !important;
                text-align: center;
                width: auto;
            }


            /* Nueva experiencia */
            .nueva-experiencia {
                border: 1px solid #ddd;
                padding: 20px;
                border-radius: 16px;
                background: #f9f9f9;
                margin-bottom: 30px;
            }

            .nueva-experiencia h3 {
                font-size: 1.5rem;
                margin-bottom: 10px;
                color: #333;
            }

            .nueva-experiencia label {
                display: block;
                margin-bottom: 5px;
                font-weight: bold;
            }

            .nueva-experiencia input,
            .nueva-experiencia textarea {
                width: 100%;
                padding: 10px;
                margin-bottom: 15px;
                border: 1px solid #ccc;
                border-radius: 16px;
                font-size: 1rem;
            }

            [type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
                text-align:center;
                background-color: #1C1C1C;
            }

            .nueva-experiencia button {
                background-color: #1C1C1C;
                color: white;
                border: none;
                padding: 10px 15px;
                border-radius: 16px;
                font-size: 1rem;
                cursor: pointer;
            }

            .nueva-experiencia button:hover {
                background-color: #1C1C1C;
            }


            /* Comentarios */
            .comentario-icon {
                cursor: pointer;
                margin-left: 10px;
            }

            .comentario {
                background-color: #f9f9f9;
                padding: 10px;
                border: 1px solid #ddd;
                margin: 5px 20px;
                font-size: 0.9em;
                color: #333;
                width: fit-content;;
            }



            .nota-manuscrita {
                position: absolute;
                top: 10px;
                right: 10px;
                border: 2px solid #2634ED; /* Borde dorado */
                padding: 5px 15px; /* Ajustar para que no sea tan grande */
                border-radius: 16px; /* Esquinas ligeramente redondeadas */
                font-size: 2em; /* Tamaño más destacado */
                color: #2634ED; /* Color dorado para el texto */
                text-align: center; /* Centrar el texto */
                box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
                z-index: 3; /* Asegurarse de que esté encima */
                transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            }


            


            /* Estilos para los botones de valoración */
            .votacion {
                display: flex;
                align-items: center;
                font-size: 20px;
                justify-content: flex-start;
            }


            .votacion button {
                background-color: #f0f0f0;
                color:#212121;
                border:0;
                padding: 5px 15px;
                cursor: pointer;
                transition: background-color 0.3s ease, transform 0.3s ease;
            }
            .votacion .downvote{
                border-top-right-radius: 0px;
                border-bottom-right-radius: 0px;
                border-top-left-radius: 15px;
                border-bottom-left-radius: 15px;
                
            }
            .votacion .upvote{
                border-top-right-radius: 15px;
                border-bottom-right-radius: 15px;
                border-top-left-radius: 0px;
                border-bottom-left-radius: 0px;
            }

            .votacion button:hover {
                background-color: #f0f0f0;
                transform: scale(1.1);
            }

            .votacion-puntuacion {
                padding: 5px 5px;
                font-weight: bold;
                font-size: 16px;
                background-color: #f0f0f0;
            }

            .votacion button.votado {
                background-color: #f0f0f0;
                color: white;
                cursor: not-allowed; /* Deshabilitar el botón después de votar */
            }

            .votacion button.votado:hover {
                background-color: #f0f0f0;
            }

            /* Estilo para los botones de reportar */
            .votacion .reportar {

                color: white;
            }

            .votacion .reportar:hover {
                background-color: #e60000;
            }

            .corazon{
                
                position: relative;
                cursor:pointer;
                opacity:1;
                z-index:1;
            }
            .corazon:hover{opacity:1;}
            .corazon .no-activo{opacity:0.2;}
            .quiero-ir{
            
                position: relative;
                cursor:pointer;
                opacity:1;
                z-index:1;
            }
            .quiero-ir:hover{opacity:1;}
            .quiero-ir .no-activo{opacity:0.2;}

            .he-estado{
                
                position: relative;
                cursor:pointer;
                opacity:1;
                z-index:1;
            }
            .he-estado:hover{opacity:1;}
            .he-estado .no-activo{opacity:0.2;}



            .corazon:hover.corazon .no-activo {opacity:1;}
            .quiero-ir:hover.quiero-ir .no-activo {opacity:1;}
            .he-estado:hover.he-estado .no-activo {opacity:1;}



            .perfil-botones {
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                margin:  0 0px 0px 0px;
                text-align:center;
                gap: 10px;
            }

            .perfil-botones button {
                background: none;
                border: none;
                font-size: 20px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 5px 10px;
                color: #555;
                transition: color 0.3s ease;
            }


            .perfil-botones a {
                text-decoration: none;
                color: inherit;
            }

            .perfil-botones .btn-like {
                color: #e74c3c; /* Rojo para el corazón */
            }

            .perfil-botones .btn-quiero {
                color: #666; /* Gris para "He estado" */
            }
            .perfil-botones .btn-estado {
                color: #3498db; /* Azul para "He estado" */
            }

            .perfil-botones .btn-call {
                color: #2ecc71; /* Verde para "Llamar" */
            }

            .perfil-botones .btn-directions {
                color: #9b59b6; /* Morado para "Cómo llegar" */
            }

            .perfil-botones i {
                font-size: 20px;
            }
            .perfil-botones p {
                font-size: 16px;
                line-height: 16px;
            }
                
                

            .btn-share {
                /*
                color: #f39c12; 
                cursor:pointer;
                top:10px;
                position: relative;
                */
            }

            .perfil-botones .btn-whatsapp {
                color: #25d366; /* Verde de WhatsApp */
            }

            .respuesta-propietario {
                /* background-color: #f9f9f9; */
                padding: 10px;
                margin: 20px 0 0 20px;
                /* border-radius: 16px; */
                font-style: italic;
                border-top:solid 1px #E6DFDF;
                text-align: justify;
            }





            .nota-manuscrita.rojo {
                color: #FF6004; /* Rojo */
                border-color: #FF6004;
            }

            .nota-manuscrita.naranja {
                color: #F68827; /* Naranja */
                border-color: #F68827;
                
            }

            .nota-manuscrita.amarillo {
                color: #F0D637; /* Amarillo */
                border-color: #F0D637; 
            }

            .nota-manuscrita.morado {
                color: #8189EF; /* Morado */ 
                border-color: #8189EF;
            }

            .nota-manuscrita.azul {
                color: #2634ED; /* Azul */ 
                border-color: #2634ED;
            }

            .nota-manuscrita.dorado {
                color: #2634ED; /* Dorado */
                border-color: #2634ED;
            }






            .grid-perfiles {
                        display: grid;
                        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
                        justify-items: center;
                        gap: 10px;
                        padding: 0px 0px 0 0;
                    }

                    .perfil-item {

                        position: relative;
                        display: flex;
                        flex-direction: column;
                        border-radius: 16px;
                        text-align: center;
                        /* background: #f3f3f3; */
                        transition: transform 0.3s ease, box-shadow 0.3s ease;
                        height: auto;
                        max-width: 250px;
                        width:100%;
                        /* box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff; */
                        /* margin: 5px 3px; */
                        
                        /* }

                    .perfil-item:hover { */
                        /* box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;*/
                        
                        background: #fff;
                        border: 1px solid #e8e8e8;
                        box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5);
                        z-index: 10; 
                        }


                .destacado {
                    // background-color: rgba(240,214,55,0.4) !important;
                    box-shadow: 6px 6px 12px #bdab3d, -6px -6px 12px #fff6bd;
                }

            .destacado:hover{
                // box-shadow:  inset 4px 4px 12px #bdab3d, inset -4px -4px 12px #fff6bd !important;
                box-shadow: inset 4px 4px 12px #c5c5c580, inset -4px -4px 12px #f3f3f3;
            }




            .banner-imagenes-hover-perfil .seccion-hover-perfil.active {
                            opacity: 1; /* Las secciones activas se vuelven visibles */
                            }

            .banner-imagenes-hover-perfil {
                            position: relative;
                            width: auto;
                            /* height: 100%; */
                            overflow: hidden;
                            display: flex; /* Para alinear las imágenes de forma horizontal */
                            /* min-height: 200px; */
                            aspect-ratio: 1 / 1;
                            margin: 0;
                            }
                    
                        


                            .seccion-hover-perfil {

                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 100%;
                                height: 100%;
                                background-size: cover;
                                background-position: center;
                                opacity: 0;
                                transition: opacity 0.3s ease-in-out;
                                border-radius: 6px;
                            }


            .perfil-info {
            position: relative;
            bottom: 0;
            left: 0;
            width: 100%;
            opacity: 1;
            border-radius: 16px;
            display: flex;
            flex-direction: column; 
            cursor:pointer;
            padding: 10px  10px 10px 10px;
            }

            .perfil-nombre {
            position: absolute;
            bottom: 0px;
            left: 0px;
            width:100%; 

            font-weight: bold!important;

            color: #1c1c1c;

            z-index: 5;
            pointer-events: none; 
            padding: 15px; 
            background-color: #f9f9f9; 
            }
            .perfil-nombre span{
            font-size: 0.9em !important;
            font-weight: 400;

            }

            .perfil-nombre-info{
            font-size: 16px !important;
            font-weight: bold !important;
            padding: 10px 0;
            white-space: nowrap; 
            overflow: hidden;   
            text-overflow: ellipsis; 
            width: auto;        
            display: block;     

            }



            .perfil-categorias {
                text-align: left;
                white-space: nowrap;
                overflow: hidden;    
                text-overflow: ellipsis; 
                width: auto;       
                display: block;      
            }
            .perfil-categorias i{
            font-size: 0.8em !important;
            }





            .cabeceracora{
                        display:flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-items: center;
                    }

                


                    .corazonv{

                    position: relative;
                    left: 0px;
                    top: 0px;
                    cursor:pointer;
                    opacity:1;
                    z-index:6;
                    }
            .corazonv:hover{opacity:1;}
            .corazonv .no-activo{opacity:0.3;}


            .galeria-container {
                display: grid;
                grid-template-columns: repeat(6, 1fr);
                gap: 0 5px; 
                margin-top: 10px;
            }

            .galeria-container a {
                display: block;
                overflow: hidden;
                position: relative;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
            }


            /* Estilo para las imágenes */
            .galeria-container img {
                width: 100%;
                height: 80px;
                object-fit: cover;
                border-radius:12px;
            }

            /* Ajustar tamaños individuales */
            .galeria-container a:nth-child(1),
            .galeria-container a:nth-child(2){
                grid-column: span 3;
                grid-row: span 1;
            }
            .galeria-container a:nth-child(3),
            .galeria-container a:nth-child(4),
            .galeria-container a:nth-child(5) {
                grid-column: span 2;
                grid-row: span 1;
            }


            .perfil-valoracion {
                    position: relative;
                    top: 0px;
                    right: 0px;
                    color: #292D74;
                    padding: 5px 0px;
                    font-weight: bold;
                    z-index: 0;
                    width: 35px;

                    }

            .perfil-valoracion.rojo span {
                color: #FF6004; /* Rojo */
                border-color: #FF6004;
            }

            .perfil-valoracion.naranja span {
                color: #F68827; /* Naranja */
                border-color: #F68827;
            }

            .perfil-valoracion.amarillo span {
                color: #F0D637; /* Amarillo */
                border-color: #F0D637;
            }

            .perfil-valoracion.morado span {
                color: #8189EF; /* Morado */ 
                border-color: #8189EF;
            }

            .perfil-valoracion.azul span {
                color: #2634ED; /* Azul */ 
                border-color: #2634ED;
            }


            .perfil-valoracion.dorado span {
                color: #2634ED; /* Dorado */
                border-color: #2634ED;
            }












            .galeria-container-simple {
                    display: flex; /* Flexbox para alinear imágenes */
                    gap: 5px; /* Espaciado entre imágenes */
                    justify-content: center; /* Centrar las imágenes */
                    flex-wrap: wrap; /* Permitir que las imágenes bajen si el contenedor es estrecho */
                    max-width: 100%; /* Asegura que no desborde */
                }

                .galeria-container-simple a {
                    flex: 0 1 calc(33% - 3px); /* 4 columnas con espacio */
                    text-decoration: none; /* Sin subrayado en los enlaces */
                    transition: transform 0.3s ease;
                }

                .swiper-slide img{
                    /* height:-webkit-fill-available; */
                    height:100%;
                    max-height: calc((100vh / 5) * 2);
                    object-fit: cover;
                    width: -webkit-fill-available;
                }

                .galeria-container-simple a:hover {
                    transform: scale(1.10); 
                }




                .perfil-header-notas {
                display: flex;
                flex-wrap: nowrap;
                flex-direction: row;
                align-items: center;
                    width: 100%;
                /* justify-content: space-between; */
                justify-content: flex-start;
                gap: 0 20px;
                /* margin:40px calc((100vw / 6) * 2) 40px calc((100vw / 6) * 1); */

            }
                
            .perfil-valoracion-nota {
                position: absolute;
                /* top: 85px; */
                right: 0px;
                padding: 5px 10px;
                /* width: calc(100vw / 6); */
                text-align: center;
                font-size: 32px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                width: 100%;
            }
            .perfil-valoracion-nota .starn{
                margin: -50px -65px 0 0;
                font-size: 25px;
                position: absolute;
            }



            .perfil-valoracion-notas {
                position: relative;
                top: 0px;
                right: 0px;
                padding: 5px 10px;
                text-align: center;
            }




            .features{
                display: flex;
                flex-wrap: wrap;
                overflow-x: auto;
                overflow-y: hidden;
                gap: 0 10px;
                padding: 0px;
                justify-content: flex-start;
            }

            .features li{
                flex: 0 0 auto;
                min-width: max-content;
                box-sizing: border-box;
                background-color: #fff;
                border-radius: 16px;
                color: #090909;
                margin: 4px 0px;
                background: #f3f3f3;
                /* cursor: pointer; */
                transition: all 0.3s;
                /* box-shadow: 6px 6px 12px #c5c5c580, -6px -6px 12px #ffffff; */
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                gap: 0px;
                padding: 5px 10px;
                margin: 2px 0;
                font-weight: 400;
                color: #2634ED;
                font-size: 12px;
            }





                .icono-emoji {
                font-size: 30px; 
                line-height: 1;  
                text-align: center;
            }


            .left-colum{width: 45%; float: left;}
            .right-colum{width: 300px; float: right;}

            .column-conteiner{display: flex; justify-content: space-between; align-items: flex-start;}




            #overlay {
            
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(
                    to bottom,
                    rgba(11, 14, 50, 0.72) 0%,
                    rgba(0, 0, 0, 0.72) 62%
                );

                
                z-index: 999;
                display: none;
                opacity: 1;
                /* transition: opacity 0.6s ease; */
            }
            #overlay.vota-activo {

                /* background: linear-gradient(
                    to bottom,
                    #B3B8F9 0%,
                        #FFC8A7 100%
                ); */
                background:white;
                display: block;
                opacity: 1;
                
            }


            
                    .perfil-sidebar-right{
                        height: 600px;
                        width: 300px;
                        position: fixed;
                        right: 0;
                        bottom: 0;
                    }
                    .perfil-sidebar-left{
                        height: 600px;
                        width: 300px;
                        position: fixed;
                        left: 0;
                        bottom: 0;
                    }



            #loading-screen {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                /* background-color: #E8E8E8;  */
                z-index: 9999; 
                display: block; 
            }

            #opiniones{
                 margin:50px 0;
               /* background: #fff;
                border: 1px solid #e8e8e8;
                border-radius: 16px;
                padding: 15px;
                box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5);
                width: 100%; */
                /* white-space: nowrap; */
                /* overflow: hidden; */
                /* text-overflow: ellipsis; */
                /* width: auto;
                display: block; */
            }



            /* Estilos del modal */
            #form-editar-experiencia , #form-nueva-experiencia, #form-registrar-cliente-y-experiencia {
                /* position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%); */
                position:absolute;
                top: 100px;
                /* left: calc(50% - 400px); */
                /* left: calc(50% - 800px); */
                z-index: 1000;
                background-color: white;
                padding: 20px;
                border-radius: 30px;
                background: #fff;
                border: 1px solid #e8e8e8;
                box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5);
                /* width: 80%; */
                /* max-width: 800px; */
                /* max-width: 1600px; */
                display: none;
                margin-top: 0;
                /* max-height: 90vh; */
                /* overflow-y: auto; */

            }

            #form-editar-experiencia::before , #form-nueva-experiencia::before, #form-registrar-cliente-y-experiencia::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 30px; 



            /*background: linear-gradient(90deg, rgba(255, 96, 4, 0.65), rgba(240, 214, 55, 0.65), rgba(38, 52, 237, 0.65), rgba(255, 96, 4, 0.65));  */




            background-size: 200% 100%; /* Duplica el tamaño horizontal para permitir movimiento fluido */
            background-position: 0 0;
            border-radius: 30px 30px 0 0;
            background-repeat: repeat-x; /* Asegura que el degradado se repita sin cortes */
            animation: moveGradient 10s linear infinite; /* Animación continua sin parpadeo */
            z-index: 1; /* Asegura que el pseudo-elemento esté visible sobre el fondo */
            }

            /* Animación mejorada */
            @keyframes moveGradient {
            0% {
                background-position: 0% 0;
            }
            100% {
                background-position: -200% 0; /* Movimiento continuo hacia la izquierda */
            }
            }





            <?php
                $mostrar_telefono_llamar_movil = get_post_meta(get_the_ID(), '_mostrar_telefono_llamar_movil', true);
                if ($mostrar_telefono_llamar_movil) {
                    echo '.telefono-float {display:none !important;}';
                }


            ?>



            /*

            @media (max-width: 1024px) {
            
                .perfil-datos {
                width: 100%;
                }
                    .perfil-funciones {
                    width: 100%;
                    margin:10px 0;
                    position:relative;
                }
                
            
            

            }

            */


            /* ========================================
            CORRECCIONES PARA BOTONES MÓVILES (IPHONE)
            ======================================== */

            /*

            .col-movil {
                -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
            }

            .herramienta {
             
                min-height: 44px;
                display: flex;
                align-items: center;
                margin-bottom: 10px;
            }

            .herramienta a {
               
                display: block;
                width: 100%;
                padding: 12px 20px;
                text-decoration: none;
                
               
                -webkit-tap-highlight-color: rgba(38, 52, 237, 0.2);
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                user-select: none;
                
               
                cursor: pointer;
                touch-action: manipulation;
                
                
                background-color: #f0f0f0;
                border-radius: 8px;
                color: #1c1c1c;
                font-weight: 500;
                text-align: center;
                transition: background-color 0.2s ease;
            }

            .herramienta a:active {
                background-color: #e0e0e0;
                transform: scale(0.98);
            }

            
            .herramienta a[href^="tel:"],
            .herramienta a[href^="https://wa.me/"] {
               
                pointer-events: auto !important;
                position: relative;
                z-index: 10;
            }

           
            .herramienta a * {
                pointer-events: none;
            }

           
            @supports (-webkit-touch-callout: none) {
                .herramienta a {
                    
                    min-height: 44px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }


*/


                        
                @media (max-width: 768px) {


                   

                    body, html{width:100%;overflow-x:hidden;}

                    


                    .experiencias-list {
                    columns: 1;

                    }



                    #form-editar-experiencia, #form-nueva-experiencia, #form-registrar-cliente-y-experiencia{
                        width: 100%;
                        max-width: 800px;
                        /* padding: 30px 20px; */
                        padding: 20px 5px;
                        /* position: relative; */
                        /* position: fixed; */
                        top:80px;
                        left:0 !important;
                    
                    }
                    .criterio {
                        margin: 0 0 0 0px;
                        }

                
                    .rating {
                        font-size: 22px;
                    }

                    .review-container{
                            padding: 5px !important;
                    }


                    .col-left{
                    max-width:100%;
                    width:100%;
                
                    }
                    .col-right{
                        width:100%;
                        margin:20px 0;
                        display:none;
                        
                    }
                    .col-movil{
                        /* width:100%;
                        margin:0px 0;
                        position:fixed;
                        bottom:0;
                        left:0;
                        display: flex !important;
                        background: #fff;
                        z-index: 99;
                        flex-direction: row;
                        align-items: center;
                        flex-wrap: wrap; */

                        position: fixed;
                        bottom: 0;
                        left: 0;
                        display: flex !important;
                        flex-direction: row;
                        background: #fff;
                        z-index: 99;
                        overflow-x: auto; /* permite el scroll horizontal */
                        white-space: nowrap; /* evita que los elementos se vayan a una nueva línea */
                        width: 100vw; /* ancho de la pantalla visible */
                        padding: 5px 10px 5px;
                        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
                        scrollbar-width: thin; /* mejora para Firefox */

                         background: rgba(255, 255, 255, 0.8);
                        /* backdrop-filter: blur(10px) saturate(180%); */
                        -webkit-backdrop-filter: blur(10px) saturate(180%);
                        border: 1px solid rgba(255, 255, 255, 0.2);
                        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);



                    }

                    .herramienta{
                       
                        display: inline-block; 
                        padding: 10px;
                        margin-right: 5px;
                        text-align: center;
                        /* border: 1px solid #e8e8e8; */
                        /* border-radius: 6px; */
                        border: 1px solid #e8e8e8;
                        border-radius: 30px;
                        box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5);
                        background: #f9f9f9;
                        white-space: normal; 
                        flex: 0 0 auto; 
                    }
                    .herramienta a {
                        font-size:14px !important;
                    }
                    .herramienta-container{
                        
                    position: fixed;
                    top: 0;

                    left: 0;
                    width: 100%;
                    /* max-width: 250px; */
                    height: calc(100vh);
                    background: rgba(0, 0, 0, 0.8);
                    z-index: -1;
                    align-content: center;
                    display: none;
                    justify-content: center; /* centrar horizontalmente */
                    align-items: center;     /* centrar verticalmente */
                    overflow-y: auto;        /* scroll vertical si no cabe */
                    padding: 20px;           /* espacio lateral y superior/inferior */
                    box-sizing: border-box;

                     background: rgba(255, 255, 255, 0.1);
                        backdrop-filter: blur(10px) saturate(180%);
                        -webkit-backdrop-filter: blur(10px) saturate(180%);
                        border: 1px solid rgba(255, 255, 255, 0.2);
                        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);


                    }

                    .herramienta-container form {
                        /* background: #fff; */
                        padding: 20px;
                        background: #fff;
                        border: 1px solid #e8e8e8;
                        border-radius: 16px;
                        padding: 15px;
                        box-shadow: 6px 6px 12px rgba(197, 197, 197, 0.5); 
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        width: 100%;
                        /* margin: 0 0 20px 0; */
                    }

                
                    .contacto-container-movil,
                    .herramienta-container form {
                        position: relative;
                    }

                    .cerrar-herramienta-movil {
                        position: absolute;
                        top: 10px;
                        right: 10px;
                        background: rgba(0, 0, 0, 0.6);
                        color: white;
                        border: none;
                        width: 25px;
                        height: 25px;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 14px;
                        cursor: pointer;
                        z-index: 10;
                        transition: all 0.3s ease;
                    }

                    .cerrar-herramienta-movil:hover {
                        background: rgba(0, 0, 0, 0.8);
                        transform: scale(1.1);
                    }
                
                    .perfiles-similares.movil{
                        display:block !important;
                    }

                    .grid-perfiles {

                        

                            // grid-template-columns: repeat(1, 1fr); 
                            display: grid;
                            grid-auto-flow: column; /* Fluye en columnas */
                            // grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
                            gap: 10px; /* Espacio entre elementos */
                            overflow-x: auto; /* Habilita el scroll horizontal */
                            padding: 10px;
                            scroll-snap-type: x mandatory; /* Alineación suave al desplazar (opcional) */
                            grid-template-columns: auto;
                            height: fit-content;
                            }

                            .perfil-item{
                            width: 38vw;
                            border: 1px solid #e8e8e8;
                            height: fit-content;
                        
                            }

                            .perfil-container{

                                padding: 80px 0 0 0;

                            }
                            .perfil-header h1, .perfil-header h2 {
                                width:100%;
                            }
                            
                

                        .perfil-header {
                            width:calc(100vw - 20px);
                            margin:0 auto 10px auto;
                        } 
                        .perfil-header .perfil-imagen{ 
                            display:none;
                            
                            /* overflow: visible; */
                            /* margin:0px 10px 0px -50px;} */

                        }
                        .perfil-header .perfil-imagen.movil{ 
                            display:block !important;
                            margin: 15px 0px 20px 0px;
                            
                        }
                        .perfil-header .perfil-imagen.movil .perfil-valoracion-nota{ 
                            font-size:22px;
                            top: 10px;
                            left: 10px;
                        }
                        
                        .perfil-header .perfil-imagen.movil .perfil-valoracion-nota .starn{
                            margin: -25px -35px 0 0;
                            font-size: 15px;
                        }


                        .perfil-header .perfil-cabecera{
                            width:calc(100% - 20px);
                            /* width:calc(50vw - 10px); */
                            /* order:1; */
                            }

                        .perfil-datos{
                            height: 80px;
                        width: max-content;
                        margin: 0 0 0px 0px;
                            }
                        .perfil-funciones{
                            /*  
                            width:calc(50vw - 10px);
                            height: auto; 
                            padding: 0;
                            margin: 0;*/
                            display:none;
                            }

                        .perfil-botones {
                            gap:5px;
                        }
                        .perfil-botones p {
                            font-size: 12px;
                            line-height: 12px; 
                        }

                    
                    
                

                <?php
                
                    if ($mostrar_telefono_llamar_movil) {
                        echo '.telefono-float {display:flex !important;}';
                    }


                ?>

                    .left-column{width:100%;  margin: 0 0 15px 0;  text-align: center;}
                    .right-column{width: 100%; float: none;}
                    .column-conteiner{   flex-direction: column;}


                

                    .layout{
                        flex-direction: column-reverse;
                        width: calc(100vw - 20px);
                        margin: 0 auto;
                    }
                    /* .perfil-item{
                        width:48%;
                        height:350px;
                    }
                    .perfil-info{
                        padding:15px 5px 5px 5px;
                        height:350px;
                        background: transparent;
                    }
                    .grid-perfiles{
                        gap:1px;
                        padding:1px;
                    }
                */
                    .col-left{
                        margin:0;
                    }

                    #mapa{
                        /* height:200px !important; */
                        /* pointer-events:none; */
                    }
                    .leaflet-top {
                        display:none;
                    }








            
            }


