   
      
        #openModalBtn {
            padding: 10px 20px;
            background-color: #004f82;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        #openModalBtn:hover {
            background-color: #0077b6;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;

        }

        .modal.show {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: #1e1e1e;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            max-width: 650px;
            width: 100%;
            position: relative;
            animation: slideIn 0.4s ease forwards;
        }
        .modal-content {
    margin: auto;
    max-height: 90vh; /* Ajusta la altura máxima en móviles */
    overflow-y: auto; /* Permite scroll si el contenido es muy alto */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Añade sombra para un diseño más limpio */
    background: linear-gradient(135deg, rgba(0, 3, 2, 0.9), rgba(0, 57, 30, 0.9));
    border-radius: 10px;
    border: 1px solid #00ff00;
}

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .packages {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }

        .package {
            width: 170px;
            height: auto;
            background: linear-gradient(135deg, rgba(0, 94, 55, 0.6), rgba(0, 57, 30, 0.6));
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 10px;
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: transform 0.2s ease, background-color 0.3s ease, border 0.3s ease;
            border: 2px solid transparent;
        }


        .package:hover {
            transform: scale(1.1);
            background-color: #444;
        }

        .package.selected {
            transform: scale(1.2);
            border: 2px solid white;
            background-color: #444;
        }

        .package-price {
            font-size: 18px;
            font-weight: bold;
            color: #00ff00;
            margin-top: 13px;
            text-align: center;
            justify-content: center;
        }

        .credits-container {
            flex-basis: 100%; /* Ocupa toda la fila */
            max-width: 400px; /* Opcional: Define un ancho máximo */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(77, 94, 0, 0.6), rgba(53, 57, 0, 0.6));
            border-radius: 10px;
            padding: 10px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.2s ease, background-color 0.3s ease, border 0.3s ease;
        }
        .credits-container {
            display: flex;
            flex-direction: column; /* Cambiar la dirección del flex a columna */
            align-items: center; /* Centrar los elementos horizontalmente */
            gap: 5px; /* Espaciado entre los elementos */
            width: 100%; /* Asegura que ocupe el ancho completo */
        }

        .credits-container:hover {
            transform: scale(1.1);
            background-color: #444;
        }

        .credits-container.selected {
            transform: scale(1.2);
            border: 2px solid white;
            background-color: #444;
        }

        .credit-buttons {
            display: flex;
            gap: 10px;
            margin: 0px 0;
            justify-content: center; /* Centrar horizontalmente */

        }

        .credit-buttons button {
            padding: 5px 10px;
            background-color: #004f82;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .credit-buttons button:hover {
            background-color: #0077b6;
        }

        .close-btn {
            color: white;
            background: none;
            border: none;
            font-size: 18px;
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

        .button {
            padding: 10px 20px;
            background-color: #004f82;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
        }

        .button:disabled {
            background-color: #555;
            cursor: not-allowed;
        }

        .price-span {
            display: block;
            font-size: 18px;
            margin-top: 10px;
            color: #00ff00;
        }
        @media (max-width: 600px) {
    .modal-content {
        max-width: 90%; /* Ajusta el ancho del modal para pantallas más pequeñas */
        padding: 15px;
    }

    .packages {
        gap: 20px; /* Reduce el espacio entre los paquetes */
    }

    .package, .credits-container {
        width: 120px; /* Reduce el ancho de los cuadros */
        height: 120px; /* Reduce la altura de los cuadros */
    }

    .modal-header {
        font-size: 20px; /* Ajusta el tamaño de la cabecera */
    }

    .package-price {
        font-size: 14px; /* Reduce el tamaño del texto del precio */
    }

    .credit-buttons button {
        padding: 4px 8px; /* Ajusta el tamaño de los botones */
    }

    .price-span {
        font-size: 16px; /* Ajusta el tamaño del precio total */
    }

    .input-field {
        width: calc(100% - 20px); /* Asegura que el campo de correo se ajuste al contenedor */
        font-size: 14px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

