/* /css/componentes.css */

/* --- Estilos de Botones Unificados --- */
.btn-comprar, .btn-agregar-carrito, .btn-secondary, .btn-action, .chat-form button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-comprar { background-color: #3483fa; color: #fff; border-color: #3483fa; }
.btn-comprar:hover { background-color: #2968c8; border-color: #2968c8; }
.btn-agregar-carrito { background-color: rgba(65, 137, 230, 0.15); color: #3483fa; }
.btn-agregar-carrito:hover { background-color: rgba(65, 137, 230, 0.25); }
.btn-secondary {
    background-color: #c7e7e4;
    color: #3483fa;
    border-color: #0c914f;
    color: black;
}
.btn-secondary:hover {
    background-color: #3483fa;
    color: #ffffff;
}
.btn-action {
    padding: 8px 12px;
    font-size: 0.9em;
    position: relative;
}
.btn-editar, .btn-eliminar {
    font-size: 0.9em; 
    text-decoration: none; 
    color: #3483fa; 
}
.btn-editar:hover, .btn-eliminar:hover { 
    text-decoration: underline; 
}

/* --- Estilos de Formularios --- */
.form-group { 
    margin-bottom: 15px;
 }
.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
}
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="tel"] {
    width: 100%;
     padding: 10px;
      border: 1px solid #ccc;
       border-radius: 4px;
       box-sizing: border-box;
}

/* --- Alertas y Notificaciones --- */
.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}
.notification-badge {
    position: absolute; top: -8px; right: -8px; background-color: #dc3545; color: white;
    border-radius: 50%; width: 20px; height: 20px; font-size: 12px; display: flex;
    align-items: center; justify-content: center; border: 2px solid white;
}

/* --- Ventana Emergente (Modal) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); display: none;
    justify-content: center; align-items: center; z-index: 2000;
}
.modal-content {
    background-color: white; padding: 2rem; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); text-align: center;
    max-width: 450px; width: 90%;
}
.modal-actions {
display: flex;
justify-content: center;
gap: 1rem;
}