/* botones submenu compartir like btn mapa */
.submenu-movil-compartirlike {
    padding: 0;
    width: 41%;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
}
  .btn-anuncio-individual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    margin: 10px;
    border: none;
    cursor: pointer;
}
.btn-anuncio-individual svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
.btn-whatsapp {
    background-color: #0096c7;
}
.btn-mapa {
    background-color: #E31C5F;
}
.ajustar-row-icon {
    align-items: baseline;
}
.btn-all-photos {
    position: relative;
    margin-top: -54px;
    text-align: right;
}
.btn-volver-a-mapa{
    display: none;
}
h2{
    font-size: 20px;
}
hr {
margin: 18px 0px !important;
color: #b5b5b5;
}
.precio-anuncio{display: none;}
.precio-anuncio, .precio-anuncio-lateral {
    font-size: 26px;
    color: #2673a2;
    font-weight: 600;
    font-family: arial;
}
#btn-mostrar-menos-descripcion{
    display: none;
}
#btn-mostrar-mas-descripcion, #btn-mostrar-menos-descripcion{
    cursor: pointer;
    text-decoration: underline;
}
.tarjeta-flotante-derecha {
    height: 244px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
    text-align: center;
    position: sticky;
    top: 60px;
}
.area-de-iconos {
border: 0.6px solid #dfd9d9;
border-radius: 12px;
padding: 14px;
margin: 14px 0px;
}
b, strong {
font-weight: 600;
}
.texto-descripcion {
height: 330px;
overflow: hidden;
margin-bottom: 18px;
}
.row.area-de-iconos div {
display: flex;
flex-wrap: wrap;
width: 19%;
justify-content: center;
}
/* estilos galeria  anuncio individual */
/* Estilos para el botón */
.modal-galeria-anuncio-individual__button {
    background-color: white;
    border: 0;
    padding: 6px 12px;
    border-radius: 4px;
    width: 209px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.modal-galeria-anuncio-individual__icon {
    height: 16px;
    width: 16px;
    fill: currentColor;
    margin-right: 13px;
}

/* Estilos para la modal */
.modal-galeria-anuncio-individual {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: scroll;
    z-index: 1000;
}

.modal-galeria-anuncio-individual__content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
}

.modal-galeria-anuncio-individual__close {
    position: absolute;
    top: 24px;
    right: 25px;
    background: #fff;
    border: none;
    font-size: 23px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1;
    line-height: 20px;
    height: 35px;
}

.modal-galeria-anuncio-individual__close:hover {
    color: #ff0000;
}

/* Estilos para la galería */
.modal-galeria-anuncio-individual__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 10px;
}

.modal-galeria-anuncio-individual__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.modal-galeria-anuncio-individual__image:hover {
    transform: scale(1.05);
}

