/* ============================================================
   Soundwave Jewelry Configurator — Estilos
   ============================================================ */

.swj-configurator {
    margin: 1.5rem 0;
    font-family: inherit;
}

/* Secciones */
.swj-section {
    margin-bottom: 1.5rem;
}

.swj-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 10px;
}

.swj-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B6F47;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Zona de audio */
.swj-audio-zone {
    border: 1px dashed #ccc;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    background: #fafafa;
}

.swj-audio-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}

.swj-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.swj-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}

.swj-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Estado de grabación */
.swj-status {
    min-height: 24px;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.swj-audio-player {
    width: 100%;
    margin-top: 12px;
    height: 36px;
}

.swj-status.recording {
    color: #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.swj-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0392b;
    animation: swj-blink 1s infinite;
    display: inline-block;
}

@keyframes swj-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.swj-status.success { color: #27ae60; }

.swj-rec-t-over {
    font-weight: 600;
    color: #b4762a;
}

/* Errores */
.swj-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #c0392b;
    font-size: 13px;
}

/* Grid de estilos */
.swj-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.swj-style-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}

.swj-style-card:hover {
    border-color: #b4997a;
}

.swj-style-card.selected {
    border: 2px solid #8B6F47;
}

.swj-style-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px;
}

.swj-style-desc {
    font-size: 11px;
    color: #888;
    margin: 8px 0 0;
}

.swj-preview-canvas {
    display: block;
    width: 100%;
    height: 44px;
}

/* Vista previa principal */
.swj-preview-box {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    padding: 16px 20px;
}

.swj-preview-main-canvas {
    display: block;
    width: 100%;
    height: 68px;
    cursor: pointer;
}

.swj-preview-note {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 8px 0 0;
}

/* Loader de subida */
.swj-uploading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #8B6F47;
    border-radius: 50%;
    animation: swj-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes swj-spin {
    to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 480px) {
    .swj-style-grid {
        grid-template-columns: 1fr;
    }
}
