/* MODAL STYLES */
/* Fondo oscuro */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 57, 52, 0.85);
    display: none;
    z-index: 998;
}

/* Modal principal */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 500px;
    border-radius: 30px;
    background: #fdfdfd;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8);
    padding: 80px 30px 40px;
    display: none;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Icono superior */
.modal-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #4a6360;
    border: 2px solid #4a6360;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    background: transparent;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #4a6360;
    color: #fff;
}

/* Contenido del modal */
#modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 400px;
    /* Ocultar scrollbar pero mantener funcionalidad */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#modal-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Contenedor de texto */
#modal-text {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Bloques de contenido */
.modal-block {
    padding: 15px;
    /* background: #d8f5e82f; */
    width: 100%;
    box-sizing: border-box;
}

.modal-block p {
    margin: 0;
    color: #000;
    line-height: 1.5;
    font-size: 1rem;
    text-align: center;
}

.modal-block strong {
    color: #bfa880;
    font-weight: 600;
}

.modal-block span {
    font-weight: 600;
}

/* Título del modal */
.modal-title {
    font-size: 1.8rem;
    color: #bfa880;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Imágenes en el modal */
.modal-image {
    height: 120px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Formulario de sugerencia */
.form-cancion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    width: 500px;
    margin: 20px auto 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    display: none;
}

.form-group input {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
    color: #4a6360;
    text-align: center;
}

.form-group input::placeholder {
    color: #0000004b;
}

.form-group input:focus {
    border-color: #aa6e07;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(234, 158, 27, 0.5);
    outline: none;
}

.form-btn {
    background-color: #bfa880;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.form-btn:hover {
    background-color: #a38a60;
}

/* Datos bancarios */
.datos-bancarios {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    padding: 20px;
    /* background: #d8f5e82f; */
    border-radius: 8px;
    box-sizing: border-box;
}

.datos-bancarios h3 {
    color: #bfa880;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-texto);
}

.datos-bancarios p {
    margin: 20px 0;
    color: #000;
    font-size: 0.95rem;
    text-align: left;
    font-family: var(--font-texto);
}

.datos-bancarios strong {
    color: #bfa880;
    font-weight: 600;
    margin-right: 10px;
    font-family: var(--font-texto);
}

/* Bloqueo de scroll */
.bloqueo-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Estilos para los botones de copiar */
.dato-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin: 15px 0; */
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-icon {
    width: 20px;
    height: 20px;
}

.copy-text {
    /* background-color: #f5f5f5; */
    background: #d8f5e880;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    user-select: all;
}

/* Mensaje de copiado */
.copied-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 🔹 Estilos para el icono de música en mensaje de éxito 🔹 */
.icono-musica {
    width: 80px;
    height: 80px;
    margin: 20px auto 0;
    display: block;
}

/* 🔹 Ajustes para el loader 🔹 */
.form-loader-icon {
    width: 100px !important;
    height: auto !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .custom-modal {
        width: 90%;
        height: 75vh;
        padding: 70px 20px 30px;
    }

    #modal-content {
        max-height: calc(85vh - 180px);
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-block p {
        font-size: 0.95rem;
    }

    .form-cancion {
        width: 400px;
    }
}

@media screen and (max-width: 480px) {
    .custom-modal {
        width: 95%;
        padding: 60px 15px 25px;
        padding: 0;
        /* height: 70vh; */
    }

    #modal-content {
        max-height: calc(90vh - 160px);
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        top: -35px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .form-cancion {
        width: 300px;
    }

    .form-group input {
        font-size: 14px;
    }
}

@media screen and (max-width: 380px) {
    #modal-content {
        max-height: calc(90vh - 150px);
    }

    .form-cancion {
        width: 250px;
    }
}

@media screen and (max-width: 368px) {
    .datos-bancarios p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 331px) {
    .datos-bancarios {
        padding: 0;
    }
    .datos-bancarios p {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 300px) {
    #modal-content {
        max-height: calc(90vh - 140px);
    }

    .form-cancion {
        width: 200px;
    }

    .form-group input {
        font-size: 12px;
    }
}
