/* Título principal */
.subtitulo h2 {
    color: #F3B040;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.row {
    --bs-gutter-x: 0rem;
}

.imagen-cat {
    max-height: 1000px;
}

.imagen-cat img {
    max-height: 1000px;
}

/* Línea divisoria */
.banner-divider {
    width: 100%;
    height: 3px;
    background-color: #F3B040;
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Contenedor de items */
.item-contenedor {
    width: 100%;
}

.items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cada item individual */
.item-body {
    display: flex;
    flex-direction: column;
    padding: 12px 45px 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, border-radius 0.5s ease-in-out;
    margin-bottom: 10px;
    position: relative;
}

/* Efecto al pasar el cursor sobre el ítem */
.item-body:hover {
    transform: scale(1.1);
    /* Agrandar el ítem */
    border-radius: 8px 50px 50px 8px;
    /* Parte derecha más alta y redonda */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Achicar y deformar los ítems adyacentes */
.items:hover .item-body:not(:hover) {
    transform: scale(0.9);
    /* Achicar los demás ítems */
    border-radius: 50px 8px 8px 50px;
    /* Deformar opuestamente */
}

/* Contenido del texto del item */
.item-body .item-subtitulo {
    color: #333;
    font-weight: 600;
    margin: 0 0 5px 0;
    order: 1;
}

.item-body .item-descripcion {
    color: #666;
    line-height: 1.3;
    margin: 0;
    order: 2;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Mostrar la descripción al pasar el cursor sobre el ítem */
.item-body:hover .item-descripcion {
    max-height: 100px;
    /* Ajusta según el contenido */
    opacity: 1;
}

/* Enlace de descarga */
.item-body a {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #F3B040;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.5s ease-in-out, transform 0.5s ease-in-out;
    flex-shrink: 0;
}

.item-body a:hover {
    background-color: #e09d2c;
    transform: translateY(-50%) scale(1.1);
}

/* Icono de descarga */
.download-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: transform 0.5s ease-in-out;
}

/* Agrandar el ícono de descarga al pasar el cursor sobre el ítem */
.item-body:hover .download-icon {
    transform: scale(1.2);
    /* Agrandar el botón de descarga */
}

/* Contenedor del hero-header */
.hero-header {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
}

.hero-header .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Título del hero */
.hero-title {
    position: absolute;
    left: 16.33%;
    top: 54%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
}



/* Responsive design para tabletas */
@media (max-width: 1024px) {

    .item-body {
        padding: 12px 40px 12px 15px;
    }

}

@media (max-width: 768px) {


    .hero-header {
        height: 300px;
    }

    .hero-title {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .item-body {
        padding: 10px 40px 10px 12px;
    }

    .item-body a {
        right: 12px;
        width: 28px;
        height: 28px;
    }

    .download-icon {
        width: 15px;
        height: 15px;
    }

    /* Make descriptions always visible on smaller screens */
    .item-body .item-descripcion {
        max-height: 100px;
        /* Adjust based on content length */
        opacity: 1;
    }
}

@media (max-width: 640px) {


    .subtitulo h2 {
        margin-bottom: 15px;
    }

    .banner-divider {
        margin-bottom: 20px;
    }

    .hero-header {
        height: 250px;
    }


    .item-body {
        padding: 10px 35px 10px 12px;
        margin-bottom: 8px;
    }

}

@media (max-width: 480px) {


    .subtitulo h2 {
        margin-bottom: 15px;
    }

    .banner-divider {
        margin-bottom: 15px;
    }

    .hero-header {
        height: 200px;
    }

    .item-body {
        padding: 15px 38px 10px 17px;
    }

    .item-body a {
        width: 26px;
        height: 26px;
        right: 8px;
    }

    .download-icon {
        width: 14px;
        height: 14px;
    }

    .item-body .item-descripcion {
        line-height: 1.25;
    }

}

@media (max-width: 360px) {

    .hero-header {
        height: 180px;
    }

    .item-body {
        padding: 8px 32px 8px 10px;
    }

    .item-body a {
        width: 24px;
        height: 24px;
        right: 6px;
    }

    .download-icon {
        width: 12px;
        height: 12px;
    }
}