.card-img-top {
            max-height: 120px;
            object-fit: contain;
            background-color: #f8f9fa;
            padding: 10px;
            border-bottom: 1px solid #dee2e6;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 10px rgba(0, 0, 0, 0.1);
        }
        /* Barra de título */
    .barra-titulo {
        width: 100%;
        background-color: #23295a; 
        padding: 20px 0;
        text-align: left;   
    }
    .titulo-principal {
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        text-align: center;
        position: relative;
        
        
    }
    .titulo-principal::after {
            content: "";
            width: 60%;
            height: 4px;
            background: #ffffff;
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
    }
        .btn-eventos{
            background-color: #23295a;
            color: #ffffff;
            border: 2px solid #ffffff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .btn-eventos:hover{
            border: 2px solid #F3F4F6;
            color: #F3F4F6;
           background-color: #111740;
        }
        
        .card-body{ /*tarjeta con la información*/
            transition: transform 0.5s;
            flex: 1 1 calc(50% - 20px);
            padding: 20px;
            border-radius: 20px;
            background-color: #373e6f;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border: 2px solid #ffffff;
            color: #ffffff;
        }

        .card-e{
            border-radius: 15px;
            transition: transform 0.5s ease-in-out;
            flex: 1 1 calc(50% - 20px);
            padding: 20px;
            border-radius: 10px;
            background-color: #23295a;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            color: #ffffff;
        }

        .detalles{
            background-color: #23295a;
            color: #ffffff;
            text-align: center;
        }
        .m-dt{
            border-radius: 10px;
            background-color: #23295a;
            text-align: justify;
            color: #e9ecef;
        }

        .btn-close {
            border: 2px solid white !important;
            border-radius: 50%;
            background-color: rgb(255, 255, 255) !important;
            width: 1.5rem;
            height: 1.5rem;
            opacity: 1; /* Para que no se vea transparente */
  
        }
        .container-e {
            max-width: 1000px; /* Ancho máximo para el contenido */
            margin-top: 2rem;
            margin-bottom: 2rem;
            padding: 0 15px; /* Espaciado lateral en móviles */
        }
        .modal-body-e{
            color: white;
            padding: 30px;
            border: 2px solid #ffffff;
        }
        .modal-header-e{
            color: white;
            padding: 30px;
            border: 2px solid #ffffff;
        }
        .modal-t{
            border: 2px solid #ffffff;
            
        }
        .img-doc-wrapper {
            display: flex;
            justify-content: center; /* Centra el contenido horizontalmente */
            border: 2px solid #23295a;
            border-radius: 10px;
            background-color: #fff;
            padding: 10px;
            margin: 0 auto 1rem auto; /* Centrado + separación abajo */
            max-width: max-content;   /* Se adapta al contenido */
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }

        .img-doc-modal {
            max-height: 340px;
            height: auto;
            width: auto;
            max-width: 100%;
            object-fit: contain;
            display: block;
        }
        .img-doc-modal:hover {
            transform: scale(1.02);
        }
        .detalle-flotante {
            overflow: hidden;
            text-align: justify;
            line-height: 1.6;
            color: #fff;
        }

        .img-float {
            float: right;
            width: 250px;
            margin-left: 20px;
            margin-bottom: 15px;
            padding: 5px;
            border-radius: 10px;
            background-color: #fff;
            object-fit: contain;
            max-width: 100%;
            height: auto;
            box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
        }
        .card-e img {
            border-radius: 8px;
            width: 80%;
            height: auto;
            object-fit: cover;
        }
        .card-imagen-container {
            transition: transform 0.5s;
            flex: 1 1 calc(50% - 20px);
            padding: 8px;
            border-radius: 20px;
            background-color: #373e6f;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #ffffff;
            color: #ffffff;
        }



        /* Hover suave */
        .img-float:hover {
            transform: scale(1.03);
            transition: transform 0.3s ease;
        }

/* Responsivo: en pantallas pequeñas se adapta automáticamente */
        @media (max-width: 768px) {
            .img-float {
                float: none;
                display: block;
                margin: 0 auto 1rem auto;
                width: 100%;
                max-width: 300px;
            }
        }
