
/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e0e5ec;
    background-image: url('radioz-logo.svg');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #4a5568;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(224, 229, 236, 0.85);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    color: #4a5568;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8), -2px -2px 4px rgba(163, 177, 198, 0.6);
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    margin-top: 4rem;
    padding: 1.5rem 1rem;
    background: #d4d9e0; /* Solo levemente más oscuro que #e0e5ec */
    border-radius: 20px 20px 0 0;
    box-shadow: 
        0 -4px 15px rgba(163, 177, 198, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(163, 177, 198, 0.3);
}

/* Barra superior neumórfica más sutil */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px; /* Mucho más delgada */
    background: #c8cdd4; /* Levemente más oscuro que el footer */
    border-radius: 0 0 8px 8px;
    box-shadow: 
        inset 1px 1px 2px rgba(163, 177, 198, 0.4),
        inset -1px -1px 2px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #4a5568; /* Color más oscuro para mejor legibilidad */
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    line-height: 1.3; /* Más compacto */
}

.footer-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem; /* Menos espacio */
    color: #2d3748;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(163, 177, 198, 0.4);
    font-style: italic;
}

.footer-email {
    font-size: 0.95rem;
    margin-bottom: 0.2rem; /* Menos espacio */
    color: #3182ce;
    font-weight: 500;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.footer-location {
    font-size: 0.9rem;
    margin-bottom: 0.3rem; /* Menos espacio */
    color: #718096;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.footer-brand {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.footer-brand a {
    color: #38a169; /* Verde más suave */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-style: italic;
    padding: 1px 4px;
    border-radius: 6px;
    background: rgba(56, 161, 105, 0.1);
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.6),
        inset -1px -1px 2px rgba(163, 177, 198, 0.3);
}

.footer-brand a:hover {
    color: #2f855a;
    background: rgba(47, 133, 90, 0.15);
    text-shadow: 0 0 6px rgba(56, 161, 105, 0.4);
    text-decoration: underline;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.7),
        inset -2px -2px 4px rgba(163, 177, 198, 0.4),
        0 0 8px rgba(56, 161, 105, 0.2);
}

/* Botones principales */
.button-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-button {
    padding: 1.5rem 2.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.main-button:hover {
    box-shadow: 
        12px 12px 20px rgba(163, 177, 198, 0.7),
        -12px -12px 20px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.main-button:active {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

.create-btn:hover {
    color: #e53e3e;
}

.listen-btn:hover {
    color: #3182ce;
}

.manage-btn:hover {
    color: #38a169;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(224, 229, 236, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto; /* Permitir scroll en el modal completo si es necesario */
    padding: 10px; /* Padding mínimo para evitar que toque los bordes */
    box-sizing: border-box;
}

.modal-content {
    background: #e0e5ec;
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* Altura máxima del viewport */
    overflow-y: auto; /* Scroll vertical cuando sea necesario */
    box-shadow: 
        20px 20px 40px rgba(163, 177, 198, 0.6),
        -20px -20px 40px rgba(255, 255, 255, 0.8);
    animation: modalFadeIn 0.3s ease;
    
    /* Scroll personalizado */
    scrollbar-width: thin;
    scrollbar-color: rgba(163, 177, 198, 0.6) transparent;
}

/* Scroll personalizado para Webkit */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(163, 177, 198, 0.6);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(163, 177, 198, 0.8);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: #e0e5ec;
    color: #4a5568;
    padding: 1.5rem;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: #4a5568;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.close:hover {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    color: #e53e3e;
}

.modal-body {
    padding: 2rem;
}

/* Controles de grabación */
.recording-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.recording-controls button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.recording-controls button:hover:not(:disabled) {
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.7),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.recording-controls button:active:not(:disabled) {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

.record-btn:hover:not(:disabled) {
    color: #e53e3e;
}

.test-btn:hover:not(:disabled) {
    color: #3182ce;
}

.stop-btn:hover:not(:disabled) {
    color: #ed8936;
}

.reset-btn:hover:not(:disabled) {
    color: #718096;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5) !important;
}

/* Estado de grabación */
.recording-status {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 
        inset 6px 6px 12px rgba(163, 177, 198, 0.6),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
}

#status-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 600;
}

#recording-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #e53e3e;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Vista previa de audio */
#audio-preview {
    text-align: center;
    background: #e0e5ec;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 
        inset 8px 8px 16px rgba(163, 177, 198, 0.6),
        inset -8px -8px 16px rgba(255, 255, 255, 0.8);
}

#audio-preview h3 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 600;
}

#preview-audio {
    width: 100%;
    margin-bottom: 1rem;
    background: transparent;
}

.save-btn {
    background: #e0e5ec;
    color: #4a5568;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.save-btn:hover {
    color: #38a169;
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.7),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.save-btn:active {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

/* Mensaje guardado */
.success-message {
    text-align: center;
    background: #e0e5ec;
    color: #4a5568;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        inset 8px 8px 16px rgba(163, 177, 198, 0.6),
        inset -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.success-message h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #38a169;
    font-weight: 700;
}

.codigo-container {
    margin-bottom: 1rem;
}

.codigo-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #4a5568;
}

.codigo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#codigo-generado {
    background: #e0e5ec;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    color: #4a5568;
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.copy-btn {
    background: #e0e5ec;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.copy-btn:hover {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    color: #3182ce;
}