/* modal galeria individual preview */
.gallery {
    display: grid;
    gap: 5px;
    width: 100%;
    grid-template-columns: repeat(4, 4fr);
    grid-auto-rows: 283px;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.gallery img:hover {
    transform: scale(1.05);
}

/* 🖼️ MODAL PREVIEW */
.modal-preview-anuncio-individual {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 999;
}
.modal-preview-anuncio-individual.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    justify-content: center;
    align-items: center;
}
.modal-content img {
    width: inherit;
    height: auto;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    max-width: fit-content;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.modal-close:hover {
    background: #ff4d4d;
    color: white;
}
/* fin galeria individual modal */
/* INICIA MODAL ERROR Y ESTILOS PARA CTA HIPOTECA, ANUNCIO, REPORTAR */
/* Primera sección */
.hipoteca {
    display: flex;
    align-items: center;
    background: #0096c7;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.hipoteca__icono {
    width: 30px;
    height: 30px;
    background: url('icono.png') no-repeat center;
    background-size: contain;
    margin-right: 10px;
}

.hipoteca__texto {
    flex-grow: 1;
}

.hipoteca__boton {
    background: #e31c5f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* Segunda sección */
.publicidad {
    text-align: center;
    margin: 10px 0;
}

.publicidad__imagen {
    width: 100%;
    max-width: 800px;
}

/* Tercera sección */
.error-reporte {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
    padding: 10px 0;
}

.error-reporte__texto {
    flex: 1;
}

.error-reporte__boton button {
    background: none;
    border: 1px solid #0d3b71;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal__contenido {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

.modal__cerrar {
    float: right;
    cursor: pointer;
    font-size: 29px;
    z-index: 1;
    position: relative;
}
.vitred-modal__contenido {
    background: white;
    border-radius: 5px;
    width: 400px;
    text-align: center;
}

.vitred-modal__cerrar {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.vitred-modal__titulo {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Radio Buttons */
.vitred-radio {
    display: flex;
    align-items: left;
    margin-bottom: 8px;
}

.vitred-radio__button {
    margin-right: 10px;
}

.vitred-radio__label {
    cursor: pointer;
}

/* Textarea */
.vitred-textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.vitred-textarea__label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Botón */
.vitred-modal__footer {
    margin-top: 15px;
}

.vitred-btn {
    background: #0d3b71;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.vitred-btn--enviar:disabled {
    background: #ccc;
    cursor: not-allowed;
}
/* FIN MODAL ERROR Y ESTILOS PARA CTA HIPOTECA, ANUNCIO, REPORTAR */
/* inicio estilos area de mapa anuncio individual */
.vitred-mapa-container {
    display: flex;
    height: 400px;
}

#vitred-mapa {
    flex: 1;
    height: 100%;
}

.vitred-sidebar {
    width: 250px;
    background: #fff;
    padding: 15px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.vitred-sidebar h4 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.vitred-sidebar label {
    display: block;
    margin: 5px 0;
    font-size: 14px;
    cursor: pointer;
}

.vitred-sidebar input[type="checkbox"] {
    margin-right: 8px;
}

/* Contenedor de las estrellas  y ventana review*/
    .rating {
    display: flex;
    justify-content: center;
    }
    .star {
    font-size: 2rem;
    color: gray;
    cursor: pointer;
    }
    .star.selected {
    color: gold;
    }
    .scrollable-comments {
    height: 50%; /* 5% de la altura de la ventana */
    overflow-y: auto; /* Habilita el scroll vertical si el contenido excede el contenedor */
    border: 1px solid #ccc; /* Opcional: agrega un borde */
    padding: 10px; /* Opcional: agrega un poco de relleno */
    margin: 10px; /* Opcional: margen alrededor del div */
    }
    #commentDiv {
        height: 507px;
        overflow-y: scroll;
        }
        .rating-score {
        font-weight: bold;
        font-size: 53px;
        height: 98px;
        color: #0096c7;
        }
        .bg-dark {
        background-color: #0096c7 !important;
        }
        .ponderado-estrellas {
        position: sticky;
        bottom: 0px;
        background-color: white;
        width: 100%;
        height: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 40;
        }
        .product-clasificacion-i {
        text-align: left;
        direction: ltr;
        unicode-bidi: bidi-override;
        }
        .product-clasificacion-i label {
        color: grey;
        font-size: 30px;
        cursor: pointer;
        }
        .product-clasificacion-i .estrella-amarilla {
        color: #0096c7;
        }
        #puntaje-ponderado {
        padding: 0px 5px;
        font-weight: bold;
        color: #0096c7;
        }
        .btn.btn-secondary {
        border-radius: 0px;
        }
        .scroll-vertical {
        height: 92vh; /* Altura deseada del contenedor */
        overflow-y: scroll; /* Habilitar el scroll vertical */
        }
        .menu-compartir{
            display: none;
            position: fixed;
            background: white;
            border: 1px solid #ccc;
            padding: 0px 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            top: 48px;
            right: 13px;
            z-index: 13;
            border-radius: 40px;
        }
        /* botones de compartir decorados */
        /* Contenedor de los botones */
        .share-buttons-container {
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f2f2f2;
            width: 100%;
            height: 100vh;
        }

        /* Lista de botones */
        .share-list {
            display: flex;
            flex-direction: row;
        }

        /* Estilo general para los botones */
        .share-list a {
            border-radius: 50%;
            width: 50px;
            height: 50px;
            padding: 7px;
            margin: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: transform 0.2s ease, opacity 0.3s ease;
        }

        /* Efecto hover */
        .share-list a:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }

        /* Iconos dentro de los botones */
        .share-list img {
            width: 70%;
            height: 70%;
        }

        /* Colores de cada red social */
        .fb-h { background: #3B5998; }
        .tw-h { background: #00acee; }
        .li-h { background: #0077B5; }
        .wa-h { background: #25D366; }

        /* modificar espacio de descripcion p */
        .row.texto-descripcion p {
            margin: 0;
            padding: 0;
          }
          .icono-caracteristicas{
            width: 56px;
          }
          .icono-caracteristicas svg {
            width: 36px;
            height: 36px;
          }
          .row.size-secondary-icons {
            width: 50%;
            margin-bottom: 6px;
          }
          .icono-caracteristicas svg path, .icono-caracteristicas svg g path {
            stroke: #0096c7 !important;
            fill: #0096c7;
          }
/* aqui empieza el responsive */
@media (max-width: 768px){
    .precio-anuncio{display:block;}
    .ocultar-movil{display: none;}
    .submenu-movil-compartirlike{width: 100%;flex-wrap: nowrap;}
    .btn-volver-a-mapa{display: inline-flex;align-items: center;margin: 0 10px;cursor: pointer;color: #e31c5f;}
    .gallery {grid-template-columns: repeat(2, 4fr);grid-auto-rows: 184px;}
    .vitred-sidebar {width: 129px;}
    .row.area-de-iconos div { width: 30%;}
}

/* =====================================================================
   TEMA VIT.RED  (agregado al final: no borra nada de lo anterior)
   ===================================================================== */

/* Fondo de la página: mismo de "Mis anuncios" */
body{
    background:
      radial-gradient(circle at 12% 18%, rgba(43,219,227,.35) 0%, rgba(43,219,227,0) 38%),
      radial-gradient(circle at 88% 22%, rgba(123,47,247,.38) 0%, rgba(123,47,247,0) 40%),
      radial-gradient(circle at 75% 88%, rgba(230,40,120,.28) 0%, rgba(230,40,120,0) 42%),
      radial-gradient(circle at 20% 90%, rgba(0,150,199,.35) 0%, rgba(0,150,199,0) 40%),
      linear-gradient(160deg,#011627 0%,#022a45 45%,#023047 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #023047;
}

/* Contenido dentro de una tarjeta blanca */
body > .container{
    background: #fff;
    border-radius: 22px;
    margin: 28px auto 50px;
    padding: 0 26px 30px;
    box-shadow: 0 20px 50px rgba(1,22,39,.45);
    overflow: visible;
}

/* Barra superior (título + compartir + guardar) con degradado vit */
body > .container > .row:first-child{
    background: linear-gradient(135deg,#023047,#0096c7,#2bdbe3) !important;
    color: #fff;
    margin: 0 -26px 20px !important;
    padding: 14px 26px !important;
    border-radius: 22px 22px 0 0;
    border-bottom: none !important;
    font-weight: 700;
    font-size: 15px;
    align-items: center;
}
body > .container > .row:first-child svg{ stroke: #fff !important; }
body > .container > .row:first-child > div > div{
    background: rgba(255,255,255,.16);
    padding: 6px 12px;
    border-radius: 20px;
    transition: .15s;
}
body > .container > .row:first-child > div > div:hover{ background: rgba(255,255,255,.28); }
.btn-volver-a-mapa{ color: #fff !important; }
.btn-volver-a-mapa svg path{ fill: #fff !important; }

/* Galería de fotos */
.galeria-home-principal{ background: transparent !important; }
.galeria-home-principal img{
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.galeria-home-principal .col-6 img{ height: 420px; }
.galeria-home-principal .col-3 img{ height: 203px; }
/* Oculta los espacios de fotos que no existen */
.galeria-home-principal img[src^="?"]{ display: none; }

.modal-galeria-anuncio-individual__button{
    background: #fff;
    color: #023047;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 14px;
    box-shadow: 0 6px 16px rgba(2,48,71,.25);
    margin: 0 12px 12px 0;
    display: inline-flex;
}

/* Título y precio */
h2{
    font-size: 24px;
    font-weight: 800;
    color: #023047;
    margin-bottom: 6px;
}
.precio-anuncio, .precio-anuncio-lateral{
    font-family: inherit;
    font-weight: 800;
    background: linear-gradient(135deg,#0096c7,#7b2ff7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
.precio-anuncio-lateral{ font-size: 30px; display: block; margin-bottom: 14px; }

/* Estrellas */
#puntaje-ponderado{ color: #0096c7; }
.product-clasificacion-i label{ color: #c9d6dc; }

/* Iconos principales */
.area-de-iconos{
    background: linear-gradient(135deg,#f0fbfd,#f6f2ff);
    border: 1px solid #e0eef3 !important;
    border-radius: 16px !important;
    padding: 18px !important;
}
.area-de-iconos:not(:has(div)){ display: none; }
.name-iconvisual-uno{ font-size: 13px; color: #5f7580; }
.icono-info-uno{ font-weight: 800; color: #023047; }

/* Descripción */
.texto-descripcion p{ font-size: 15px; line-height: 1.7; color: #3d525c; }
#btn-mostrar-mas-descripcion, #btn-mostrar-menos-descripcion{
    color: #0096c7;
    font-weight: 700;
    text-decoration: none;
}

/* Características */
h1{
    font-size: 21px;
    font-weight: 800;
    color: #023047;
}
.size-secondary-icons p{ color: #3d525c; }
.size-secondary-icons strong{ color: #023047; }

/* Tarjeta de precio y botones (derecha) */
.tarjeta-flotante-derecha{
    height: auto;
    border: none;
    border-radius: 20px;
    padding: 26px 22px 18px;
    box-shadow: 0 14px 34px rgba(2,48,71,.18);
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg,#2bdbe3,#0096c7,#7b2ff7,#e62878) border-box;
    border-top: 5px solid transparent;
    top: 80px;
}
.btn-anuncio-individual{
    border-radius: 14px;
    margin: 10px 0;
    padding: 13px;
    transition: .15s;
}
.btn-anuncio-individual:hover{ transform: translateY(-1px); filter: brightness(1.06); color: #fff; }
.btn-whatsapp{
    background: linear-gradient(135deg,#0096c7,#2bdbe3);
    box-shadow: 0 8px 20px rgba(0,150,199,.35);
}
.btn-mapa{
    background: linear-gradient(135deg,#7b2ff7,#e62878);
    box-shadow: 0 8px 20px rgba(123,47,247,.3);
}

/* Sección "¿Hay algún error?" */
.hipoteca{ display: none !important; }
.error-reporte{
    background: #f5f9fb;
    border: 1px solid #e3eef3 !important;
    border-radius: 16px;
    padding: 16px 18px !important;
    margin: 6px 0;
}
.error-reporte__boton button{
    border: none;
    background: linear-gradient(135deg,#0096c7,#2bdbe3);
    color: #fff;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 12px;
}
.vitred-btn{ background: linear-gradient(135deg,#0096c7,#2bdbe3); border-radius: 12px; }

/* Mapa */
.vitred-mapa-container{
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2,48,71,.15);
}
.vitred-sidebar{ border-right: none; background: #f5f9fb; }
.vitred-sidebar h4{ color: #0096c7; }

/* Menú de compartir */
.menu-compartir{ top: 70px; border: none; box-shadow: 0 10px 30px rgba(1,22,39,.35); }

/* ===== Celular ===== */
@media (max-width: 768px){
    body > .container{
        margin: 0 auto 30px;
        border-radius: 0 0 22px 22px;
        padding: 0 14px 24px;
    }
    body > .container > .row:first-child{
        margin: 0 -14px 14px !important;
        padding: 10px 12px !important;
        border-radius: 0;
    }
    .galeria-home-principal .col-6{ width: 100%; }
    .galeria-home-principal .col-6 img{ height: 260px; }
    .galeria-home-principal .col-3{ display: none; }
    h2{ font-size: 20px; }
    .precio-anuncio{ font-size: 26px; }
    .row.size-secondary-icons{ width: 100%; }
}