/* --- css/sections/box.css - Caja Negra --- */

.box-wrapper {
    min-height: 100vh;
    padding: 24px 20px 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.box-header {
    text-align: center;
}

.box-header .btn-back {
    background: none;
    border: none;
    color: #8c7c70;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 12px;
    display: block;
}

.box-badge {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #8c7c70;
    font-weight: 700;
    margin-bottom: 4px;
}

.box-header h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #6d5d52;
    margin: 0 0 6px 0;
}

.box-header p {
    font-size: 0.82rem;
    color: #8c7c70;
    margin: 0;
    line-height: 1.4;
}

.box-card {
    background: #ffffff;
    border: 1px solid #e0d8c8;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.timer-display {
    font-family: monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #6d5d52;
    background: #f8f3ea;
    padding: 8px 24px;
    border-radius: 12px;
    letter-spacing: 2px;
}

.recording-status {
    font-size: 0.85rem;
    color: #8c7c70;
}

.btn-record-main {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #6d5d52;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(109, 93, 82, 0.3);
    transition: all 0.3s ease;
}

.btn-record-main .mic-icon-shape {
    font-size: 2.5rem;
}

.btn-record-main.recording {
    background: #d9534f;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(217, 83, 79, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}

.box-actions-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.box-actions-group button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: #f0e8dd;
    color: #6d5d52;
}

.btn-primary {
    background: #6d5d52;
    color: #ffffff;
}

.hidden {
    display: none !important;
}
