/* =====================================================================
   MODAL CSS - ESTUDIO DE VOCES TIERNAS Y GRABADOR DE PAPÁ / MAMÁ
   ===================================================================== */
#parent-voice-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 520px;
    max-height: 90dvh;
    border-radius: 30px;
    border: 5px solid #FDE047;
    box-shadow: 0 22px 45px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    color: #FFFFFF;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h2 {
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close-btn {
    background: rgba(255,255,255,0.22);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: text;
}
.engine-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 480px) {
    .engine-selector-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.engine-opt-btn {
    border: 3px solid #E2E8F0;
    background: #F8FAFC;
    border-radius: 16px;
    padding: 9px 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.engine-opt-btn.active {
    border-color: #EC4899;
    background: #FDF2F8;
    color: #9D174D;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
}
.cuteness-slider-box {
    background: linear-gradient(135deg, #FDF2F8 0%, #EFF6FF 100%);
    border: 2px solid #FBCFE8;
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cuteness-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 900;
    color: #831843;
}
.cuteness-range {
    width: 100%;
    accent-color: #EC4899;
    height: 8px;
    border-radius: 99px;
    cursor: pointer;
}
.hd-preload-bar {
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: #166534;
}
.recorder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recorder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 18px;
    padding: 8px 10px;
    gap: 8px;
}
.rec-animal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rec-color-dot {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
.rec-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rec-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
}
.rec-hint {
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.rec-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF;
    background: #EF4444;
    box-shadow: 0 3px 0 #B91C1C;
}
.rec-btn.recording {
    background: #1E293B;
    box-shadow: 0 0 0 4px #FCA5A5;
    animation: soundWavePulse 0.6s infinite;
}
.rec-play-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background: #22C55E;
    color: #FFFFFF;
    box-shadow: 0 3px 0 #15803D;
}
.rec-del-btn {
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background: #E2E8F0;
    color: #475569;
}
