﻿img.responsive-justicia {
    cursor: none;
}


@media (max-width: 767px) {
    #ver{
        margin-top: 45px; /* Prioridad en móviles */
    }
}



@media (max-width: 575.98px) {
    .custom-row {
        flex-direction: column !important;
    }
    .image-box {
          width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important
    }
}






@media (max-width: 767px) {
    .custom-row {
        margin-top: 45px;
        flex-direction: column !important; 
        gap: 15px; 
    }
    
    .custom-row > .col-sm-4 {
        width: 100% !important; 
        flex: none; 
    }
}


.main-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 8px;
    overflow-x: visible;
    z-index: 1
}


.custom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    overflow: visible;
}

.col-sm-4 {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 180px;
    max-width: 33.333%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 250px;
    overflow: visible;
    position: relative;
}


.card {
    border: 0px solid #e0e0e0;
    padding: 4px 2px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.card-body,
.card-body-2 {
    padding: 4px 0;
    width: 100%;
}




.zoomable-image {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    aspect-ratio: attr(width) / attr(height);
    object-fit: contain;
    transition: transform 0.28s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 100;
}




/*
.zoomable-image:hover {
  transform: scale(2.1); 
  cursor: pointer;
   z-index: 100;   
  transition: transform 0.3s ease; 
   max-height: 250px;  
}*/


@media screen and (min-width: 1366px) {
    .zoomable-image:hover {
        transform: scale(2.1);
        cursor: pointer;
        z-index: 100;
        transition: transform 0.3s ease;
        max-height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .zoomable-image {
        max-height: none;
    }
}



@media (max-width: 900px) {
    .main-container {
        max-width: 98vw;
    }

    .col-sm-4 {
        min-width: 140px;
        max-width: 50%;
    }

    .zoomable-image {
        max-height: auto;
    }
}

@media (max-width: 600px) {
    .main-container {
        max-width: 100vw;
        padding: 0 2px;
        display: block
    }

    .custom-row {
        gap: 2px;
        display: block;
    }

    .col-sm-4 {
        min-width: 98px;
        max-width: 100%;
    }

    .zoomable-image {
        max-width: 100%;
        height: auto !important;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}




.card-text,
.textojusticiarazon {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 1rem;
    color: #343434;
}

.downloadtxt {
    font-size: 0.82em;
    color: #888;
    margin-left: 4px;
}

.card-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.4rem;
    color: #112446;
    text-align: center;
    margin-bottom: 10px;
}

.alert {
    padding: 5px 9px;
    font-size: 0.93rem;
    border-radius: 3px;
    margin-bottom: 10px;
}

.alert-danger {
    background: #fbe2e3;
    color: #941a27;
    border: 1px solid #f5c6cb;
}

.color-box.space {
    padding: 20px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
}
