/* Tipografías y tamaños generales */
body, body.profesional-page {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    padding: 0;
}



/* Fondo para login, registro y dashboard */
body.login-page, body.register-page, body.profesional-page, body.usuarios-page {
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow-y: auto;
    color: #fff;
}

/* Contenedor glass para formularios y dashboard */
.form-card, .dashboard-card, .profile-card, .dashboard-usuario-card {
    position: relative;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 18px;
    padding: 2rem;
    color: #fff;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    margin: auto;
}
.form-card { max-width: 400px; width: 100%; }
.dashboard-card { max-width: 450px; width: 100%; margin-bottom: 45px;}
.profile-card { max-width: 700px; width: 100%; text-align: center; margin-top: 10px;margin-bottom: 45px;}
.dashboard-usuario-card { max-width: 1200px; width: 95%; }

/* Borde animado para form-card y dashboard-card y dashboard-usuario-card */
.form-card::before, .dashboard-card::before, .dashboard-usuario-card::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80, #ff6ec4);
    background-size: 600% 600%;
    animation: borderMove 8s linear infinite;
    z-index: -1;
}
.form-card::after, .dashboard-card::after, .dashboard-usuario-card::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    z-index: -1;
}
@keyframes borderMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Carrusel de fotos perfil profesional */
#carouselFotos {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
#carouselFotos img {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
}

/* Modal de video */
.modal-content {
    background: #222;
    color: #fff;
    border-radius: 18px;
    border: 1px solid #444;
}
.modal-body {
    padding: 0;
    text-align: center;
}
video {
    border-radius: 12px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background: #000;
}


/* Botón WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6);
    transition: background-color 0.3s ease;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: #fff;
    text-decoration: none;
}
.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

/* Botones en dashboard */
.dashboard-card a.btn {
    width: 100%;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .form-card, .dashboard-card, .profile-card, .dashboard-usuario-card {
        max-width: 95%;
        padding: 1.2rem;
    }
}

/* Descripción justificada */
.descripcion-1 {
    text-align: justify;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 11px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    line-height: 60px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: #fff;
}

/* --- Estilos para dashboard usuario (basados en dashboard profesional) --- */

body.usuarios-page {
    /* Ya cubierto arriba con body.login-page etc */
}

.dashboard-usuario-card {
    /* Ya definido arriba, solo max-width y padding */
}

/* Input group para búsqueda */
.input-group > .form-control {
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.input-group > .btn {
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* Botón geolocalización */
#btn-geolocalizacion {
    color: #fff;
    border: 2px solid #fff;
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin-left: auto;
}

#btn-geolocalizacion:hover {
    background-color: #fff;
    color: #333;
}

#btn-caracteristicas {
    color: #fff;
    border: 2px solid #fff;
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin-right: auto;
}

#btn-caracteristicas:hover {
    background-color: #fff;
    color: #333;
}

/* Tarjetas de profesionales */
.card {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.6);
}

/* Imagen en tarjeta */
.card-img-top {
    border-radius: 18px 18px 0 0;
    height: 180px;
    object-fit: cover;
}

/* Titulos y textos */
.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.card-text {
    font-size: 0.9rem;
    color: #ddd;
}

/* Datos adicionales */
.card p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #bbb;
}

/* Botón ver perfil */
.card a.btn-outline-primary {
    width: 100%;
    font-weight: 600;
    margin-top: 1rem;
    color: #fff;
    border: 2px solid;
}

/* Botón WhatsApp */
.whatsapp-btn {
    color: #25d366;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.whatsapp-btn:hover {
    color: #128c7e;
}

/* Título principal */
h1 {
    font-weight: 600;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    color: #fff;
}

/* RESPONSIVE MOBILE ADJUSTMENTS */

@media (max-width: 768px) {
    .dashboard-usuario-card {
        padding: 1rem;
        max-width: 95%;
        margin: 0 0.5rem;
    }
    .card-img-top {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .dashboard-usuario-card {
        padding: 1rem;
        max-width: 100%;
        margin: 0 0.5rem;
    }
    .card-img-top {
        height: 120px;
    }
    /* Evitar truncar texto en móviles */
    .card-text.text-truncate {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    /* Botones en tarjetas ocupan todo el ancho */
    .card a.btn-outline-primary {
        width: 100%;
        padding: 0.6rem 0;
        font-size: 1rem;
    }
    /* Input group vertical en móviles */
    .input-group {
        flex-direction: column;
    }
    .input-group > .form-control,
    .input-group > .btn {
        width: 100%;
        border-radius: 50px !important;
        margin-bottom: 0.5rem;
    }
    /* Botón geolocalización más grande */
    #btn-geolocalizacion {
       
    }
}
/* --- Botonera bottom fixed estilo app nativa --- */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 1050;
    backdrop-filter: blur(10px);
}

.bottom-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: color 0.3s ease;
    padding: 6px 0;
}

.bottom-menu a:hover,
.bottom-menu a.active {
    color: #4ade80; /* verde */
}

.bottom-menu svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    fill: currentColor;
}

/* Añadir padding bottom al contenido para que no quede tapado por la botonera */
.dashboard-usuario-card {
    padding-bottom: 80px !important;
}


#map {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Opcional: estilo para iconos circulares */
.custom-marker-icon {
    border-radius: 50%;
    border: 2px solid #4ade80;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
#profile-map {
    width: 100%;
    height: 300px; /* o la altura que prefieras */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive, svg.leaflet-image-layer.leaflet-interactive path {
    pointer-events: visiblePainted;
    pointer-events: auto;
}

.texto-aviso{
    color: #b77777;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: url("../img/fondo.png") !important;
}
.texto-comun{
    color:#fff;
}

/* Flip Card */
.flip-card {
    perspective: 1000px;
    width: 100%;
    max-width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1; /* Proporción 1:1 para ancho y alto */
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-front {
    background-color: #fff;
}

.flip-card-back {
    background: linear-gradient(135deg, #1f3d28, #4a233d, #261f54);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
    padding: 15px;
}

.btn-flip {
    margin-top: auto;
    border: 2px solid white;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .flip-card-inner {
        height: auto; /* Altura ajustada automáticamente en móviles si es necesario */
    }

    .flip-card-back {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.25rem;
    }
}