/* www.danny.mx │ www.dannycero.mx │ @dannycero */


#vis_contenedor {
    width:95%; height:auto;
    position:relative;
    top:40px;
    padding-bottom: 30px;
    margin: auto;
    border:var(--borde-color);
    border-radius:15px;
    padding-top: 10px;
    padding-bottom: 50px;
}
/* CONTENEDOR PRINCIPAL */
.vis_img {
    width: fit-content;
    max-width: 80%;
    height: auto;
    position: relative;
    top: 10px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #CCC;
    border-radius: 20px;
    box-shadow: var(--shadow-item);
    border: var(--borde-color);
    background: #fff;
}
/* ENVOLTORIO DE LA IMAGEN (controla el tamaño y posicionamiento del overlay) */
.img_wrap {
    position: relative;
    width: 100%;
    display: inline-block; /* hace que el ancho sea el de la imagen */
    max-width: 100%;
}
/* IMAGEN REAL (se adapta al ancho del contenedor) */
.img_real {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
}
/* OVERLAY: ocupa exactamente la misma caja que la imagen */
.img_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* important: pointer-events auto hace que BLOQUEE la interacción con la imagen */
    pointer-events: auto;
    z-index: 10;
    /* opcional: si quieres ver donde está el overlay para debug:
       background: rgba(255,0,0,0.15); */
}
/* El "pixel" se estira para cubrir */
.img_overlay img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    opacity: 0; /* invisible, pero intercepta eventos */
}
/* VIS_INFO  */
.vis_info {
    width: 90%;
    height: auto;
    border-bottom: 2px solid #CCC;
    margin: 12px auto;
    text-align: left;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    user-select: text !important;
    -webkit-user-select: text !important;
}
.vis_info2 {
    text-align: center;
}
/* Botón descarga: fuera del overlay, clicable */
.btn-descarga {
    display: inline-block;
    text-decoration: none;
    width: 100%;
}
/* Responsive tweaks: si la imagen es muy ancha en pantallas pequeñas */
@media (max-width: 600px) {
    .vis_img {
        max-width: 95%;
        padding: 12px;
        border-radius: 12px;
    }
    .vis_info { 
        width: 100%;
        font-size: 13px; }
}
#btn_descargar {
    width: 70%; max-width: 500px; height: auto;
    /*background-image: url(comp/vis_descarga.png);
    background-size: cover;*/
    border: none;
    overflow: hidden;
    cursor: pointer;
    background: #58a505;
    border-radius: 10px;
    transition: all 0.2s ease;
}
#btn_descargar:hover {
    /*background: #3b7003;*/
    transform: translateY(-2px);
    opacity: 0.9;
}


#vis_comenta {
    width:98%; height: auto; min-height: 100px;
    position: relative;
    top: 30px;
    margin: auto;
    border: var(--borde-color);
    border-radius: 20px;
    padding-bottom: 30px;
}
.vis_comen_text {
    width: 90%; max-width: 450px; height: auto;
    position: relative;
    top: 1px; left: 5%;
    border: 1px solid #CCC;
}
.vis_comen_text input[type="text"] {
    width:80%; max-width: 400px; height: 28px;
    color: #2e7d32;
    font-size: 16pt;
    text-indent: 15px;
    outline: none;
    border-radius: 10px;
    border: 1px solid #2e7d32;
}
.vis_comen_text label {
    text-indent: 10px;
    font-size: 11pt;
    display: block;
}
.vis_comen_text input[type="text"]::placeholder {
    color: #158C06;
    font-size: 13pt;
    opacity: 0.7;
}
.vis_comen_text input[type="text"]:focus::placeholder {
    color: #158C06;
    font-size: 15pt;
    opacity: 0.2;
}
.vis_comen_text textarea {
    width: 80%; height: auto; min-height: 100px;
}
.vis_comen_muestra {
    width: 90%; height: auto; min-height: 100px;
    position: relative;
    top: 10px; left: 5%;
    border: 1px solid #CCC;
    border-radius: 15px;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    font-size: 13px;
    background: #eee;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
}
.tag:hover {
    background: #ddd;
}


.like-btn {
    background: none;
    border: none;
    font-size: 16pt;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.like-btn:hover .heart {
    transform: scale(1.15);
}

.heart {
    display: inline-block;
    transition: transform 0.15s ease;
}

.like-btn.liked .heart {
    color: crimson;
    animation: heart-pop 0.35s ease-out;
}

@keyframes heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
/*modal*/
.like-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.like-modal-content {
    background: #fff;
    padding: 20px 25px;
    border-radius: 14px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-item, 0 10px 25px rgba(0,0,0,.25));
    animation: modal-fade 0.25s ease-out;
}

.like-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

@keyframes modal-fade {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* barra share */
.share-bar {
    display: inline-flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.share-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
/* Colores */
.whatsapp {
    background: green;
    color: #fff;
}
.facebook {
    background: #1877F2;
    color: #fff;
}
.copy {
    background: #555;
    color: #fff;
}
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 13px;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
}
.vis404 {
    width: 100%; height: auto;
    text-align: center;
}
.vis404 img {
    width: 80%; max-width: 600px; height: auto;
}

.autor {
    font-size: 11pt;
    color: #333;
}