/* Modal para las historias */
#historiasModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Mobile menu styles */
@media (max-width: 991px) {
    .header .navbar-collapse {
        position: static !important;
        top: 100%;
        z-index: 9999;
        background: black !important;
        width: 100%;
        left: 0;
        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #eeeeee;
        -webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Menú desplegable en móvil */
@media (max-width: 991px) {
    .navbar-collapse {
        background: black;
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
        display: block;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--primary-color);
    }

    /* Ajustes para el botón de iniciar sesión y anunciate en móvil */
    .d-flex.align-items-center {
        margin-top: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .text-white,
    .add-listing {
        margin: 5px;
    }

    /* Asegurarnos que el botón "Anúnciate" ocupe todo el ancho en móvil */
    .add-listing .btn {
        width: 100%;
        margin-top: 8px;
        padding: 8px 15px;
    }

    /* Alineación del dropdown de usuario en móvil */
    .dropdown {
        position: static;
    }

    .dropdown-menu {
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        right: auto;
        display: contents !important;
    }
}

.historias-contenedor {
    width: 100%;
    max-width: 500px;
    margin: 50px auto;
    position: relative;
}

.close-historias {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.historia-item {
    background-color: #000;
    position: relative;
    overflow: hidden;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historia-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.historia-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fecha-historia {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Indicador de historias disponibles */
.tiene-historias {
    position: relative;
}

.tiene-historias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #2dc997;
    border-radius: 50%;
    animation: pulsar 1.5s infinite;
    z-index: 5;
}

@keyframes pulsar {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-image {
    cursor: pointer;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center top;
    /* 👈 esta es la clave */
    transition: transform 0.3s;
}


.profile-image:hover {
    transform: scale(1.05);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

header.header {
    background-color: #030303;
}

header.header .navbar-nav .nav-link {
    color: #fff;
}

header.header .nav-item.active .nav-link,
header.header .nav-link:hover {
    color: #ffffff;
}

header.header .btn.btn-primary.btn-md,
header.header .login a {
    color: #fff;
    background-color: #fe2566;
}

.uniform-container {
    background-color: #f0f0f0;
    padding: 20px;
    flex: 1;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active {
    padding: 0;
    outline: none;
    font-size: 15px;
    outline: none !important;
    padding: 9px;
    border: 1px solid #ccc;
    color: white;
    background-color: #fe2566;
}

.bootstrap-select>.dropdown-toggle {
    padding: 0;
    font-size: 11px;
    background: #fff;
    outline: none !important;
    border: none;
    padding: 12px;
    border: 1px solid #ccc;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.profile-card {
    background-color: #191919;
    color: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 1300px;
    margin: auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #ff1493;
}

.tag {
    background-color: #fe2566;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    margin: 2px;
    display: inline-block;
    font-size: 14px;
}

.phone-number {
    color: #03e32c;
    font-size: 1.2em;
}

.info-section {
    background-color: #000;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.info-title {
    color: #ff1493;
    margin-bottom: 5px;
}

.whatsapp-btn {
    background-color: #69c042;
    border: none;
    padding: 10px 20px;
}

.services-btn {
    background-color: #ff1493;
    border: none;
    padding: 10px 20px;
}

.gallery-container {
    background-color: #000;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1400px;
}

.gallery-title {
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.2em;
    font-weight: bold;
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 20, 147, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .star-rating .star {
        font-size: 12px !important;
        color: #ccc;
        cursor: pointer;
        transition: color 0.2s;
    }
}

.comment-card {
    background-color: #000;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.rating {
    color: #ff0066;
    font-size: 1.5rem;
    font-weight: bold;
}

.star-rating {
    color: #ff0066;
}

.empty-star {
    color: #333;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-evaluate {
    background-color: #ff0066;
    border: none;
    padding: 10px 30px;
}

.btn-evaluate:hover {
    background-color: #cc0052;
}

.reviews-container {
    background-color: #191919;
    color: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 1300px;
    margin: auto;
}

.video-link {
    position: relative;
    display: inline-block;
    /* Asegura que los hijos se posicionen según el <a> */
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Asegúrate de que esté sobre el video, pero debajo de indicadores si es necesario */
    cursor: pointer;
}