
        

        /* Botón para abrir el modal */
        .abrir-modal {
            background-color: #007bff;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .abrir-modal:hover {
            background-color: #0056b3;
        }

        /* El modal - oculto por defecto */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* Contenido del modal */
        .modal-contenido {
            position: relative;
            background-color: white;
            margin: 10% auto;
            padding: 0;
            width: 80%;
            max-width: 500px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            transform: translateY(-50px);
            transition: transform 0.3s ease;
        }

        /* Cabecera del modal */
        .modal-cabecera {
            padding: 16px 20px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            border-radius: 8px 8px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-cabecera h2 {
            margin: 0;
            color: #333;
            font-size: 1.5em;
        }

        /* Botón cerrar */
        .cerrar {
            color: #aaa;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cerrar:hover {
            color: #000;
        }

        /* Cuerpo del modal */
        .modal-cuerpo {
            padding: 20px;
            line-height: 1.6;
            color: #555;
        }

        /* Pie del modal */
        .modal-pie {
            padding: 16px 20px;
            background-color: #f8f9fa;
            border-top: 1px solid #dee2e6;
            border-radius: 0 0 8px 8px;
            text-align: right;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-left: 8px;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
        }

        .btn-primary:hover {
            background-color: #0056b3;
        }

        .btn-secondary {
            background-color: #6c757d;
            color: white;
        }

        .btn-secondary:hover {
            background-color: #545b62;
        }

        /* Checkbox para controlar la visibilidad del modal */
        #modal-toggle {
            display: none;
        }

        /* Mostrar el modal cuando el checkbox está checked */
        #modal-toggle:checked ~ .modal {
            display: block;
            opacity: 1;
        }

        #modal-toggle:checked ~ .modal .modal-contenido {
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .modal-contenido {
                width: 95%;
                margin: 5% auto;
            }
        }
    