/* Input de código */
.codigo-input-container {
    text-align: center;
    margin-bottom: 2rem;
}

.codigo-input-container label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: bold;
}

#codigo-input {
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: 200px;
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 
        inset 6px 6px 12px rgba(163, 177, 198, 0.6),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
    outline: none;
    transition: all 0.3s ease;
}

#codigo-input:focus {
    box-shadow: 
        inset 8px 8px 16px rgba(163, 177, 198, 0.7),
        inset -8px -8px 16px rgba(255, 255, 255, 0.9);
    color: #3182ce;
}

.play-btn {
    background: #e0e5ec;
    color: #4a5568;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.play-btn:hover {
    color: #3182ce;
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.7),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.play-btn:active {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

/* Reproductor */
.player-container {
    text-align: center;
    background: #e0e5ec;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 
        inset 8px 8px 16px rgba(163, 177, 198, 0.6),
        inset -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.player-container h3 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 600;
}

#playback-audio {
    width: 100%;
    background: transparent;
}

/* Mensaje de error */
.error-message {
    text-align: center;
    background: #e0e5ec;
    color: #e53e3e;
    padding: 1rem;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 
        inset 6px 6px 12px rgba(163, 177, 198, 0.6),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
}

/* Animación de grabación */
.recording {
    animation: neumorph-pulse 2s infinite;
}

@keyframes neumorph-pulse {
    0% { 
        box-shadow: 
            6px 6px 12px rgba(163, 177, 198, 0.6),
            -6px -6px 12px rgba(255, 255, 255, 0.8);
    }
    50% { 
        box-shadow: 
            10px 10px 20px rgba(163, 177, 198, 0.8),
            -10px -10px 20px rgba(255, 255, 255, 1);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 
            6px 6px 12px rgba(163, 177, 198, 0.6),
            -6px -6px 12px rgba(255, 255, 255, 0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .main-button {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto; /* Menos margen en móviles */
        max-height: 95vh; /* Más altura disponible en móviles */
        border-radius: 20px; /* Bordes menos redondeados */
    }
    
    .modal-header {
        padding: 1rem; /* Menos padding en móviles */
        border-radius: 20px 20px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.2rem; /* Texto más pequeño */
    }
    
    .modal-body {
        padding: 1rem; /* Menos padding en móviles */
        border-radius: 0 0 20px 20px;
    }
    
    .message-options {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .message-options h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .option-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .recording-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .recording-controls button {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .recording-status {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .codigo-display {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .codigo-input-container input {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    /* Footer responsive */
    .footer {
        margin-top: 2rem;
        padding: 1.2rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .footer::before {
        left: 30%;
        right: 30%;
        height: 2px;
        border-radius: 0 0 6px 6px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-email {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    
    .footer-location {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-brand {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Estilos para dispositivos muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 0.8rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 0.8rem;
        border-radius: 0 0 15px 15px;
    }
    
    .message-options {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }
    
    .message-options h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .option-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .recording-controls button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        max-width: 220px;
    }
    
    .success-message h3 {
        font-size: 1rem;
    }
    
    .codigo-generado {
        font-size: 1.1rem;
        padding: 0.6rem;
    }
    
    /* Footer para dispositivos muy pequeños */
    .footer {
        margin-top: 1.5rem;
        padding: 1rem 0.8rem;
        border-radius: 12px 12px 0 0;
    }
    
    .footer::before {
        left: 35%;
        right: 35%;
        height: 1.5px;
        border-radius: 0 0 4px 4px;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-email {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .footer-location {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-brand {
        font-size: 0.75rem;
        line-height: 1.1;
    }
}

/* Estilos neumórficos para elementos de audio */
audio {
    background: #e0e5ec !important;
    border-radius: 15px;
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    outline: none;
    border: none;
}

audio::-webkit-media-controls-panel {
    background-color: #e0e5ec;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #e0e5ec;
    border-radius: 50%;
    box-shadow: 
        2px 2px 4px rgba(163, 177, 198, 0.6),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

audio::-webkit-media-controls-timeline {
    background-color: #e0e5ec;
    border-radius: 10px;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.6),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

audio::-webkit-media-controls-volume-slider {
    background-color: #e0e5ec;
    border-radius: 10px;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.6),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Mejoras para el fondo general */
.modal-body {
    background: #e0e5ec;
    border-radius: 0 0 25px 25px;
}

/* Opciones de mensaje */
.message-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #e0e5ec;
    border-radius: 15px;
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.message-options h3 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.1rem;
    text-align: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #e0e5ec;
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.option-item:hover {
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.7),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.option-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    margin-right: 12px;
    background: #e0e5ec;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.6),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
}

.option-checkbox:checked + .checkmark {
    background: #48bb78;
    box-shadow: 
        2px 2px 4px rgba(163, 177, 198, 0.6),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.option-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.option-item:active {
    transform: translateY(0);
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.6),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Estilos para el modal de mensajes guardados */
#lista-mensajes {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.mensaje-item {
    background: #e0e5ec;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mensaje-info {
    flex: 1;
}

.mensaje-codigo {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.3rem;
}

.mensaje-fecha {
    font-size: 0.9rem;
    color: #718096;
}

.mensaje-acciones {
    display: flex;
    gap: 0.5rem;
}

.storage-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(163, 177, 198, 0.3);
}

.action-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.action-btn:hover {
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.7),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.action-btn:active {
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.6),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}
