/* 
  Estilos para Diagnóstico de Rango Vocal
  Diseño oscuro premium, integrado con la identidad de BUYV
*/

body.vocal-range-body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark, #000000);
    color: var(--text-main, #ffffff);
    font-family: var(--font-main, 'Outfit', sans-serif);
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: center;    /* Centers children horizontally */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Force footer to be full width and stylized */
body.vocal-range-body footer {
    width: 100%;
    margin-top: auto; /* Ensures it's at the very bottom */
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: none !important;
    z-index: 100;
    padding: 15px 10% !important; /* Reduced vertical padding */
}

/* Adjusted footer logo size */
body.vocal-range-body footer .footer-logo {
    height: 75px !important;
}

.vocal-range-container {
    flex: 0 1 auto;
    margin: 40px 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative; /* Base para elementos absolute */
}

/* Mobile Compaction */
@media screen and (max-width: 480px) {
    .vocal-range-container {
        margin: 15px 0;
        padding: 10px 15px;
        gap: 15px;
    }
}

/* Reset margin for footer copyright to prevent extra space */
.footer-copyright {
    margin-bottom: 0 !important;
}

/* Header */
.vr-header {
    display: flex;
    align-items: center;
    position: relative;
}
.vr-back-top {
    position: absolute;
    left: 0;
    color: var(--text-muted, #a0a0b0);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
}
.vr-back-top:hover {
    color: var(--primary, #9ECD56);
}
.vr-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 480px) {
    .vr-header h1 {
        font-size: 1.4rem;
    }
}

/* Board (Glassmorphism styling) */
.vr-action-board {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 480px) {
    .vr-action-board {
        padding: 20px 15px;
        gap: 15px;
        border-radius: 20px;
    }
}

.vr-subtitle {
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
    color: var(--text-muted, #a0a0b0);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vr-notes-display {
    display: flex;
    gap: 25px;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
}

.vr-note-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vr-note-value {
    width: 110px;
    height: 85px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #666);
    transition: all 0.3s ease;
}

@media screen and (max-width: 480px) {
    .vr-note-value {
        width: 90px;
        height: 70px;
        font-size: 1.8rem;
    }
    .vr-notes-display {
        gap: 15px;
    }
}

/* Inferior y Superior dinámicos (Opacidad si no están activos) */
.vr-lowest .vr-note-value {
    background-color: var(--secondary, #743187);
    color: rgba(255,255,255,0.4);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    opacity: 0.6;
}
.vr-lowest .vr-note-value.active {
    opacity: 1;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(116, 49, 135, 0.4);
}

.vr-highest .vr-note-value {
    background-color: var(--alernative, #F03489);
    color: rgba(255,255,255,0.4);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    opacity: 0.6;
}
.vr-highest .vr-note-value.active {
    opacity: 1;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(240, 52, 137, 0.4);
}


.vr-note-label {
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

.vr-btn-listen {
    width: 100%;
    margin-top: 5px;
    background: var(--primary, #9ECD56);
    color: #000;
    border: 2px solid var(--primary, #9ECD56);
    border-radius: 50px;
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 0 15px rgba(158, 205, 86, 0.4);
}
.vr-btn-listen:hover {
    background: transparent;
    color: var(--primary, #9ECD56);
    box-shadow: 0 0 25px rgba(158, 205, 86, 0.6);
}

.vr-btn-listen i {
    font-size: 1.15rem;
}

.vr-btn-listen.recording {
    /* Estado grabando: Rosa radiante */
    background: var(--alernative, #F03489);
    color: #fff;
    border-color: var(--alernative, #F03489);
    box-shadow: 0 0 20px rgba(240, 52, 137, 0.6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(240, 52, 137, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(240, 52, 137, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(240, 52, 137, 0.4); }
}

.vr-lives-container {
    display: flex;
    gap: 10px;
    color: var(--primary, #9ECD56);
    font-size: 1.2rem;
}
.vr-lives-container .vr-life {
    transition: all 0.3s ease;
}
.vr-lives-container .vr-life.lost {
    color: rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
}

.vr-feedback {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
    margin: 0;
    min-height: 1rem;
    text-align: center;
}

.vr-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.vr-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--secondary, #743187);
    transition: width 0.1s linear, background 0.3s ease;
}

/* Matriz (Grid) */
.vr-grid-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding-bottom: 10px;
    /* Custom scrollbar for glass ui */
    scrollbar-width: thin;
    scrollbar-color: var(--secondary, #743187) rgba(255,255,255,0.05);
}
.vr-grid-wrapper::-webkit-scrollbar {
    height: 6px;
}
.vr-grid-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--secondary, #743187);
    border-radius: 10px;
}

.vr-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 0.65rem;
    color: var(--text-muted, #a0a0b0);
    table-layout: fixed; 
    min-width: 380px;
}
.vr-matrix th {
    font-weight: 600;
    padding-bottom: 8px;
    text-align: center;
    width: 8.33%;
    text-transform: uppercase;
}
.vr-matrix th:first-child {
    width: 25px;
    text-align: left;
    padding-right: 5px;
}

.vr-matrix td {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.vr-matrix td:hover {
    background: rgba(255, 255, 255, 0.08);
}
.vr-matrix td.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary, #9ECD56);
}

.vr-matrix td.vr-row-label {
    border: none;
    background: transparent;
    text-align: right;
    padding-right: 12px;
    font-weight: 600;
}

/* Contenedor de la nota celda */
.vr-cell-note {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Note Tag (Modern Circle) */
.vr-note-tag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
}

/* Target State: Soft background for C4 reference, and soft glow to guide the user */
.vr-cell-note.target .vr-note-tag {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    border: 2px solid var(--primary, #9ECD56);
    color: var(--primary, #9ECD56);
    background: transparent;
    box-shadow: none;
    z-index: 10;
}

/* Active State: Voice detected here - Responsive to stability progress */
/* Specificity increased to win over matched/target */
.vr-cell-note.active.active .vr-note-tag {
    transform: translate(-50%, -50%) scale(calc(1.1 + (var(--hold-progress, 0) * 0.15))) !important;
    opacity: 1;
    background-color: var(--secondary, #743187);
    color: #fff;
    border: none;
    box-shadow: 0 0 calc(15px + (var(--hold-progress, 0) * 15px)) rgba(116, 49, 135, 0.6);
    filter: brightness(calc(1 + (var(--hold-progress, 0) * 0.3)));
    z-index: 20;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.1s ease-out;
}


/* Matched State: HIGHEST Priority for color - Once achieved, it stays green and glows */
.vr-cell-note.matched.matched .vr-note-tag {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background-color: var(--primary, #9ECD56) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 0 25px var(--primary, #9ECD56) !important;
    z-index: 15;
}

/* Si está activo Y matched, mantenemos el color verde pero heredamos el scale dinámico */
.vr-cell-note.matched.active .vr-note-tag {
    transform: translate(-50%, -50%) scale(calc(1.1 + (var(--hold-progress, 0) * 0.15))) !important;
}

/* EXCEPCIÓN FINAL: Si es Target (C4), NADA puede quitarle su estilo OUTLINE */
.vr-cell-note.target .vr-note-tag,
.vr-cell-note.target.matched .vr-note-tag,
.vr-cell-note.target.active .vr-note-tag {
    background: transparent !important;
    box-shadow: none !important;
    border: 2px solid var(--primary, #9ECD56) !important;
    color: var(--primary, #9ECD56) !important;
    z-index: 20;
}

/* Range Fill State: Notes between the extremes - Solid color, No text, with soft glow */
.vr-cell-note.range-fill .vr-note-tag {
    transform: translate(-50%, -50%) scale(0.8); /* Slightly smaller than extreme notes */
    opacity: 1;
    background-color: var(--primary, #9ECD56); 
    color: transparent; /* Hides the text label */
    border: none;
    box-shadow: 0 0 10px rgba(158, 205, 86, 0.4); /* Soft glow for fill notes */
    z-index: 11;
}

/* Manual Selection State: From clicking cell */
.selected .vr-note-tag {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
}

.vr-btn-primary, 
.vr-btn-secondary {
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition, all 0.3s ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.vr-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}
.vr-footer .vr-btn-primary,
.vr-footer .vr-btn-secondary {
    flex: 1;
}
.vr-btn-secondary {
    background: transparent;
    color: var(--text-main, #fff);
    border-color: rgba(255,255,255,0.2);
}
.vr-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}
.vr-btn-primary {
    background: var(--secondary, #743187);
    color: #fff;
    border-color: var(--secondary, #743187);
    box-shadow: 0 0 15px rgba(116, 49, 135, 0.4);
}
.vr-btn-primary:hover {
    background: transparent;
    color: var(--secondary, #743187);
    box-shadow: 0 0 25px rgba(116, 49, 135, 0.6);
}
.vr-btn-primary:disabled,
.vr-btn-secondary:disabled {
    background-color: rgba(255,255,255,0.05);
    border-color: transparent;
    color: rgba(255,255,255,0.3);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Tablet override to simulate floating card but keep column layout */
@media (min-width: 600px) and (max-width: 991px) {
    .vocal-range-container {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 40px;
        background: rgba(255,255,255,0.02);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin: 40px auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        padding: 40px;
    }
}

/* Desktop Expansion: Aprovechar monitores anchos */
@media (min-width: 992px) {
    body.vocal-range-body {
        align-items: center;
        overflow: hidden;
        height: 100vh;
    }

    .vocal-range-container {
        max-width: 1100px;
        width: 95%;
        max-height: 90vh;
        display: grid;
        grid-template-columns: 320px 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 40px;
        background: rgba(255,255,255,0.02);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin: 40px auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        padding: 40px;
    }

    .vr-header {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
        padding-bottom: 0px;
    }
    
    .vr-header .vr-back-top {
        left: 0px; /* Alineación perfecta con el grid / action board */
        font-size: 1.5rem;
    }

    .vr-header h1 {
        font-size: 2.2rem;
    }

    .vr-action-board {
        grid-column: 1;
        grid-row: 2;
        padding: 40px 30px;
        height: 100%;
        justify-content: center;
    }

    .vr-grid-wrapper {
        grid-column: 2;
        grid-row: 2;
        background: rgba(255,255,255,0.01);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 20px;
        padding: 30px;
        overflow: hidden; 
        display: flex;
        align-items: center; /* Centra la grid verticalmente si falta/sobra espacio */
    }

    /* Tabla expandida y generosa (Cuadrados perfectos) */
    .vr-matrix td {
        font-size: 1rem;
    }
    
    .vr-matrix th {
        font-size: 0.9rem;
        padding-bottom: 15px;
    }
    
    .vr-matrix td.vr-row-label {
        font-size: 1.1rem;
        padding-right: 20px;
    }

    /* Indicadores O y T más grandes */
    .vr-cell-note.active::after, 
    .vr-cell-note.target::after,
    .vr-cell-note.target.active::after {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .vr-footer {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 10px;
        justify-content: center;
    }
    
    .vr-footer button {
        flex: 0 0 250px; /* Botones sin estirarse demasiado */
        font-size: 1rem;
        padding: 15px 30px;
    }
}

/* VR Modal Overlay and Content */
.vr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; 
    z-index: 10000;
    overflow-y: auto; /* Scroll nativo */
    padding: 40px 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.vr-modal-overlay.show {
    opacity: 1;
}

/* Loading Overlay */
#vr-loading-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
}

.vr-loader-container {
    text-align: center;
}

.vr-loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(158, 205, 86, 0.1);
    border-top: 4px solid var(--primary, #9ECD56);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(158, 205, 86, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vr-loader-text {
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.vr-modal-content {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px 30px;
    width: 100%;
    max-width: 480px;
    position: relative;
    margin: auto; /* Permite el centrado cuando el contenido es mayor que el viewport */
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.vr-modal-icon {
    font-size: 3.5rem;
    color: var(--primary, #9ECD56);
    margin-bottom: 20px;
}

.vr-modal-content h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.vr-modal-content p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Modales Pro (2 Columnas) */
.vr-modal-2col {
    max-width: 950px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.vr-modal-overlay.show .vr-modal-content {
    transform: translateY(0);
}

/* Sidebar Styling */
.vr-modal-info-side {
    width: 40% !important;
    background: rgba(188, 19, 254, 0.1) !important;
    padding: 50px !important; /* Más padding */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Form Side Styling */
.vr-modal-form-side {
    width: 60% !important;
    padding: 50px !important; /* Más padding */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.vr-form-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.vr-form-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.vr-form-group label {
    font-size: 0.85rem !important;
    color: #ccc !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-align: left !important;
}

.vr-form-group input:not([type="checkbox"]),
.vr-form-group select {
    width: 100% !important;
    height: 45px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.vr-form-group input:focus,
.vr-form-group select:focus {
    border-color: var(--primary, #9ECD56) !important;
    outline: none !important;
}

.vr-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.vr-modal-close:hover {
    opacity: 1;
}

.vr-results-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vr-results-card h2 {
    color: var(--primary, #9ECD56);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.vr-results-card p {
    color: var(--text-muted, #a0a0b0);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.vr-results-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.vr-stat {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vr-stat span {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.vr-stat strong {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.vr-results-classification {
    background: rgba(116, 49, 135, 0.1);
    border: 1px solid var(--secondary, #743187);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vr-class-label {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vr-class-value {
    font-size: 1.6rem;
    color: var(--primary, #9ECD56);
    text-shadow: 0 0 15px rgba(158, 205, 86, 0.4);
}

/* Promo Card Redesign (No Icon) */
.vr-promo-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 30px !important;
    padding: 50px 40px !important; /* Más padding */
    text-align: center !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.vr-promo-card h3 {
    color: var(--primary, #9ECD56) !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.vr-promo-card p {
    color: #ccc !important;
    font-size: 1rem !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

/* Glow Effect for Button */
.glow-effect {
    position: relative;
    overflow: visible !important;
}

.glow-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover:after {
    opacity: 0.5;
}

/* Price Highlight */
.vr-promo-price-tag {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vr-promo-price {
    color: var(--primary, #9ECD56);
    font-size: 2.2rem; /* Mucho más grande y llamativo */
    font-weight: 900;
    text-shadow: 0 0 20px rgba(158, 205, 86, 0.3);
    letter-spacing: -1px;
}

/* Repeat Button in Results */
.vr-btn-repeat {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 0.8rem;
}
.vr-btn-repeat:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vr-modal-content {
        flex-direction: column !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .vr-modal-info-side {
        width: 100% !important;
        padding: 30px 20px 10px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .vr-modal-form-side {
        width: 100% !important;
        padding: 20px !important;
    }

    .vr-form-row {
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* Glassmorphism for card */
.glass-effect {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Gradient text for secondary title */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #b0b0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Promo Card Redesign (No Icon) */
.vr-promo-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.vr-promo-card h3 {
    color: var(--primary, #9ECD56);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.vr-promo-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Expand container when showing results */
.vocal-range-container.show-results {
    max-width: 1050px !important;
    width: 100% !important;
    display: block !important;
    margin: 40px auto !important;
}

@media (max-width: 480px) {
    .vocal-range-container.show-results {
        margin: 20px auto !important;
    }
}

/* Results layout fixes */
.vr-results-screen-layout {
    width: 100% !important;
    min-width: 100% !important;
    display: none;
    gap: 20px;
}

.vr-results-screen-layout.show-results {
    display: flex !important;
    flex-direction: column;
}

@media (min-width: 768px) {
    .vocal-range-container {
        max-width: 1000px !important;
        width: 100% !important;
    }
    .vr-results-screen-layout.show-results {
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .vr-results-screen-layout .vr-results-card,
    .vr-results-screen-layout .vr-promo-card {
        flex: 1 !important;
        width: calc(50% - 10px) !important;
        margin: 0 !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .show-results .vr-header {
        padding-bottom: 40px;
    }
}

/* --- Analyzing Transition Panel --- */
.vr-calculating-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none; /* Se maneja via JS (flex) */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9) !important; /* Fondo oscuro profundo */
    backdrop-filter: blur(15px);     /* Cinematic blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000 !important;       /* Encima de absolutamente todo */
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

.vr-calculating-content {
    padding: 20px !important;
    background: transparent !important; /* TOTALMENTE fluyendo sin fondo */
    border: none !important;            /* Sin bordes */
    box-shadow: none !important;        /* Sin sombras */
}

.vr-calculating-content .vr-loader-ring {
    margin-bottom: 30px;
}

.vr-calculating-content .vr-loader-text {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Ensure modas are on top of everything */
.vr-modal-overlay {
    z-index: 1000 !important;
}

.vr-modal-close {
    cursor: pointer;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* MODO FLAT - App Vocal */
body.modo-flat .vr-action-board,
body.modo-flat .vr-grid-wrapper,
body.modo-flat .vocal-range-container,
body.modo-flat .vr-modal-content {
    background-color: rgba(10, 10, 15, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.modo-flat .vr-note-value.active {
    background: var(--primary) !important;
    color: #000 !important;
}

/* Restaurar Glow en Botones de la App (Modo Flat) */
body.modo-flat .vr-btn-listen,
body.modo-flat .vr-btn-primary {
    box-shadow: 0 0 15px rgba(158, 205, 86, 0.4) !important;
}

body.modo-flat .vr-btn-listen:hover,
body.modo-flat .vr-btn-primary:hover {
    box-shadow: 0 0 25px rgba(158, 205, 86, 0.6) !important;
}

body.modo-flat .vr-btn-secondary:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
}
